aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-09-14 22:56:33 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-09-23 00:02:26 +0800
commitbfde1a4305817e76b203c2fd6da4d6a7ca41e5f7 (patch)
tree0b31f5fd7d553e0334cea767cab8df14badba690 /core/chain_manager.go
parent36f46a61a7147ff9f98774c6c478eb965a9bea9c (diff)
downloadgo-tangerine-bfde1a4305817e76b203c2fd6da4d6a7ca41e5f7.tar.gz
go-tangerine-bfde1a4305817e76b203c2fd6da4d6a7ca41e5f7.tar.zst
go-tangerine-bfde1a4305817e76b203c2fd6da4d6a7ca41e5f7.zip
core: Add BadHashErr and test for BadHashes handling
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 0ad4f86f9..383fce70c 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -642,7 +642,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) (int, error) {
}
if BadHashes[block.Hash()] {
- err := fmt.Errorf("Found known bad hash in chain %x", block.Hash())
+ err := BadHashError(block.Hash())
blockErr(block, err)
return i, err
}