From a15ec85d74e61080a59972e3c95c4559f0a89170 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Fri, 22 Nov 2024 09:41:22 -0500 Subject: [PATCH] Relax chain polling interval to 2 seconds Polling every second may be overly aggressive, especially when we're polling the mempool. Here, we relax the chain polling interval a bit. --- src/chain/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chain/mod.rs b/src/chain/mod.rs index 097a04ca1..a43b587ad 100644 --- a/src/chain/mod.rs +++ b/src/chain/mod.rs @@ -51,7 +51,7 @@ pub(crate) const DEFAULT_ESPLORA_SERVER_URL: &str = "https://blockstream.info/ap // The default Esplora client timeout we're using. pub(crate) const DEFAULT_ESPLORA_CLIENT_TIMEOUT_SECS: u64 = 10; -const CHAIN_POLLING_INTERVAL_SECS: u64 = 1; +const CHAIN_POLLING_INTERVAL_SECS: u64 = 2; pub(crate) enum WalletSyncStatus { Completed,