Skip to content

chain: Do not use the block cache for is_on_main_chain#6537

Merged
incrypto32 merged 1 commit intomasterfrom
lutter/no-main-chain-cache
Apr 23, 2026
Merged

chain: Do not use the block cache for is_on_main_chain#6537
incrypto32 merged 1 commit intomasterfrom
lutter/no-main-chain-cache

Conversation

@lutter
Copy link
Copy Markdown
Collaborator

@lutter lutter commented Apr 23, 2026

It is tempting to use the block cache here; but that can go wrong when graph-node gets shut down and some of its nonfinal blocks then are reorged; when graph-node gets started again when those block numbers have become final, it might consider a reorged block as canonical; allowing the use of the block cache here would require us to also track the finality of blocks.

Partially reverts #6491

@lutter lutter requested a review from incrypto32 April 23, 2026 16:10
@incrypto32 incrypto32 merged commit 9a31c6d into master Apr 23, 2026
6 checks passed
@incrypto32 incrypto32 deleted the lutter/no-main-chain-cache branch April 23, 2026 16:42
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.

2 participants