diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-12-19 10:22:38 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 24d6c68a85db33930c7cdba7ad67f0512028619c (patch) | |
tree | f6cfb67c2d096468a8b18089ca49f21fee0ee893 /dex/app_test.go | |
parent | e677874800085b8b9a4d102d41d4b1218029308f (diff) | |
download | dexon-24d6c68a85db33930c7cdba7ad67f0512028619c.tar dexon-24d6c68a85db33930c7cdba7ad67f0512028619c.tar.gz dexon-24d6c68a85db33930c7cdba7ad67f0512028619c.tar.bz2 dexon-24d6c68a85db33930c7cdba7ad67f0512028619c.tar.lz dexon-24d6c68a85db33930c7cdba7ad67f0512028619c.tar.xz dexon-24d6c68a85db33930c7cdba7ad67f0512028619c.tar.zst dexon-24d6c68a85db33930c7cdba7ad67f0512028619c.zip |
dex: remove duplicate declaration of WitnessData (#92)
Remove duplicate declaration of WitnessData and remove the TxHash field
in witness data since it does not need to be witnessed.
Diffstat (limited to 'dex/app_test.go')
-rw-r--r-- | dex/app_test.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/dex/app_test.go b/dex/app_test.go index abe83b92a..82bf8a6f6 100644 --- a/dex/app_test.go +++ b/dex/app_test.go @@ -115,16 +115,12 @@ func TestPrepareWitness(t *testing.T) { t.Errorf("unexpeted witness height %v", witness.Height) } - var witnessData witnessData + var witnessData types.WitnessData err = rlp.DecodeBytes(witness.Data, &witnessData) if err != nil { t.Errorf("rlp decode error: %v", err) } - if witnessData.TxHash != currentBlock.TxHash() { - t.Errorf("expect tx hash %v but %v", currentBlock.TxHash(), witnessData.TxHash) - } - if witnessData.Root != currentBlock.Root() { t.Errorf("expect root %v but %v", currentBlock.Root(), witnessData.Root) } |