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
@@ -346,7 +346,7 @@ func (t *backupTask) craftSessionPayload(
}
}
breachTxID := t.breachInfo.BreachTransaction.TxHash()
breachTxID := t.breachInfo.BreachTxHash
// Compute the breach key as SHA256(txid).
hint, key := blob.NewBreachHintAndKeyFromHash(&breachTxID)