mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Node tests crate (#6972)
This commit is contained in:
@ -25,7 +25,7 @@ async fn main() -> eyre::Result<()> {
|
||||
.with_rpc(RpcServerArgs::default().with_http())
|
||||
.with_chain(custom_chain());
|
||||
|
||||
let NodeHandle { mut node, node_exit_future } = NodeBuilder::new(node_config)
|
||||
let NodeHandle { mut node, node_exit_future: _ } = NodeBuilder::new(node_config)
|
||||
.testing_node(tasks.executor())
|
||||
.node(EthereumNode::default())
|
||||
.launch()
|
||||
@ -50,8 +50,7 @@ async fn main() -> eyre::Result<()> {
|
||||
let tx = head.tip().transactions().next().unwrap();
|
||||
assert_eq!(tx.hash(), hash);
|
||||
println!("mined transaction: {hash}");
|
||||
|
||||
node_exit_future.await
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn custom_chain() -> Arc<ChainSpec> {
|
||||
|
||||
Reference in New Issue
Block a user