diff options
author | Felix Lange <fjl@twurst.com> | 2016-05-25 00:49:54 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-06-06 21:21:34 +0800 |
commit | 9ccb70da7b9128403521a49aba0bf0ed3799aa99 (patch) | |
tree | dfe271932983f2ae6474b3862d4d5bf4a7078620 /cmd | |
parent | 8fefee7132e2f3296cb316a8338181d10c6c7cdf (diff) | |
download | go-tangerine-9ccb70da7b9128403521a49aba0bf0ed3799aa99.tar go-tangerine-9ccb70da7b9128403521a49aba0bf0ed3799aa99.tar.gz go-tangerine-9ccb70da7b9128403521a49aba0bf0ed3799aa99.tar.bz2 go-tangerine-9ccb70da7b9128403521a49aba0bf0ed3799aa99.tar.lz go-tangerine-9ccb70da7b9128403521a49aba0bf0ed3799aa99.tar.xz go-tangerine-9ccb70da7b9128403521a49aba0bf0ed3799aa99.tar.zst go-tangerine-9ccb70da7b9128403521a49aba0bf0ed3799aa99.zip |
[release/1.4.6] 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.
(cherry picked from commit ca18202eb9a94de1d4b51c1572fa74edfa2773bf)
Diffstat (limited to 'cmd')
-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 e94b76594..1047a2bbd 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. |