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:
@ -9,7 +9,7 @@ use reth_node_builder::{
|
||||
};
|
||||
use reth_node_core::args::DevArgs;
|
||||
use reth_node_ethereum::{node::EthereumAddOns, EthereumNode};
|
||||
use reth_provider::{providers::BlockchainProvider2, CanonStateSubscriptions};
|
||||
use reth_provider::{providers::BlockchainProvider, CanonStateSubscriptions};
|
||||
use reth_rpc_eth_api::helpers::EthTransactions;
|
||||
use reth_tasks::TaskManager;
|
||||
use std::sync::Arc;
|
||||
@ -25,7 +25,7 @@ async fn can_run_dev_node() -> eyre::Result<()> {
|
||||
.with_dev(DevArgs { dev: true, ..Default::default() });
|
||||
let NodeHandle { node, .. } = NodeBuilder::new(node_config.clone())
|
||||
.testing_node(exec.clone())
|
||||
.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| {
|
||||
|
||||
@ -9,7 +9,7 @@ use reth_db::{
|
||||
use reth_node_api::NodeTypesWithDBAdapter;
|
||||
use reth_node_builder::{EngineNodeLauncher, FullNodeComponents, NodeBuilder, NodeConfig};
|
||||
use reth_node_ethereum::node::{EthereumAddOns, EthereumNode};
|
||||
use reth_provider::providers::BlockchainProvider2;
|
||||
use reth_provider::providers::BlockchainProvider;
|
||||
use reth_tasks::TaskManager;
|
||||
|
||||
#[test]
|
||||
@ -50,7 +50,7 @@ async fn test_eth_launcher() {
|
||||
let _builder =
|
||||
NodeBuilder::new(config)
|
||||
.with_database(db)
|
||||
.with_types_and_provider::<EthereumNode, BlockchainProvider2<
|
||||
.with_types_and_provider::<EthereumNode, BlockchainProvider<
|
||||
NodeTypesWithDBAdapter<EthereumNode, Arc<TempDatabase<DatabaseEnv>>>,
|
||||
>>()
|
||||
.with_components(EthereumNode::components())
|
||||
|
||||
Reference in New Issue
Block a user