channel: add ResolutionBlob to Incoming+Outgoing HtlcResolution

Similar to the other blobs we have for the commitment output force close
resolution, these blobs will be used to ensure that we have everything
needed to sweep aux HTLCs.
This commit is contained in:
Olaoluwa Osuntokun 2024-10-15 19:10:38 -07:00 committed by Oliver Gugger
parent 57617dc4f7
commit 84aacc6c39
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -6900,6 +6900,11 @@ type IncomingHtlcResolution struct {
// necessary items required to spend the sole output of the above
// transaction.
SweepSignDesc input.SignDescriptor
// ResolutionBlob is a blob used for aux channels that permits a
// spender of the output to properly resolve it in the case of a force
// close.
ResolutionBlob fn.Option[tlv.Blob]
}
// OutgoingHtlcResolution houses the information necessary to sweep any
@ -6949,6 +6954,11 @@ type OutgoingHtlcResolution struct {
// necessary items required to spend the sole output of the above
// transaction.
SweepSignDesc input.SignDescriptor
// ResolutionBlob is a blob used for aux channels that permits a
// spender of the output to properly resolve it in the case of a force
// close.
ResolutionBlob fn.Option[tlv.Blob]
}
// HtlcResolutions contains the items necessary to sweep HTLC's on chain