Skip to content

feat: support triedb as the state storage backend (#53)#149

Merged
chee-chyuan merged 2 commits into
develop-v2from
port/triedb-backend
Apr 17, 2026
Merged

feat: support triedb as the state storage backend (#53)#149
chee-chyuan merged 2 commits into
develop-v2from
port/triedb-backend

Conversation

@chee-chyuan

Copy link
Copy Markdown
Contributor

Cherry-pick of 3e7b7666e from origin/develop.

Includes 3e7b7666e — feat: support triedb as the state storage backend (#53)

Adds StateDbArgs and statedb field throughout the node config, CLI commands, RPC helpers, stages, and trie storage to support triedb as an alternative state storage backend alongside the existing mdbx backend.

Next commit to port: 8e06e31a6 — fix: get triedb without check active (#55)

* feat: add statedb(triedb or mdbx) info to reth.toml

* feat: init triedb during save statedb toml

* feat: support init genesis by triedb

* feat: support stage sync and live sync under triedb

* chore: adjust memory_block_buffer_target param under triedb

* feat: forbid some rpc by touch trie node

* feat: support triedb remove reth common dependency

* feat: add insert mgasps metrics

* feat: support triedb io-uring feature

* deps: change triedb version
@chee-chyuan chee-chyuan requested a review from joey0612 as a code owner April 16, 2026 12:52
- Fix compilation: add StorageArgs field to NodeConfig and NodeCommand,
  export StorageArgs from args module, restore with_storage and
  storage_settings methods on NodeConfig
- Fix clippy: backtick TrieDB in doc comments, swap if-not-else branches,
  use if-let instead of is_some+unwrap, remove useless .into() conversions,
  remove redundant clones and let bindings, use bool::then, make const fn,
  remove unnecessary to_string on to_string_lossy
- Fix CI workflows: add liburing-dev to clippy/docs/udeps/doctest jobs
- Fix feature propagation: propagate asm-keccak to reth-provider and
  alloy-primitives, jemalloc to rocksdb, test-utils to reth-trie-common
- Fix wasm: add triedb-affected crates to wasm exclude list
- Fix deny: add reth-bsc-triedb git repo to allow-git
- Fix deps: add reth-tasks dev-dep to reth-db-common, make triedb deps
  optional behind std feature in reth-trie-common
- Regenerate CLI docs for new --statedb.triedb flag

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chee-chyuan chee-chyuan force-pushed the port/triedb-backend branch from 3239bbf to d47efc4 Compare April 17, 2026 10:32
@chee-chyuan chee-chyuan merged commit 52e7de0 into develop-v2 Apr 17, 2026
36 of 38 checks passed
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