feat: add providerfactory builder to OpNode (#14322)

This commit is contained in:
Matthias Seitz
2025-02-08 08:09:27 +01:00
committed by GitHub
parent 44985c3272
commit 7603b74890
2 changed files with 37 additions and 3 deletions

View File

@ -87,10 +87,10 @@ impl EthereumNode {
/// use reth_db::open_db_read_only;
/// use reth_node_ethereum::EthereumNode;
/// use reth_provider::providers::StaticFileProvider;
/// use std::{path::Path, sync::Arc};
/// use std::sync::Arc;
///
/// let factory = EthereumNode::provider_factory_builder()
/// .db(Arc::new(open_db_read_only(Path::new("db"), Default::default()).unwrap()))
/// .db(Arc::new(open_db_read_only("db", Default::default()).unwrap()))
/// .chainspec(ChainSpecBuilder::mainnet().build().into())
/// .static_file(StaticFileProvider::read_only("db/static_files", false).unwrap())
/// .build_provider_factory();