From 84aacc6c394c702866c7282ad6568accc8ab2f54 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 15 Oct 2024 19:10:38 -0700 Subject: [PATCH] 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. --- lnwallet/channel.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index f978b2d0d..b1c4f0384 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -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