mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add SealedBlock in reth-primitives-traits (#13735)
This commit is contained in:
@ -3,7 +3,7 @@ use alloy_genesis::Genesis;
|
||||
use alloy_primitives::{b256, hex};
|
||||
use futures::StreamExt;
|
||||
use reth_chainspec::ChainSpec;
|
||||
use reth_node_api::{FullNodeComponents, FullNodePrimitives, NodeTypes};
|
||||
use reth_node_api::{BlockBody, FullNodeComponents, FullNodePrimitives, NodeTypes};
|
||||
use reth_node_builder::{
|
||||
rpc::RethRpcAddOns, EngineNodeLauncher, FullNode, NodeBuilder, NodeConfig, NodeHandle,
|
||||
};
|
||||
@ -65,7 +65,7 @@ where
|
||||
|
||||
let head = notifications.next().await.unwrap();
|
||||
|
||||
let tx = &head.tip().transactions()[0];
|
||||
let tx = &head.tip().body().transactions()[0];
|
||||
assert_eq!(tx.trie_hash(), hash);
|
||||
println!("mined transaction: {hash}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user