multi: use txid instead of tx in BreachRetribution

This commit replaces the field `BreachTransaction` with `BreachTxHash`
as there's no need to pass that large raw transaction.
This commit is contained in:
yyforyongyu committed 2022-04-20 01:18:14 +08:00
1 parent 37b11c4503
commit 953767961e
7 files changed
+23 -23

No files matched your search

+1 -1
View File
@@ -812,7 +812,7 @@ func (c *chainWatcher) handlePossibleBreach(commitSpend *chainntnfs.SpendDetail,
// own broadcasted state we are looking at. Therefore check that the
// commit matches before assuming it was a breach.
commitHash := commitSpend.SpendingTx.TxHash()
if retribution.BreachTransaction.TxHash() != commitHash {
if retribution.BreachTxHash != commitHash {
return false, nil
}