Skip to content

db/config3: shrink default step size to LegacyStepSize/4#21152

Merged
wmitsuda merged 1 commit into
mainfrom
wmitsuda/default-stepsize-e34
May 13, 2026
Merged

db/config3: shrink default step size to LegacyStepSize/4#21152
wmitsuda merged 1 commit into
mainfrom
wmitsuda/default-stepsize-e34

Conversation

@wmitsuda

Copy link
Copy Markdown
Member

Summary

  • Reduce DefaultStepSize from 1_562_500 to LegacyStepSize / 4 (390_625).
  • Bump DefaultStepsInFrozenFile from 64 to LegacyStepsInFrozenFile * 4 (256) so each frozen file still spans 100M txns.

The frozen-file txn span is preserved (DefaultStepSize * DefaultStepsInFrozenFile == LegacyStepSize * LegacyStepsInFrozenFile == 100_000_000).

Test plan

  • make lint
  • make erigon
  • Smoke-test: started a fresh --chain=hoodi --no-downloader instance and confirmed snapshots/erigondb.toml and the erigondb settings log line both report step_size=390625 steps_in_frozen_file=256.

Reduce DefaultStepSize to LegacyStepSize/4 (390_625) and bump
DefaultStepsInFrozenFile to LegacyStepsInFrozenFile*4 (256) so the
frozen-file txn span stays at 100M txns.
@wmitsuda

Copy link
Copy Markdown
Member Author

we changed it manually in the snapshotters, but didn't change the default in the code, so let's make stepsize/4 official on main for all new --no-downloader syncs.

@wmitsuda wmitsuda added this pull request to the merge queue May 13, 2026
Merged via the queue into main with commit 44368bf May 13, 2026
59 checks passed
@wmitsuda wmitsuda deleted the wmitsuda/default-stepsize-e34 branch May 13, 2026 03:32
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