Skip to content

enforce block-snapshots cap inside aggregator collation#20900

Merged
AskAlexSharov merged 2 commits into
mainfrom
cp/20852-to-main
Apr 29, 2026
Merged

enforce block-snapshots cap inside aggregator collation#20900
AskAlexSharov merged 2 commits into
mainfrom
cp/20852-to-main

Conversation

@sudeepdino008

Copy link
Copy Markdown
Member

Cherry-pick of #20852 to main.

- 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.
@AskAlexSharov AskAlexSharov enabled auto-merge April 29, 2026 05:18
@AskAlexSharov AskAlexSharov added this pull request to the merge queue Apr 29, 2026
Merged via the queue into main with commit 2e50c36 Apr 29, 2026
37 checks passed
@AskAlexSharov AskAlexSharov deleted the cp/20852-to-main branch April 29, 2026 07:14
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