diff options
author | Felix Lange <fjl@twurst.com> | 2016-05-25 00:49:54 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-05-25 08:02:51 +0800 |
commit | ca18202eb9a94de1d4b51c1572fa74edfa2773bf (patch) | |
tree | 7c56ac08aa0feb3221241959ed2eeff1ef1ff097 /cmd/geth/main.go | |
parent | 5bcdbb1ce4ac576cab778e9772fabdcc7cbfbb5f (diff) | |
download | dexon-ca18202eb9a94de1d4b51c1572fa74edfa2773bf.tar.gz dexon-ca18202eb9a94de1d4b51c1572fa74edfa2773bf.tar.zst dexon-ca18202eb9a94de1d4b51c1572fa74edfa2773bf.zip |
eth: enable bad block reports
We used to have reporting of bad blocks, but it was disabled
before the Frontier release. We need it back because users
are usually unable to provide the full RLP data of a bad
block when it occurs.
A shortcoming of this particular implementation is that the
origin peer is not tracked for blocks received during eth/63
sync. No origin peer info is still better than no report at
all though.
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r-- | cmd/geth/main.go | 6 |
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. |