From 841f4f73cf92f9a44ae272dc3408b20ef9ee0795 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 10 Nov 2017 15:23:28 -0800 Subject: [PATCH] breacharbiter: update tests to add chainHash to retributionInfo in test data --- breacharbiter_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/breacharbiter_test.go b/breacharbiter_test.go index a6a44b39..cc38cfe6 100644 --- a/breacharbiter_test.go +++ b/breacharbiter_test.go @@ -219,6 +219,12 @@ var ( 0x4f, 0x2f, 0x6f, 0x25, 0x88, 0xa3, 0xef, 0xb9, 0x6a, 0x49, 0x18, 0x83, 0x31, 0x98, 0x47, 0x53, }, + chainHash: [chainhash.HashSize]byte{ + 0x4d, 0x92, 0x73, 0xd1, 0x90, 0x63, 0x81, 0xb4, + 0x4f, 0x2f, 0x6f, 0x25, 0x88, 0xa3, 0xef, 0xb9, + 0xb7, 0x94, 0x38, 0x5f, 0x2d, 0x1e, 0xf7, 0xab, + 0x6b, 0x49, 0x18, 0x83, 0x31, 0x98, 0x47, 0x53, + }, chanPoint: breachOutPoints[0], capacity: btcutil.Amount(1e7), settledBalance: btcutil.Amount(1e7), @@ -232,6 +238,12 @@ var ( 0x2d, 0xe7, 0x93, 0xe4, 0xb7, 0x25, 0xb8, 0x4d, 0x1f, 0xb, 0x4c, 0xf9, 0x9e, 0xc5, 0x8c, 0xe9, }, + chainHash: [chainhash.HashSize]byte{ + 0x4f, 0x2f, 0x6f, 0x25, 0x88, 0xa3, 0xef, 0xb9, + 0xb7, 0x94, 0x39, 0x5f, 0x2d, 0x1e, 0xf7, 0xab, + 0x6b, 0x49, 0x18, 0x83, 0x31, 0x98, 0x47, 0x53, + 0x4d, 0x92, 0x73, 0xd1, 0x90, 0x63, 0x81, 0xb4, + }, chanPoint: breachOutPoints[1], capacity: btcutil.Amount(1e7), settledBalance: btcutil.Amount(1e7), @@ -401,6 +413,7 @@ func copyRetInfo(retInfo *retributionInfo) *retributionInfo { ret := &retributionInfo{ commitHash: retInfo.commitHash, + chainHash: retInfo.chainHash, chanPoint: retInfo.chanPoint, remoteIdentity: retInfo.remoteIdentity, capacity: retInfo.capacity,