File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1690,13 +1690,9 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
16901690
16911691 let mut total_lightning_balance_sats = 0 ;
16921692 let mut lightning_balances = Vec :: new ( ) ;
1693- for funding_txo in self . chain_monitor . list_monitors ( ) {
1693+ for ( funding_txo, channel_id ) in self . chain_monitor . list_monitors ( ) {
16941694 match self . chain_monitor . get_monitor ( funding_txo) {
16951695 Ok ( monitor) => {
1696- // TODO: Switch to `channel_id` with LDK 0.0.122: let channel_id = monitor.channel_id();
1697- let channel_id = funding_txo. to_channel_id ( ) ;
1698- // unwrap safety: `get_counterparty_node_id` will always be `Some` after 0.0.110 and
1699- // LDK Node 0.1 depended on 0.0.115 already.
17001696 let counterparty_node_id = monitor. get_counterparty_node_id ( ) . unwrap ( ) ;
17011697 for ldk_balance in monitor. get_claimable_balances ( ) {
17021698 total_lightning_balance_sats += ldk_balance. claimable_amount_satoshis ( ) ;
You can’t perform that action at this time.
0 commit comments