Skip to content

Commit 16c09f7

Browse files
authored
Raise bitcoind polling interval (#19)
MutinyNet's much longer chain history makes the wallet's mempool handling noticeably more expensive. Recent work moved that work off the async executor to improve the runtime performance but a single poll can still consume nearly the full 2 second interval creating constant CPU pressure. Raise the interval to 10 seconds as a temporary mitigation. It reduces steady background CPU load without changing the underlying behavior, and buys time until the BDK performance issue is fixed.
1 parent 08393ee commit 16c09f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/chain/bitcoind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use crate::logger::{log_bytes, log_error, log_info, log_trace, LdkLogger, Logger
4141
use crate::types::{ChainMonitor, ChannelManager, DynStore, Sweeper, Wallet};
4242
use crate::{Error, NodeMetrics};
4343

44-
const CHAIN_POLLING_INTERVAL_SECS: u64 = 2;
44+
const CHAIN_POLLING_INTERVAL_SECS: u64 = 10;
4545
const CHAIN_POLLING_TIMEOUT_SECS: u64 = 10;
4646

4747
pub(super) struct BitcoindChainSource {

0 commit comments

Comments
 (0)