Skip to content

[performance] enforce block-snapshots cap inside aggregator collation#20966

Merged
wmitsuda merged 2 commits into
performancefrom
cherry-pick/20852-to-performance
May 7, 2026
Merged

[performance] enforce block-snapshots cap inside aggregator collation#20966
wmitsuda merged 2 commits into
performancefrom
cherry-pick/20852-to-performance

Conversation

@sudeepdino008

Copy link
Copy Markdown
Member

Cherry-pick of #20852 to performance.

performance-specific adaptations

Resolved trivial conflict in db/state/aggregator.go (added SetFrozenBlocksProvider method).

- https://github.com/erigontech/erigon/pull/20701/changes was added,
wherein the cap was passed to BuildFiles* api
- but BuildFilesInBackground can ignore the passed txnum value
(considering `lastTxNumInDb` etc.)
- this PR moves the state collation cap logic inside the aggregator; the
aggregator then needs a `SetFrozenBlocksProvider` which is called to
find block snapshots progress, and use it to cap the state collation.
@wmitsuda wmitsuda merged commit b9d9e01 into performance May 7, 2026
35 of 36 checks passed
@wmitsuda wmitsuda deleted the cherry-pick/20852-to-performance branch May 7, 2026 14:23
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.

3 participants