File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub(crate) const DEFAULT_ESPLORA_SERVER_URL: &str = "https://blockstream.info/ap
31
31
pub ( crate ) const LDK_PAYMENT_RETRY_TIMEOUT : Duration = Duration :: from_secs ( 10 ) ;
32
32
33
33
// The interval (in block height) after which we retry archiving fully resolved channel monitors.
34
- pub ( crate ) const LDK_CHANNEL_MONITOR_ARCHIVAL_INTERVAL : u32 = 6 ;
34
+ pub ( crate ) const RESOLVED_CHANNEL_MONITOR_ARCHIVAL_INTERVAL : u32 = 6 ;
35
35
36
36
// The time in-between peer reconnection attempts.
37
37
pub ( crate ) const PEER_RECONNECTION_INTERVAL : Duration = Duration :: from_secs ( 10 ) ;
Original file line number Diff line number Diff line change @@ -122,8 +122,9 @@ pub use builder::BuildError;
122
122
pub use builder:: NodeBuilder as Builder ;
123
123
124
124
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 ,
127
128
} ;
128
129
use connection:: ConnectionManager ;
129
130
use event:: { EventHandler , EventQueue } ;
@@ -1514,7 +1515,7 @@ fn periodically_archive_fully_resolved_monitors(
1514
1515
let cur_height = channel_manager. current_best_block ( ) . height ;
1515
1516
let should_archive = latest_archival_height_lock
1516
1517
. as_ref ( )
1517
- . map_or ( true , |h| cur_height >= h + LDK_CHANNEL_MONITOR_ARCHIVAL_INTERVAL ) ;
1518
+ . map_or ( true , |h| cur_height >= h + RESOLVED_CHANNEL_MONITOR_ARCHIVAL_INTERVAL ) ;
1518
1519
1519
1520
if should_archive {
1520
1521
chain_monitor. archive_fully_resolved_channel_monitors ( ) ;
You can’t perform that action at this time.
0 commit comments