channel: always specify ChanType in ResolutionReq

This commit is contained in:
Olaoluwa Osuntokun
2024-10-15 19:09:44 -07:00
parent bf350c6ede
commit 98b41c6576

View File

@@ -2202,6 +2202,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,
@@ -2281,6 +2282,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,
@@ -6839,6 +6841,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,