File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -9405,6 +9405,12 @@ where
9405
9405
false
9406
9406
}
9407
9407
9408
+ /// Gets the latest inbound SCID alias from our peer, or if none exists, the channel's real
9409
+ /// SCID.
9410
+ pub fn get_inbound_scid(&self) -> Option<u64> {
9411
+ self.context.latest_inbound_scid_alias.or(self.funding.get_short_channel_id())
9412
+ }
9413
+
9408
9414
/// Returns true if our channel_ready has been sent
9409
9415
pub fn is_our_channel_ready(&self) -> bool {
9410
9416
matches!(self.context.channel_state, ChannelState::AwaitingChannelReady(flags) if flags.is_set(AwaitingChannelReadyFlags::OUR_CHANNEL_READY))
Original file line number Diff line number Diff line change @@ -11524,8 +11524,9 @@ where
11524
11524
.channel_by_id
11525
11525
.iter()
11526
11526
.filter(|(_, channel)| channel.context().is_usable())
11527
- .min_by_key(|(_, channel)| channel.context().channel_creation_height)
11528
- .and_then(|(_, channel)| channel.funding().get_short_channel_id()),
11527
+ .filter_map(|(_, channel)| channel.as_funded())
11528
+ .min_by_key(|funded_channel| funded_channel.context.channel_creation_height)
11529
+ .and_then(|funded_channel| funded_channel.get_inbound_scid()),
11529
11530
})
11530
11531
.collect::<Vec<_>>()
11531
11532
}
You can’t perform that action at this time.
0 commit comments