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.
This commit is contained in:
@ -25,8 +25,6 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/ethereum/go-ethereum/core"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -59,11 +57,6 @@ var (
|
||||
VmSkipTests = []string{}
|
||||
)
|
||||
|
||||
// Disable reporting bad blocks for the tests
|
||||
func init() {
|
||||
core.DisableBadBlockReporting = true
|
||||
}
|
||||
|
||||
func readJson(reader io.Reader, value interface{}) error {
|
||||
data, err := ioutil.ReadAll(reader)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user