aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/main.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-05-26 04:40:28 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-05-26 04:40:28 +0800
commita7434fd0085f55235acea5348db0c9247e9aac10 (patch)
tree28c458737e903a3f3b0e8e9e1c90e12e207218a7 /cmd/geth/main.go
parentd9bb8179d39d356b38fd512f4c946f9ca1d1b6e2 (diff)
parentca18202eb9a94de1d4b51c1572fa74edfa2773bf (diff)
downloadgo-tangerine-a7434fd0085f55235acea5348db0c9247e9aac10.tar
go-tangerine-a7434fd0085f55235acea5348db0c9247e9aac10.tar.gz
go-tangerine-a7434fd0085f55235acea5348db0c9247e9aac10.tar.bz2
go-tangerine-a7434fd0085f55235acea5348db0c9247e9aac10.tar.lz
go-tangerine-a7434fd0085f55235acea5348db0c9247e9aac10.tar.xz
go-tangerine-a7434fd0085f55235acea5348db0c9247e9aac10.tar.zst
go-tangerine-a7434fd0085f55235acea5348db0c9247e9aac10.zip
Merge pull request #2614 from fjl/bad-block-report
eth: enable bad block reports
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r--cmd/geth/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index b8e2a78b8..68aa7d45f 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -244,6 +244,12 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Conso
// Start system runtime metrics collection
go metrics.CollectProcessMetrics(3 * time.Second)
+ // This should be the only place where reporting is enabled
+ // because it is not intended to run while testing.
+ // In addition to this check, bad block reports are sent only
+ // for chains with the main network genesis block and network id 1.
+ eth.EnableBadBlockReporting = true
+
utils.SetupNetwork(ctx)
// Deprecation warning.