aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain.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 /core/blockchain.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 'core/blockchain.go')
-rw-r--r--core/blockchain.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 4598800d5..171a49e53 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -1117,15 +1117,12 @@ func (self *BlockChain) update() {
}
}
-// reportBlock reports the given block and error using the canonical block
-// reporting tool. Reporting the block to the service is handled in a separate
-// goroutine.
+// reportBlock logs a bad block error.
func reportBlock(block *types.Block, err error) {
if glog.V(logger.Error) {
glog.Errorf("Bad block #%v (%s)\n", block.Number(), block.Hash().Hex())
glog.Errorf(" %v", err)
}
- go ReportBlock(block, err)
}
// InsertHeaderChain attempts to insert the given header chain in to the local