Skip to content

Commit ec3d45a

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/node/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +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::rebroadcast::DEFAULT_REBROADCAST_INTERVAL;
3334
use arc_evm_node::ARC_RPC_MAX_BATCH_ENTRIES_DEFAULT;
3435
use arc_execution_config::addresses_denylist::{
3536
AddressesDenylistConfig, AddressesDenylistConfigError, DEFAULT_DENYLIST_ADDRESS,
@@ -325,7 +326,7 @@ struct ArcExtraCli {
325326
#[arg(
326327
long = "txpool.rebroadcast-interval",
327328
value_name = "SECONDS",
328-
default_value_t = 60,
329+
default_value_t = DEFAULT_REBROADCAST_INTERVAL.as_secs(),
329330
help_heading = "Transaction pool"
330331
)]
331332
txpool_rebroadcast_interval: u64,

0 commit comments

Comments
 (0)