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:
@ -29,7 +29,7 @@ use reth_primitives::{
|
||||
TransactionSigned,
|
||||
};
|
||||
use reth_provider::{
|
||||
providers::{BlockchainProvider2, ProviderNodeTypes},
|
||||
providers::{BlockchainProvider, ProviderNodeTypes},
|
||||
BlockHashReader, BlockReader, BlockWriter, ChainSpecProvider, ProviderFactory,
|
||||
StageCheckpointReader, StateProviderFactory,
|
||||
};
|
||||
@ -132,7 +132,7 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
|
||||
.lookup_best_block(provider_factory.clone())
|
||||
.wrap_err("the head block is missing")?;
|
||||
|
||||
let blockchain_db = BlockchainProvider2::new(provider_factory.clone())?;
|
||||
let blockchain_db = BlockchainProvider::new(provider_factory.clone())?;
|
||||
let blob_store = InMemoryBlobStore::default();
|
||||
|
||||
let validator =
|
||||
|
||||
@ -13,7 +13,7 @@ use reth_node_builder::{
|
||||
EngineNodeLauncher,
|
||||
};
|
||||
use reth_node_ethereum::{node::EthereumAddOns, EthereumNode};
|
||||
use reth_provider::providers::BlockchainProvider2;
|
||||
use reth_provider::providers::BlockchainProvider;
|
||||
use reth_tracing::tracing::warn;
|
||||
use tracing::info;
|
||||
|
||||
@ -79,7 +79,7 @@ fn main() {
|
||||
.with_memory_block_buffer_target(engine_args.memory_block_buffer_target)
|
||||
.with_state_root_task(engine_args.state_root_task_enabled);
|
||||
let handle = builder
|
||||
.with_types_and_provider::<EthereumNode, BlockchainProvider2<_>>()
|
||||
.with_types_and_provider::<EthereumNode, BlockchainProvider<_>>()
|
||||
.with_components(EthereumNode::components())
|
||||
.with_add_ons(EthereumAddOns::default())
|
||||
.launch_with_fn(|builder| {
|
||||
|
||||
Reference in New Issue
Block a user