Skip to content

Conversation

@maciejdfinity
Copy link
Contributor

@maciejdfinity maciejdfinity commented Sep 29, 2025

This PR enhances the index block validation by additionally checking for additional unrecognised fields. If an unknown/incorrect blocks is detected, we don't trap anymore but stop the indexing timer and log the error. The error can be accessed via the /logs http endpoint, e.g. for the ckBTC index: https://n5wcd-faaaa-aaaar-qaaea-cai.raw.icp0.io/logs.

Since the cycles ledger and the latest iteration of the ICRC-3 standard allow for fees in Mint and Burn operations, we additionally add these fields in the respective ICRC ledger operations - without those fields the index would not be able to sync the cycles ledger blocks. These fields are however never used or populated by the ICRC ledger - Mint and Burn transactions with positive fees are always rejected.

@github-actions github-actions bot added the feat label Sep 29, 2025
@maciejdfinity maciejdfinity changed the title feat(ICRC-Index): stop indexing and report error in case of unknown block feat(ICRC-Index): FI-1759: stop indexing and report error in case of unknown block Oct 14, 2025
@maciejdfinity maciejdfinity dismissed github-actions[bot]’s stale review October 14, 2025 11:55
  1. $REASON_WHY_NO_NEED="No canister behavior changes."
  2. $REASON_WHY_NO_NEED="API same as before."
  3. $REASON_WHY_NO_NEED="No data change."
  4. $REASON_WHY_NO_NEED="No canister behavior changes."
Copy link
Contributor

@mbjorkqvist mbjorkqvist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @maciejdfinity, this is looking very good now! I just have a couple of minor questions/comments.

@maciejdfinity maciejdfinity added this pull request to the merge queue Oct 20, 2025
Merged via the queue into master with commit aec0573 Oct 20, 2025
30 checks passed
@maciejdfinity maciejdfinity deleted the maciej-index-badblock branch October 20, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants