From bfde1a4305817e76b203c2fd6da4d6a7ca41e5f7 Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Mon, 14 Sep 2015 16:56:33 +0200 Subject: core: Add BadHashErr and test for BadHashes handling --- core/chain_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/chain_manager.go') 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 } -- cgit v1.2.3