diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-09-14 22:56:33 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-09-23 00:02:26 +0800 |
commit | bfde1a4305817e76b203c2fd6da4d6a7ca41e5f7 (patch) | |
tree | 0b31f5fd7d553e0334cea767cab8df14badba690 /core/chain_manager.go | |
parent | 36f46a61a7147ff9f98774c6c478eb965a9bea9c (diff) | |
download | go-tangerine-bfde1a4305817e76b203c2fd6da4d6a7ca41e5f7.tar go-tangerine-bfde1a4305817e76b203c2fd6da4d6a7ca41e5f7.tar.gz go-tangerine-bfde1a4305817e76b203c2fd6da4d6a7ca41e5f7.tar.bz2 go-tangerine-bfde1a4305817e76b203c2fd6da4d6a7ca41e5f7.tar.lz go-tangerine-bfde1a4305817e76b203c2fd6da4d6a7ca41e5f7.tar.xz 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.go | 2 |
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 } |