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 /core/types | |
parent | 5bcdbb1ce4ac576cab778e9772fabdcc7cbfbb5f (diff) | |
download | go-tangerine-ca18202eb9a94de1d4b51c1572fa74edfa2773bf.tar go-tangerine-ca18202eb9a94de1d4b51c1572fa74edfa2773bf.tar.gz go-tangerine-ca18202eb9a94de1d4b51c1572fa74edfa2773bf.tar.bz2 go-tangerine-ca18202eb9a94de1d4b51c1572fa74edfa2773bf.tar.lz go-tangerine-ca18202eb9a94de1d4b51c1572fa74edfa2773bf.tar.xz go-tangerine-ca18202eb9a94de1d4b51c1572fa74edfa2773bf.tar.zst go-tangerine-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 'core/types')
-rw-r--r-- | core/types/block.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/types/block.go b/core/types/block.go index 387a063ae..37b6f3ec1 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -141,8 +141,10 @@ type Block struct { // of the chain up to and including the block. td *big.Int - // ReceivedAt is used by package eth to track block propagation time. - ReceivedAt time.Time + // These fields are used by package eth to track + // inter-peer block relay. + ReceivedAt time.Time + ReceivedFrom interface{} } // DeprecatedTd is an old relic for extracting the TD of a block. It is in the |