File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -926,13 +926,15 @@ impl ClaimablePayment {
926
926
}
927
927
928
928
/// Returns the inbound `channel_id`s for all HTLCs associated with the payment.
929
- fn get_channel_ids(&self) -> Vec<Option< ChannelId> > {
930
- self.htlcs.iter().map(|htlc| Some( htlc.prev_hop.channel_id) ).collect()
929
+ fn get_channel_ids(&self) -> Vec<ChannelId> {
930
+ self.htlcs.iter().map(|htlc| htlc.prev_hop.channel_id).collect()
931
931
}
932
932
933
933
/// Returns the inbound `user_channel_id`s for all HTLCs associated with the payment.
934
- fn get_user_channel_ids(&self) -> Vec<Option<u128>> {
935
- self.htlcs.iter().map(|htlc| htlc.prev_hop.user_channel_id).collect()
934
+ ///
935
+ /// Note: This list will be incomplete for HTLCs created using LDK version 0.0.112 or earlier.
936
+ fn get_user_channel_ids(&self) -> Vec<u128> {
937
+ self.htlcs.iter().filter_map(|htlc| htlc.prev_hop.user_channel_id).collect()
936
938
}
937
939
}
938
940
You can’t perform that action at this time.
0 commit comments