Skip to content

feat: legacy data migration tool#137

Draft
Vui-Chee wants to merge 23 commits intodevfrom
vui-chee/legacy-data-migration
Draft

feat: legacy data migration tool#137
Vui-Chee wants to merge 23 commits intodevfrom
vui-chee/legacy-data-migration

Conversation

@Vui-Chee
Copy link
Contributor

@Vui-Chee Vui-Chee commented Feb 2, 2026

No description provided.

@Vui-Chee Vui-Chee changed the base branch from main to dev February 2, 2026 09:23
@Vui-Chee Vui-Chee requested a review from JimmyShi22 February 11, 2026 10:20
JimmyShi22

This comment was marked as outdated.

JimmyShi22

This comment was marked as outdated.

JimmyShi22

This comment was marked as outdated.

JimmyShi22

This comment was marked as outdated.

Copy link
Contributor

@JimmyShi22 JimmyShi22 left a comment

Choose a reason for hiding this comment

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

Code review of current HEAD.

Vui-Chee added a commit that referenced this pull request Mar 5, 2026
Port legacy data migration tool from PR #137 into existing bin/tools
as a new 'migrate' subcommand. Migrates data from MDBX to RocksDB +
static files for TransactionSenders, AccountChangeSets, Receipts,
TransactionHashNumbers, AccountsHistory, and StoragesHistory tables.

Key changes:
- Add migrate.rs: core migration logic for static files and RocksDB
- Add migrate_command.rs: CLI command with options (batch-size,
  skip-static-files, skip-rocksdb, keep-mdbx)
- Add progress.rs: progress logging utilities
- Update main.rs: add Migrate variant to Commands enum
- Update Cargo.toml: add reth-provider/rocksdb, reth-stages/rocksdb,
  reth-static-file-types, reth-storage-api dependencies
- Update .reth-dev.toml: add reth-stages and reth-static-file-types
  entries for local dev builds

Co-Authored-By: vuicheesiew@gmail.com <vuicheesiew@gmail.com>
Vui-Chee added a commit that referenced this pull request Mar 13, 2026
Port the legacy data migration tool from PR #137 into the existing
bin/tools crate as a new 'legacy-migrate' subcommand. Key changes:

- Use workspace reth deps (paradigmxyz/reth v1.11.0) instead of pinned
  okx/reth git deps
- Import chain spec from xlayer-chainspec crate instead of duplicating
- Add reth-static-file-types to workspace dependencies
- Adapt StorageSettings to use v2() API from upstream reth
- Add reth-db, reth-node-builder, reth-primitives-traits deps to tools
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