aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain_test.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-12-19 10:22:38 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:19 +0800
commit688f2f832e7513cedbd7f51bced6ed76348e2b2f (patch)
treea0f7a7f9de36f249c3e06713740bcb292d5f90a7 /core/blockchain_test.go
parentc399c2fbf2000313ff32f8e1f9b1839f157a8b97 (diff)
downloadgo-tangerine-688f2f832e7513cedbd7f51bced6ed76348e2b2f.tar
go-tangerine-688f2f832e7513cedbd7f51bced6ed76348e2b2f.tar.gz
go-tangerine-688f2f832e7513cedbd7f51bced6ed76348e2b2f.tar.bz2
go-tangerine-688f2f832e7513cedbd7f51bced6ed76348e2b2f.tar.lz
go-tangerine-688f2f832e7513cedbd7f51bced6ed76348e2b2f.tar.xz
go-tangerine-688f2f832e7513cedbd7f51bced6ed76348e2b2f.tar.zst
go-tangerine-688f2f832e7513cedbd7f51bced6ed76348e2b2f.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 'core/blockchain_test.go')
-rw-r--r--core/blockchain_test.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/blockchain_test.go b/core/blockchain_test.go
index 867cfef5e..e8d96e5c8 100644
--- a/core/blockchain_test.go
+++ b/core/blockchain_test.go
@@ -1658,7 +1658,6 @@ func TestProcessPendingBlock(t *testing.T) {
if i == 0 {
witnessData := types.WitnessData{
Root: gspec.ToBlock(nil).Root(),
- TxHash: gspec.ToBlock(nil).TxHash(),
ReceiptHash: gspec.ToBlock(nil).ReceiptHash(),
}
witnessDataBytes, err = rlp.EncodeToBytes(&witnessData)
@@ -1668,7 +1667,6 @@ func TestProcessPendingBlock(t *testing.T) {
} else {
witnessData := types.WitnessData{
Root: chain.pendingBlocks[uint64(i)].block.Root(),
- TxHash: chain.pendingBlocks[uint64(i)].block.TxHash(),
ReceiptHash: chain.pendingBlocks[uint64(i)].block.ReceiptHash(),
}
witnessDataBytes, err = rlp.EncodeToBytes(&witnessData)
@@ -1721,7 +1719,6 @@ func TestProcessPendingBlock(t *testing.T) {
// Validate witness fail with unknown block.
witnessData := types.WitnessData{
Root: chain.pendingBlocks[processNum].block.Root(),
- TxHash: chain.pendingBlocks[processNum].block.TxHash(),
ReceiptHash: chain.pendingBlocks[processNum].block.ReceiptHash(),
}
witnessDataBytes, err := rlp.EncodeToBytes(&witnessData)
@@ -1745,7 +1742,6 @@ func TestProcessPendingBlock(t *testing.T) {
// Validate witness fail with unexpected root.
witnessData = types.WitnessData{
Root: chain.pendingBlocks[processNum].block.Root(),
- TxHash: chain.pendingBlocks[processNum].block.TxHash(),
ReceiptHash: chain.pendingBlocks[processNum].block.ReceiptHash(),
}
witnessDataBytes, err = rlp.EncodeToBytes(&witnessData)
@@ -1769,7 +1765,6 @@ func TestProcessPendingBlock(t *testing.T) {
// Apply transaction fail with insufficient fund.
witnessData = types.WitnessData{
Root: chain.pendingBlocks[processNum].block.Root(),
- TxHash: chain.pendingBlocks[processNum].block.TxHash(),
ReceiptHash: chain.pendingBlocks[processNum].block.ReceiptHash(),
}
witnessDataBytes, err = rlp.EncodeToBytes(&witnessData)
@@ -1802,7 +1797,6 @@ func TestProcessPendingBlock(t *testing.T) {
// Apply transaction fail with nonce too height.
witnessData = types.WitnessData{
Root: chain.pendingBlocks[processNum].block.Root(),
- TxHash: chain.pendingBlocks[processNum].block.TxHash(),
ReceiptHash: chain.pendingBlocks[processNum].block.ReceiptHash(),
}
witnessDataBytes, err = rlp.EncodeToBytes(&witnessData)