aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-28 18:06:10 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-28 19:03:10 +0800
commit29b0480cfb2f2bd6c350fdce0063312ad691d7b8 (patch)
treeacffafea6ff39c6e1cad36120bc00d7378565f4c /core/chain_manager.go
parent27e0d2a97325edc9a870a747412d0b9a2abd1ed1 (diff)
downloadgo-tangerine-29b0480cfb2f2bd6c350fdce0063312ad691d7b8.tar
go-tangerine-29b0480cfb2f2bd6c350fdce0063312ad691d7b8.tar.gz
go-tangerine-29b0480cfb2f2bd6c350fdce0063312ad691d7b8.tar.bz2
go-tangerine-29b0480cfb2f2bd6c350fdce0063312ad691d7b8.tar.lz
go-tangerine-29b0480cfb2f2bd6c350fdce0063312ad691d7b8.tar.xz
go-tangerine-29b0480cfb2f2bd6c350fdce0063312ad691d7b8.tar.zst
go-tangerine-29b0480cfb2f2bd6c350fdce0063312ad691d7b8.zip
core, eth/downloader: expose the bad hashes, check in downloader
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r--core/chain_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index ee73145c1..edf8825f3 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -121,7 +121,7 @@ func NewChainManager(blockDb, stateDb common.Database, pow pow.PoW, mux *event.T
bc.setLastState()
// Check the current state of the block hashes and make sure that we do not have any of the bad blocks in our chain
- for _, hash := range badHashes {
+ for hash, _ := range BadHashes {
if block := bc.GetBlock(hash); block != nil {
glog.V(logger.Error).Infof("Found bad hash. Reorganising chain to state %x\n", block.ParentHash().Bytes()[:4])
block = bc.GetBlock(block.ParentHash())