lnwallet: remove unused field PendingHTLCs

This commit is contained in:
yyforyongyu
2022-03-16 20:02:00 +08:00
parent acde626ac9
commit 9a4589d54e

View File

@ -2231,10 +2231,6 @@ type BreachRetribution struct {
// RevokedStateNum is the revoked state number which was broadcast. // RevokedStateNum is the revoked state number which was broadcast.
RevokedStateNum uint64 RevokedStateNum uint64
// PendingHTLCs is a slice of the HTLCs which were pending at this
// point within the channel's history transcript.
PendingHTLCs []channeldb.HTLC
// LocalOutputSignDesc is a SignDescriptor which is capable of // LocalOutputSignDesc is a SignDescriptor which is capable of
// generating the signature necessary to sweep the output within the // generating the signature necessary to sweep the output within the
// BreachTransaction that pays directly us. // BreachTransaction that pays directly us.
@ -2466,7 +2462,6 @@ func NewBreachRetribution(chanState *channeldb.OpenChannel, stateNum uint64,
BreachTransaction: revokedSnapshot.CommitTx, BreachTransaction: revokedSnapshot.CommitTx,
BreachHeight: breachHeight, BreachHeight: breachHeight,
RevokedStateNum: stateNum, RevokedStateNum: stateNum,
PendingHTLCs: revokedSnapshot.Htlcs,
LocalOutpoint: ourOutpoint, LocalOutpoint: ourOutpoint,
LocalOutputSignDesc: ourSignDesc, LocalOutputSignDesc: ourSignDesc,
LocalDelay: ourDelay, LocalDelay: ourDelay,