File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1130,6 +1130,12 @@ impl_writeable_tlv_based_enum!(EventCompletionAction,
1130
1130
}
1131
1131
);
1132
1132
1133
+ /// The source argument which is passed to [`ChannelManager::claim_mpp_part`].
1134
+ ///
1135
+ /// This is identical to [`MPPClaimHTLCSource`] except that [`Self::counterparty_node_id`] is an
1136
+ /// `Option`, whereas it is required in [`MPPClaimHTLCSource`]. In the future, we should ideally
1137
+ /// drop this and merge the two, however doing so may break upgrades for nodes which have pending
1138
+ /// forwarded payments.
1133
1139
struct HTLCClaimSource {
1134
1140
counterparty_node_id: Option<PublicKey>,
1135
1141
funding_txo: OutPoint,
@@ -1150,7 +1156,8 @@ impl From<&MPPClaimHTLCSource> for HTLCClaimSource {
1150
1156
1151
1157
#[derive(Clone, Debug, PartialEq, Eq)]
1152
1158
/// The source of an HTLC which is being claimed as a part of an incoming payment. Each part is
1153
- /// tracked in [`PendingMPPClaim`].
1159
+ /// tracked in [`PendingMPPClaim`] as well as in [`ChannelMonitor`]s, so that it can be converted
1160
+ /// to an [`HTLCClaimSource`] for claim replays on startup.
1154
1161
struct MPPClaimHTLCSource {
1155
1162
counterparty_node_id: PublicKey,
1156
1163
funding_txo: OutPoint,
You can’t perform that action at this time.
0 commit comments