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:
7 files changed
+23
-23
No files matched your search
@@ -124,8 +124,8 @@ func genTaskTest(
|
||||
// the breach transaction, which we will continue to modify.
|
||||
breachTxn := wire.NewMsgTx(2)
|
||||
breachInfo := &lnwallet.BreachRetribution{
|
||||
RevokedStateNum: stateNum,
|
||||
BreachTransaction: breachTxn,
|
||||
RevokedStateNum: stateNum,
|
||||
BreachTxHash: breachTxn.TxHash(),
|
||||
KeyRing: &lnwallet.CommitmentKeyRing{
|
||||
RevocationKey: revPK,
|
||||
ToLocalKey: toLocalPK,
|
||||
@@ -607,7 +607,7 @@ func testBackupTask(t *testing.T, test backupTaskTest) {
|
||||
}
|
||||
|
||||
// Verify that the breach hint matches the breach txid's prefix.
|
||||
breachTxID := test.breachInfo.BreachTransaction.TxHash()
|
||||
breachTxID := test.breachInfo.BreachTxHash
|
||||
expHint := blob.NewBreachHintFromHash(&breachTxID)
|
||||
if hint != expHint {
|
||||
t.Fatalf("breach hint mismatch, want: %x, got: %v",
|
||||
|
||||
Reference in new issue
Block a user