i think you misunderstand the "DatabaseCommit" trait. It is not trie commitment, it is tx state diff commitment, committing diffs into another block-level cache db layer.
let us use revm::InMemoryDB to merge state diff of each tx, then apply them after block.
it seems if we want block-level trie commitment we have to use crates/revm/src/db/states/cache.rs. bins/revme/src/cmd/statetest/runner.rs provides an example
let us use revm::InMemoryDB to merge state diff of each tx, then apply them after block.
====== outdated below =====
it seems if we want block-level trie commitment we have to use crates/revm/src/db/states/cache.rs. bins/revme/src/cmd/statetest/runner.rs provides an example
we should use
here is how reth evm is built https://github.com/paradigmxyz/reth/blob/14ed7196c258545992efa478739a361f2fde7f1e/crates/revm/src/processor.rs#L80
revm::State can be used?