aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-07-04 23:45:18 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-05 21:14:31 +0800
commitbcc1660abc1c0a5ef838dea89e4f3830d84fb51c (patch)
tree67806e8069fbfc8c192daababed71f4e158176a6 /tests
parent9c3db1be1dd24c366a58a7ced22adfa0b0839efe (diff)
downloadgo-tangerine-bcc1660abc1c0a5ef838dea89e4f3830d84fb51c.tar.gz
go-tangerine-bcc1660abc1c0a5ef838dea89e4f3830d84fb51c.tar.zst
go-tangerine-bcc1660abc1c0a5ef838dea89e4f3830d84fb51c.zip
core, miner, tests: added test, implemented bad block reporting
Diffstat (limited to 'tests')
-rw-r--r--tests/init.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/init.go b/tests/init.go
index dd8df930f..a78a2f54b 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 (
@@ -48,6 +50,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)