Skip to content

Commit 9a6b268

Browse files
committed
f Account for get_counterparty_node_id returning PublicKey
1 parent 1aeaef5 commit 9a6b268

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,9 +1429,7 @@ impl Node {
14291429
for channel_id in self.chain_monitor.list_monitors() {
14301430
match self.chain_monitor.get_monitor(channel_id) {
14311431
Ok(monitor) => {
1432-
// unwrap safety: `get_counterparty_node_id` will always be `Some` after 0.0.110 and
1433-
// LDK Node 0.1 depended on 0.0.115 already.
1434-
let counterparty_node_id = monitor.get_counterparty_node_id().unwrap();
1432+
let counterparty_node_id = monitor.get_counterparty_node_id();
14351433
for ldk_balance in monitor.get_claimable_balances() {
14361434
total_lightning_balance_sats += ldk_balance.claimable_amount_satoshis();
14371435
lightning_balances.push(LightningBalance::from_ldk_balance(

0 commit comments

Comments
 (0)