Skip to content

Commit 6c58c22

Browse files
committed
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.
1 parent 46bc4ee commit 6c58c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chain/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub(crate) const DEFAULT_ESPLORA_SERVER_URL: &str = "https://blockstream.info/ap
5151
// The default Esplora client timeout we're using.
5252
pub(crate) const DEFAULT_ESPLORA_CLIENT_TIMEOUT_SECS: u64 = 10;
5353

54-
const CHAIN_POLLING_INTERVAL_SECS: u64 = 1;
54+
const CHAIN_POLLING_INTERVAL_SECS: u64 = 2;
5555

5656
pub(crate) enum WalletSyncStatus {
5757
Completed,

0 commit comments

Comments
 (0)