Skip to content

db/state: remove CheckSnapshotsCompatibility (pre-3.1 compat check)#20746

Merged
AskAlexSharov merged 2 commits into
mainfrom
alex/rm_chk_compat_35
May 3, 2026
Merged

db/state: remove CheckSnapshotsCompatibility (pre-3.1 compat check)#20746
AskAlexSharov merged 2 commits into
mainfrom
alex/rm_chk_compat_35

Conversation

@AskAlexSharov

Copy link
Copy Markdown
Collaborator

The v1- prefix check and SchemeMinSupportedVersions version floor in CheckSnapshotsCompatibility were guards for the upgrade window from pre-3.1 snapshot naming. At 3.5 that window is long closed.

  • Removes CheckSnapshotsCompatibility and SchemeMinSupportedVersions
  • Removes sanityOldNaming field and SanityOldNaming() method from AggOpts
  • Removes the unconditional call in rpcdaemon startup
  • Deletes version_schema.go (its only job was populating SchemeMinSupportedVersions); init() now calls InitSchemasGen() directly

The v1- prefix check and SchemeMinSupportedVersions version floor were
only relevant during the 3.1 upgrade window. At 3.5 the transition
period is over; keeping the directory walk on every startup is
unnecessary overhead.
@AskAlexSharov AskAlexSharov changed the title db/state: remove CheckSnapshotsCompatibility (pre-3.1 compat check) [wip] db/state: remove CheckSnapshotsCompatibility (pre-3.1 compat check) Apr 23, 2026
@AskAlexSharov AskAlexSharov changed the title [wip] db/state: remove CheckSnapshotsCompatibility (pre-3.1 compat check) db/state: remove CheckSnapshotsCompatibility (pre-3.1 compat check) May 3, 2026
@AskAlexSharov AskAlexSharov added this pull request to the merge queue May 3, 2026
Merged via the queue into main with commit bbbc7f9 May 3, 2026
38 checks passed
@AskAlexSharov AskAlexSharov deleted the alex/rm_chk_compat_35 branch May 3, 2026 07:22
@AskAlexSharov AskAlexSharov restored the alex/rm_chk_compat_35 branch May 19, 2026 04:27
pull Bot pushed a commit to Dustin4444/erigon that referenced this pull request May 19, 2026
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