Skip to content

Conversation

@sinzii
Copy link
Member

@sinzii sinzii commented Nov 26, 2025

This PR is to fix issue where the logic watching for transaction inclusion was throwing the unpinned block error as reported by @bkchr in #699

Logic for checking transaction inclusion is supposed to not throwing out the unpinned block error as we'll need make sure to record usage for the blocks for body checking to make sure we don't accidentally unpin those blocks.

We do record block usage for chain head operations but those are running in a queue which might be triggered after receiving the finalized events which cause the blocks to be unpinned before the block-usage recording kicks-in. We'll fix this by immediately record block usage before register chainhead operations into the queue.

We also increase the default minimum queue size to 16 as well, a better approach for later here is to adjust the queue size dynamically based to the number of finalized blocks each batch.

@sinzii sinzii changed the title fix: improve chainhead operations fix: improve unpin chainhead operations Nov 26, 2025
@sinzii sinzii changed the title fix: improve unpin chainhead operations fix: improve chainhead unpin operations Nov 26, 2025
@sinzii sinzii changed the base branch from main to hotfix-0.18.6 November 26, 2025 13:20
@sinzii sinzii marked this pull request as ready for review November 26, 2025 14:19
@sinzii sinzii merged commit 165df7f into hotfix-0.18.6 Nov 26, 2025
4 checks passed
@sinzii sinzii deleted the fix-improve-chainhead-operations branch November 26, 2025 15:06
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