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 @@ -1450,8 +1450,8 @@ fn build_with_store_internal(
14501450
14511451 // Give ChannelMonitors to ChainMonitor
14521452 for ( _blockhash, channel_monitor) in channel_monitors. into_iter ( ) {
1453- let funding_outpoint = channel_monitor. get_funding_txo ( ) . 0 ;
1454- chain_monitor. watch_channel ( funding_outpoint , channel_monitor) . map_err ( |e| {
1453+ let channel_id = channel_monitor. channel_id ( ) ;
1454+ chain_monitor. watch_channel ( channel_id , channel_monitor) . map_err ( |e| {
14551455 log_error ! ( logger, "Failed to watch channel monitor: {:?}" , e) ;
14561456 BuildError :: InvalidChannelMonitor
14571457 } ) ?;
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ impl BitcoindChainSource {
173173 if let Some ( worst_channel_monitor_block_hash) = chain_monitor
174174 . list_monitors ( )
175175 . iter ( )
176- . flat_map ( |( txo , _ ) | chain_monitor. get_monitor ( * txo ) )
176+ . flat_map ( |channel_id | chain_monitor. get_monitor ( * channel_id ) )
177177 . map ( |m| m. current_best_block ( ) )
178178 . min_by_key ( |b| b. height )
179179 . map ( |b| b. block_hash )
Original file line number Diff line number Diff line change @@ -1439,8 +1439,8 @@ impl Node {
14391439
14401440 let mut total_lightning_balance_sats = 0 ;
14411441 let mut lightning_balances = Vec :: new ( ) ;
1442- for ( funding_txo , channel_id) in self . chain_monitor . list_monitors ( ) {
1443- match self . chain_monitor . get_monitor ( funding_txo ) {
1442+ for channel_id in self . chain_monitor . list_monitors ( ) {
1443+ match self . chain_monitor . get_monitor ( channel_id ) {
14441444 Ok ( monitor) => {
14451445 // unwrap safety: `get_counterparty_node_id` will always be `Some` after 0.0.110 and
14461446 // LDK Node 0.1 depended on 0.0.115 already.
You can’t perform that action at this time.
0 commit comments