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 @@ -1275,8 +1275,8 @@ fn build_with_store_internal(
12751275
12761276 // Give ChannelMonitors to ChainMonitor
12771277 for ( _blockhash, channel_monitor) in channel_monitors. into_iter ( ) {
1278- let funding_outpoint = channel_monitor. get_funding_txo ( ) . 0 ;
1279- chain_monitor. watch_channel ( funding_outpoint , channel_monitor) . map_err ( |e| {
1278+ let channel_id = channel_monitor. channel_id ( ) ;
1279+ chain_monitor. watch_channel ( channel_id , channel_monitor) . map_err ( |e| {
12801280 log_error ! ( logger, "Failed to watch channel monitor: {:?}" , e) ;
12811281 BuildError :: InvalidChannelMonitor
12821282 } ) ?;
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ impl ChainSource {
455455 if let Some ( worst_channel_monitor_block_hash) = chain_monitor
456456 . list_monitors ( )
457457 . iter ( )
458- . flat_map ( |( txo , _ ) | chain_monitor. get_monitor ( * txo ) )
458+ . flat_map ( |channel_id | chain_monitor. get_monitor ( * channel_id ) )
459459 . map ( |m| m. current_best_block ( ) )
460460 . min_by_key ( |b| b. height )
461461 . map ( |b| b. block_hash )
Original file line number Diff line number Diff line change @@ -1427,8 +1427,8 @@ impl Node {
14271427
14281428 let mut total_lightning_balance_sats = 0 ;
14291429 let mut lightning_balances = Vec :: new ( ) ;
1430- for ( funding_txo , channel_id) in self . chain_monitor . list_monitors ( ) {
1431- match self . chain_monitor . get_monitor ( funding_txo ) {
1430+ for channel_id in self . chain_monitor . list_monitors ( ) {
1431+ match self . chain_monitor . get_monitor ( channel_id ) {
14321432 Ok ( monitor) => {
14331433 // unwrap safety: `get_counterparty_node_id` will always be `Some` after 0.0.110 and
14341434 // LDK Node 0.1 depended on 0.0.115 already.
You can’t perform that action at this time.
0 commit comments