fix: compilation errors due to api breakages

follow up from https://github.com/paradigmxyz/reth/pull/888 merge conflict fix failure
This commit is contained in:
Georgios Konstantopoulos
2023-01-17 18:19:00 -08:00
parent 37ca7e0b33
commit e9792c1b46
4 changed files with 14 additions and 3 deletions

View File

@ -7,6 +7,7 @@ use crate::{
use backon::{ConstantBackoff, Retryable};
use clap::{Parser, Subcommand};
use reth_db::mdbx::{Env, EnvKind, WriteMap};
use reth_discv4::NatResolver;
use reth_interfaces::p2p::{
bodies::client::BodiesClient,
headers::client::{HeadersClient, HeadersRequest},
@ -57,6 +58,9 @@ pub struct Command {
#[clap(subcommand)]
command: Subcommands,
#[arg(long, default_value = "any")]
nat: NatResolver,
}
#[derive(Subcommand, Debug)]
@ -94,7 +98,7 @@ impl Command {
config.peers.connect_trusted_nodes_only = self.trusted_only;
let network = config
.network_config(noop_db, self.chain.clone(), self.disable_discovery, None)
.network_config(noop_db, self.chain.clone(), self.disable_discovery, None, self.nat)
.start_network()
.await?;