Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: FI-1574: last_block_index shall be leb128 encoded #147

Conversation

mbjorkqvist
Copy link
Member

The ICRC-3 standard specifies that the last_block_index value in the certificate returned from the icrc3_get_tip_certificate endpoint shall be encoded using leb128. The value has until now been encoded as a Big Endian-encoded u64, but this PR proposes to change that to a leb128 encoding as per the ICRC-3 standard.

cycles-ledger/src/storage.rs Outdated Show resolved Hide resolved
THLO
THLO previously approved these changes Nov 12, 2024
Co-authored-by: Thomas Locher <[email protected]>
@mbjorkqvist mbjorkqvist marked this pull request as ready for review November 12, 2024 10:18
@mbjorkqvist mbjorkqvist requested a review from a team as a code owner November 12, 2024 10:18
@mbjorkqvist
Copy link
Member Author

Related discussion on the forum.

@sesi200 sesi200 merged commit e9b9740 into dfinity:main Nov 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants