Skip to content

Conversation

@rolfyone
Copy link
Contributor

@rolfyone rolfyone commented Feb 3, 2026

chose --force-clear-db of the 2 suggested options as it seemed closer to our naming. We don't really follow that pattern generally but it's preferable to not create another random flag to remember.

fixes #10313

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Note

Medium Risk
Adds an explicit startup path that deletes local beacon chain database files, which is inherently destructive if misused. Scope is limited to an opt-in CLI flag and preserves validator slashing protection data.

Overview
Adds a new --force-clear-db CLI flag that, when enabled, deletes the beacon node’s on-disk chain database on startup (while explicitly preserving validator slashing protection).

Refactors the Ephemery reset helper into BeaconDatabaseReset and centralizes storage path/filename constants in VersionedDatabaseFactory (now public), updating related storage/config tests and callers accordingly, and documents the new flag in CHANGELOG.md.

Written by Cursor Bugbot for commit a2a9daa. This will update automatically on new commits. Configure here.

chose `--force-clear-db` of the 2 suggested options as it seemed closer to our naming. We don't really follow that pattern generally but it's preferable to not create another random flag to remember.

fixes Consensys#10313
@rolfyone rolfyone added the doc-change-required Indicates an issue or PR that requires doc to be updated label Feb 3, 2026
@rolfyone rolfyone merged commit 0ddf9e1 into Consensys:master Feb 3, 2026
59 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2026
@rolfyone rolfyone deleted the 10313 branch February 3, 2026 04:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

doc-change-required Indicates an issue or PR that requires doc to be updated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: add --force-clear-db to wipe the existing db at startup

2 participants