chore(tooling): add reth v2 db migration command - #3156
Draft
calbera wants to merge 4 commits into
Draft
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a Makefile target in the build/testing tooling to migrate an existing Reth mainnet datadir from the v1 database format to the v2 storage format, using the bera-reth Docker image. This fits into the repo’s local/devnet/mainnet testing helpers under scripts/build/.
Changes:
- Introduces
migrate-reth-v2-mainnetto runreth db migrate-v2against the configured mainnet genesis. - Pins the migration command to
ghcr.io/berachain/bera-reth:v1.5.0-rc0and reuses existing mount paths for.tmpand network files.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
calbera
marked this pull request as draft
August 17, 2026 04:05
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3156 +/- ##
=======================================
Coverage 63.10% 63.10%
=======================================
Files 372 372
Lines 15549 15549
=======================================
Hits 9812 9812
Misses 4777 4777
Partials 960 960 🚀 New features to boost your workflow:
|
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Cal Bera <calbera@berachain.com>
calbera
marked this pull request as ready for review
August 17, 2026 05:49
calbera
marked this pull request as draft
August 18, 2026 16:30
calbera
commented
Aug 18, 2026
| --rm -v $(PWD)/${TESTAPP_FILES_DIR}:/${TESTAPP_FILES_DIR} \ | ||
| --rm -v $(PWD)/${MAINNET_NETWORK_FILES_DIR}:/${MAINNET_NETWORK_FILES_DIR} \ | ||
| -v $(PWD)/.tmp:/.tmp \ | ||
| ghcr.io/berachain/bera-reth:v1.5.0-rc0 db \ |
Contributor
Author
There was a problem hiding this comment.
Wait till berachain/bera-reth#277 is merged and included in nightly, then switch this version back to nightly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keeping open as reference for now, do not need to merge