From 777756fe5bd531774b45532535eecc4d45c25e4a Mon Sep 17 00:00:00 2001 From: Buffrr Date: Tue, 28 Jan 2025 15:36:30 +0100 Subject: [PATCH] Increase mempool check interval --- node/src/wallets.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/src/wallets.rs b/node/src/wallets.rs index 8d651c2..d6c7191 100644 --- a/node/src/wallets.rs +++ b/node/src/wallets.rs @@ -25,8 +25,8 @@ use crate::{checker::TxChecker, config::ExtendedNetwork, node::BlockSource, rpc: }, std_wait, store::{ChainState, LiveSnapshot, Sha256}}; use crate::rpc::SignedMessage; -const MEMPOOL_CHECK_INTERVAL: Duration = Duration::from_millis( - if cfg!(debug_assertions) { 500 } else { 10_000 } +const MEMPOOL_CHECK_INTERVAL: Duration = Duration::from_secs( + if cfg!(debug_assertions) { 1 } else { 5 * 60 } ); #[derive(Debug, Clone, Serialize, Deserialize)]