Skip to content

Commit ea08302

Browse files
committed
f Rename the const to RESOLVED_CHANNEL_MONITOR_ARCHIVAL_INTERVAL
1 parent 9d23e5f commit ea08302

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub(crate) const DEFAULT_ESPLORA_SERVER_URL: &str = "https://blockstream.info/ap
3030
pub(crate) const LDK_PAYMENT_RETRY_TIMEOUT: Duration = Duration::from_secs(10);
3131

3232
// The interval (in block height) after which we retry archiving fully resolved channel monitors.
33-
pub(crate) const LDK_CHANNEL_MONITOR_ARCHIVAL_INTERVAL: u32 = 6;
33+
pub(crate) const LDK_RESOLVED_CHANNEL_MONITOR_ARCHIVAL_INTERVAL: u32 = 6;
3434

3535
// The time in-between peer reconnection attempts.
3636
pub(crate) const PEER_RECONNECTION_INTERVAL: Duration = Duration::from_secs(10);

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ pub use builder::BuildError;
122122
pub use builder::NodeBuilder as Builder;
123123

124124
use config::{
125-
LDK_CHANNEL_MONITOR_ARCHIVAL_INTERVAL, NODE_ANN_BCAST_INTERVAL, PEER_RECONNECTION_INTERVAL,
126-
RGS_SYNC_INTERVAL, WALLET_SYNC_INTERVAL_MINIMUM_SECS,
125+
NODE_ANN_BCAST_INTERVAL, PEER_RECONNECTION_INTERVAL,
126+
RESOLVED_CHANNEL_MONITOR_ARCHIVAL_INTERVAL, RGS_SYNC_INTERVAL,
127+
WALLET_SYNC_INTERVAL_MINIMUM_SECS,
127128
};
128129
use connection::ConnectionManager;
129130
use event::{EventHandler, EventQueue};
@@ -1386,7 +1387,7 @@ fn periodically_archive_fully_resolved_monitors(
13861387
let cur_height = channel_manager.current_best_block().height;
13871388
let should_archive = latest_archival_height_lock
13881389
.as_ref()
1389-
.map_or(true, |h| cur_height >= h + LDK_CHANNEL_MONITOR_ARCHIVAL_INTERVAL);
1390+
.map_or(true, |h| cur_height >= h + RESOLVED_CHANNEL_MONITOR_ARCHIVAL_INTERVAL);
13901391

13911392
if should_archive {
13921393
chain_monitor.archive_fully_resolved_channel_monitors();

0 commit comments

Comments
 (0)