aboutsummaryrefslogtreecommitdiffstats
path: root/tests/init.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-06 17:03:50 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-06 17:03:50 +0800
commitaa4502060b50733a3a82a0ab575eac0731cdb7ca (patch)
tree8c9ccc339ddb4de712de2aba988497d9e2bdaacd /tests/init.go
parentb533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d (diff)
parentbcc1660abc1c0a5ef838dea89e4f3830d84fb51c (diff)
downloaddexon-aa4502060b50733a3a82a0ab575eac0731cdb7ca.tar
dexon-aa4502060b50733a3a82a0ab575eac0731cdb7ca.tar.gz
dexon-aa4502060b50733a3a82a0ab575eac0731cdb7ca.tar.bz2
dexon-aa4502060b50733a3a82a0ab575eac0731cdb7ca.tar.lz
dexon-aa4502060b50733a3a82a0ab575eac0731cdb7ca.tar.xz
dexon-aa4502060b50733a3a82a0ab575eac0731cdb7ca.tar.zst
dexon-aa4502060b50733a3a82a0ab575eac0731cdb7ca.zip
Merge pull request #1400 from obscuren/badblock-reporting
core, miner, tests: added test, implemented bad block reporting
Diffstat (limited to 'tests/init.go')
-rw-r--r--tests/init.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/init.go b/tests/init.go
index 1deaf5912..832759f7e 100644
--- a/tests/init.go
+++ b/tests/init.go
@@ -8,6 +8,8 @@ import (
"net/http"
"os"
"path/filepath"
+
+ "github.com/ethereum/go-ethereum/core"
)
var (
@@ -43,6 +45,7 @@ func readJson(reader io.Reader, value interface{}) error {
return fmt.Errorf("Error reading JSON file", err.Error())
}
+ core.DisableBadBlockReporting = true
if err = json.Unmarshal(data, &value); err != nil {
if syntaxerr, ok := err.(*json.SyntaxError); ok {
line := findLine(data, syntaxerr.Offset)