diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-07-06 17:03:50 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-07-06 17:03:50 +0800 |
commit | aa4502060b50733a3a82a0ab575eac0731cdb7ca (patch) | |
tree | 8c9ccc339ddb4de712de2aba988497d9e2bdaacd /tests/init.go | |
parent | b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d (diff) | |
parent | bcc1660abc1c0a5ef838dea89e4f3830d84fb51c (diff) | |
download | dexon-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.go | 3 |
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) |