mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore!: rename blockchainprovider2 (#13727)
This commit is contained in:
@ -18,7 +18,7 @@ use reth::{
|
||||
api::NodeTypesWithDBAdapter,
|
||||
beacon_consensus::EthBeaconConsensus,
|
||||
providers::{
|
||||
providers::{BlockchainProvider2, StaticFileProvider},
|
||||
providers::{BlockchainProvider, StaticFileProvider},
|
||||
ProviderFactory,
|
||||
},
|
||||
rpc::eth::EthApi,
|
||||
@ -61,7 +61,7 @@ async fn main() -> eyre::Result<()> {
|
||||
// 2. Setup the blockchain provider using only the database provider and a noop for the tree to
|
||||
// satisfy trait bounds. Tree is not used in this example since we are only operating on the
|
||||
// disk and don't handle new blocks/live sync etc, which is done by the blockchain tree.
|
||||
let provider = BlockchainProvider2::new(factory)?;
|
||||
let provider = BlockchainProvider::new(factory)?;
|
||||
|
||||
let rpc_builder = RpcModuleBuilder::default()
|
||||
.with_provider(provider.clone())
|
||||
|
||||
Reference in New Issue
Block a user