Skip to content

core/rawdb: fix off-by-one in freezer init progress log#35344

Merged
rjl493456442 merged 1 commit into
ethereum:masterfrom
cuiweixie:core-rawdb-fix-freezer-init-log
Jul 13, 2026
Merged

core/rawdb: fix off-by-one in freezer init progress log#35344
rjl493456442 merged 1 commit into
ethereum:masterfrom
cuiweixie:core-rawdb-fix-freezer-init-log

Conversation

@cuiweixie

Copy link
Copy Markdown
Contributor

Summary

  • Fix an off-by-one in InitDatabaseFromFreezer progress logging.
  • After i advances past the last processed block, log i-1 so the reported number matches the last hash.

Test plan

  • go test -short ./core/rawdb/

After advancing i past the last processed block, the progress log
reported i alongside the last hash. Log i-1 so the number matches
the hash being printed.
@cuiweixie cuiweixie requested a review from rjl493456442 as a code owner July 11, 2026 07:08
@rjl493456442 rjl493456442 added this to the 1.17.5 milestone Jul 13, 2026
@rjl493456442 rjl493456442 merged commit 13bcbf0 into ethereum:master Jul 13, 2026
9 checks passed
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