Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions scripts/build/testing.mk
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,22 @@ start-reth-mainnet:
--ipcpath ${IPC_PATH} \
--trusted-peers $$trustedpeers

# Migrate reth v1 db to storage v2. The datadir must already exist.
migrate-reth-v2-mainnet:
@abs_path=$(abspath $(ETH_DATA_DIR)); \
if test ! -d "$$abs_path"; then \
echo "Directory '$$abs_path' does not exist; expected an existing reth v1 datadir to migrate."; \
exit 1; \
fi
docker run \
--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 \

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait till berachain/bera-reth#277 is merged and included in nightly, then switch this version back to nightly

--datadir ${ETH_DATA_DIR} \
migrate-v2 \
--chain ${MAINNET_ETH_GENESIS_PATH}
Comment thread
Copilot marked this conversation as resolved.

#################
# Testing #
#################
Expand Down
Loading