File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1269,8 +1269,8 @@ fn build_with_store_internal(
1269
1269
1270
1270
// Give ChannelMonitors to ChainMonitor
1271
1271
for ( _blockhash, channel_monitor) in channel_monitors. into_iter ( ) {
1272
- let funding_outpoint = channel_monitor. get_funding_txo ( ) . 0 ;
1273
- chain_monitor. watch_channel ( funding_outpoint , channel_monitor) . map_err ( |e| {
1272
+ let channel_id = channel_monitor. channel_id ( ) ;
1273
+ chain_monitor. watch_channel ( channel_id , channel_monitor) . map_err ( |e| {
1274
1274
log_error ! ( logger, "Failed to watch channel monitor: {:?}" , e) ;
1275
1275
BuildError :: InvalidChannelMonitor
1276
1276
} ) ?;
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ impl ChainSource {
445
445
if let Some ( worst_channel_monitor_block_hash) = chain_monitor
446
446
. list_monitors ( )
447
447
. iter ( )
448
- . flat_map ( |( txo , _ ) | chain_monitor. get_monitor ( * txo ) )
448
+ . flat_map ( |channel_id | chain_monitor. get_monitor ( * channel_id ) )
449
449
. map ( |m| m. current_best_block ( ) )
450
450
. min_by_key ( |b| b. height )
451
451
. map ( |b| b. block_hash )
Original file line number Diff line number Diff line change @@ -1426,8 +1426,8 @@ impl Node {
1426
1426
1427
1427
let mut total_lightning_balance_sats = 0 ;
1428
1428
let mut lightning_balances = Vec :: new ( ) ;
1429
- for ( funding_txo , channel_id) in self . chain_monitor . list_monitors ( ) {
1430
- match self . chain_monitor . get_monitor ( funding_txo ) {
1429
+ for channel_id in self . chain_monitor . list_monitors ( ) {
1430
+ match self . chain_monitor . get_monitor ( channel_id ) {
1431
1431
Ok ( monitor) => {
1432
1432
// unwrap safety: `get_counterparty_node_id` will always be `Some` after 0.0.110 and
1433
1433
// LDK Node 0.1 depended on 0.0.115 already.
You can’t perform that action at this time.
0 commit comments