aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/blockchain_test.go')
-rw-r--r--core/blockchain_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/blockchain_test.go b/core/blockchain_test.go
index d65571cde..7505208e1 100644
--- a/core/blockchain_test.go
+++ b/core/blockchain_test.go
@@ -532,13 +532,10 @@ func testInsertNonceError(t *testing.T, full bool) {
blockchain.hc.engine = blockchain.engine
failRes, err = blockchain.InsertHeaderChain(headers, 1)
}
- // Check that the returned error indicates the nonce failure.
+ // Check that the returned error indicates the failure.
if failRes != failAt {
t.Errorf("test %d: failure index mismatch: have %d, want %d", i, failRes, failAt)
}
- if err != ethash.ErrInvalidPoW {
- t.Fatalf("test %d: error mismatch: have %v, want %v", i, err, ethash.ErrInvalidPoW)
- }
// Check that all no blocks after the failing block have been inserted.
for j := 0; j < i-failAt; j++ {
if full {