Skip to content

Commit 78f2f60

Browse files
committed
f Account for to_channel_id being removed
1 parent 7e2b0fb commit 78f2f60

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,13 +1619,9 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
16191619

16201620
let mut total_lightning_balance_sats = 0;
16211621
let mut lightning_balances = Vec::new();
1622-
for funding_txo in self.chain_monitor.list_monitors() {
1622+
for (funding_txo, channel_id) in self.chain_monitor.list_monitors() {
16231623
match self.chain_monitor.get_monitor(funding_txo) {
16241624
Ok(monitor) => {
1625-
// TODO: Switch to `channel_id` with LDK 0.0.122: let channel_id = monitor.channel_id();
1626-
let channel_id = funding_txo.to_channel_id();
1627-
// unwrap safety: `get_counterparty_node_id` will always be `Some` after 0.0.110 and
1628-
// LDK Node 0.1 depended on 0.0.115 already.
16291625
let counterparty_node_id = monitor.get_counterparty_node_id().unwrap();
16301626
for ldk_balance in monitor.get_claimable_balances() {
16311627
total_lightning_balance_sats += ldk_balance.claimable_amount_satoshis();

0 commit comments

Comments
 (0)