mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(rpc): expose ethapi in node builder for op customisation (#9444)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
use reth_db::test_utils::create_test_rw_db;
|
||||
use reth_node_api::FullNodeComponents;
|
||||
use reth_node_builder::{NodeBuilder, NodeConfig};
|
||||
use reth_node_optimism::node::OptimismNode;
|
||||
use reth_node_optimism::node::{OptimismAddOns, OptimismNode};
|
||||
|
||||
#[test]
|
||||
fn test_basic_setup() {
|
||||
@ -14,6 +14,7 @@ fn test_basic_setup() {
|
||||
.with_database(db)
|
||||
.with_types::<OptimismNode>()
|
||||
.with_components(OptimismNode::components(Default::default()))
|
||||
.with_add_ons::<OptimismAddOns>()
|
||||
.on_component_initialized(move |ctx| {
|
||||
let _provider = ctx.provider();
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user