Skip to content

Commit

Permalink
Relax chain polling interval to 2 seconds
Browse files Browse the repository at this point in the history
Polling every second may be overly aggressive, especially when we're
polling the mempool. Here, we relax the chain polling interval a bit.
  • Loading branch information
tnull authored and frnandu committed Nov 22, 2024
1 parent 1392246 commit a15ec85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a15ec85

Please sign in to comment.