mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Fix build (#899)
This commit is contained in:
@ -29,13 +29,13 @@ impl Config {
|
||||
chain_id: u64,
|
||||
genesis_hash: H256,
|
||||
disable_discovery: bool,
|
||||
bootnodes: &Option<Vec<NodeRecord>>,
|
||||
bootnodes: Option<Vec<NodeRecord>>,
|
||||
) -> NetworkConfig<ProviderImpl<DB>> {
|
||||
let peer_config = reth_network::PeersConfig::default()
|
||||
.with_trusted_nodes(self.peers.trusted_nodes.clone())
|
||||
.with_connect_trusted_nodes_only(self.peers.connect_trusted_nodes_only);
|
||||
NetworkConfig::builder(Arc::new(ProviderImpl::new(db)), rng_secret_key())
|
||||
.boot_nodes(bootnodes.unwrap_or_else(|| mainnet_nodes()))
|
||||
.boot_nodes(bootnodes.unwrap_or_else(mainnet_nodes))
|
||||
.peer_config(peer_config)
|
||||
.genesis_hash(genesis_hash)
|
||||
.chain_id(chain_id)
|
||||
|
||||
@ -129,7 +129,7 @@ impl Command {
|
||||
chain_id,
|
||||
genesis_hash,
|
||||
self.network.disable_discovery,
|
||||
&self.bootnodes,
|
||||
self.bootnodes.clone(),
|
||||
)
|
||||
.start_network()
|
||||
.await?;
|
||||
|
||||
@ -101,7 +101,7 @@ impl Command {
|
||||
config.peers.connect_trusted_nodes_only = self.trusted_only;
|
||||
|
||||
let network = config
|
||||
.network_config(noop_db, chain_id, genesis_hash, self.disable_discovery)
|
||||
.network_config(noop_db, chain_id, genesis_hash, self.disable_discovery, None)
|
||||
.start_network()
|
||||
.await?;
|
||||
|
||||
|
||||
@ -144,6 +144,7 @@ impl Command {
|
||||
chain_id,
|
||||
genesis_hash,
|
||||
self.network.disable_discovery,
|
||||
None,
|
||||
)
|
||||
.start_network()
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user