Skip to content

Commit 6cfffc1

Browse files
committed
replace hardcoded interval with code configured value
1 parent a85368c commit 6cfffc1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/node/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
3030
pub static malloc_conf: &[u8] = b"prof:true,prof_active:false,lg_prof_sample:19\0";
3131

3232
use arc_evm_node::node::{ArcNode, ArcRpcConfig};
33-
use arc_evm_node::ARC_RPC_MAX_BATCH_ENTRIES_DEFAULT;
33+
use arc_evm_node::rebroadcast::DEFAULT_REBROADCAST_INTERVAL;
3434
use arc_execution_config::addresses_denylist::{
3535
AddressesDenylistConfig, AddressesDenylistConfigError, DEFAULT_DENYLIST_ADDRESS,
3636
DEFAULT_DENYLIST_ERC7201_BASE_SLOT,
@@ -325,7 +325,7 @@ struct ArcExtraCli {
325325
#[arg(
326326
long = "txpool.rebroadcast-interval",
327327
value_name = "SECONDS",
328-
default_value_t = 60,
328+
default_value_t = DEFAULT_REBROADCAST_INTERVAL.as_secs(),
329329
help_heading = "Transaction pool"
330330
)]
331331
txpool_rebroadcast_interval: u64,

0 commit comments

Comments
 (0)