Skip to content

Skip live blocks below LIB before one-block lookup - #70

Merged
sduchesneau merged 2 commits into
developfrom
hub-skip-blocks-below-lib
Sep 23, 2026
Merged

sduchesneau merged 2 commits into
developfrom
hub-skip-blocks-below-lib

Conversation

@sduchesneau

Copy link
Copy Markdown
Contributor

The hub's early return for old blocks compared against the lowest block kept in the forkdb, which sits `keepFinalBlocks` below LIB. With several live sources, a source re-sending the lowest kept block got past that check, failed `Linkable` (its parent is pruned), and made the hub list the one-block store before the forkable dropped the block anyway. On a relayer with 3 sources on a fast chain, this happened ~720 times per hour and logged `block not linkable after one-block lookup` each time.

The hub now compares against the forkdb LIB, through a new `Forkable.LIBNum`.

A redundant source re-sending the lowest final block kept below LIB made the hub walk the one-block store for a block the forkable then drops.
@sduchesneau
sduchesneau merged commit 7232c70 into develop Sep 23, 2026
3 checks passed
@sduchesneau
sduchesneau deleted the hub-skip-blocks-below-lib branch September 23, 2026 18:22
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