Skip to content

Commit e0d4e35

Browse files
committed
DROPME: Rebase fix for 0.0.122
1 parent 14947de commit e0d4e35

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
@@ -1568,13 +1568,9 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
15681568

15691569
let mut total_lightning_balance_sats = 0;
15701570
let mut lightning_balances = Vec::new();
1571-
for funding_txo in self.chain_monitor.list_monitors() {
1571+
for (funding_txo, channel_id) in self.chain_monitor.list_monitors() {
15721572
match self.chain_monitor.get_monitor(funding_txo) {
15731573
Ok(monitor) => {
1574-
// TODO: Switch to `channel_id` with LDK 0.0.122: let channel_id = monitor.channel_id();
1575-
let channel_id = funding_txo.to_channel_id();
1576-
// unwrap safety: `get_counterparty_node_id` will always be `Some` after 0.0.110 and
1577-
// LDK Node 0.1 depended on 0.0.115 already.
15781574
let counterparty_node_id = monitor.get_counterparty_node_id().unwrap();
15791575
for ldk_balance in monitor.get_claimable_balances() {
15801576
total_lightning_balance_sats += ldk_balance.claimable_amount_satoshis();

0 commit comments

Comments
 (0)