File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1403,7 +1403,7 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
1403
1403
/// Either the height at which this channel was created or the height at which it was last
1404
1404
/// serialized if it was serialized by versions prior to 0.0.103.
1405
1405
/// We use this to close if funding is never broadcasted.
1406
- channel_creation_height: u32,
1406
+ pub(super) channel_creation_height: u32,
1407
1407
1408
1408
counterparty_dust_limit_satoshis: u64,
1409
1409
Original file line number Diff line number Diff line change @@ -9007,7 +9007,8 @@ where
9007
9007
node_id: *node_id,
9008
9008
short_channel_id: peer.channel_by_id
9009
9009
.iter()
9010
- .find(|(_, channel)| channel.context().is_usable())
9010
+ .filter(|(_, channel)| channel.context().is_usable())
9011
+ .min_by_key(|(_, channel)| channel.context().channel_creation_height)
9011
9012
.and_then(|(_, channel)| channel.context().get_short_channel_id()),
9012
9013
})
9013
9014
.collect::<Vec<_>>();
You can’t perform that action at this time.
0 commit comments