channel: always specify ChanType in ResolutionReq

This commit is contained in:
Olaoluwa Osuntokun
2024-10-15 19:09:44 -07:00
committed by Oliver Gugger
parent a5beb340e4
commit 57617dc4f7

View File

@@ -2166,6 +2166,7 @@ func NewBreachRetribution(chanState *channeldb.OpenChannel, stateNum uint64,
// resolution data for this output.
resolveReq := ResolutionReq{
ChanPoint: chanState.FundingOutpoint,
ChanType: chanState.ChanType,
ShortChanID: chanState.ShortChanID(),
Initiator: chanState.IsInitiator,
FundingBlob: chanState.CustomBlob,
@@ -2245,6 +2246,7 @@ func NewBreachRetribution(chanState *channeldb.OpenChannel, stateNum uint64,
// resolution data for this output.
resolveReq := ResolutionReq{
ChanPoint: chanState.FundingOutpoint,
ChanType: chanState.ChanType,
ShortChanID: chanState.ShortChanID(),
Initiator: chanState.IsInitiator,
FundingBlob: chanState.CustomBlob,
@@ -6780,6 +6782,7 @@ func NewUnilateralCloseSummary(chanState *channeldb.OpenChannel,
// resolution data for this output.
resolveReq := ResolutionReq{
ChanPoint: chanState.FundingOutpoint,
ChanType: chanState.ChanType,
ShortChanID: chanState.ShortChanID(),
Initiator: chanState.IsInitiator,
CommitBlob: chanState.RemoteCommitment.CustomBlob,