feat: introduce StateCommitment type (#11842)

This commit is contained in:
frisitano
2024-10-30 16:48:43 +08:00
committed by GitHub
parent 734c78fdfb
commit 129f3ba911
18 changed files with 120 additions and 15 deletions

View File

@ -16,6 +16,7 @@ reth-basic-payload-builder.workspace = true
reth-ethereum-payload-builder.workspace = true
reth-node-ethereum = { workspace = true, features = ["test-utils"] }
reth-tracing.workspace = true
reth-trie-db.workspace = true
alloy-genesis.workspace = true
alloy-rpc-types = { workspace = true, features = ["engine"] }
alloy-primitives.workspace = true

View File

@ -70,6 +70,7 @@ use reth_payload_builder::{
};
use reth_primitives::Withdrawals;
use reth_tracing::{RethTracer, Tracer};
use reth_trie_db::MerklePatriciaTrie;
/// A custom payload attributes type.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
@ -228,6 +229,7 @@ struct MyCustomNode;
impl NodeTypes for MyCustomNode {
type Primitives = ();
type ChainSpec = ChainSpec;
type StateCommitment = MerklePatriciaTrie;
}
/// Configure the node types with the custom engine types