Skip to content

Commit 5a672bd

Browse files
committed
f correct scid used
1 parent cece94a commit 5a672bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14083,8 +14083,8 @@ impl<
1408314083
short_channel_id: peer_chans
1408414084
.iter()
1408514085
.filter(|chan| chan.is_usable)
14086-
.filter_map(|chan| chan.short_channel_id)
14087-
.min(),
14086+
.min_by_key(|chan| chan.short_channel_id)
14087+
.and_then(|chan| chan.get_inbound_payment_scid()),
1408814088
})
1408914089
}
1409014090
start = end;

0 commit comments

Comments
 (0)