From 5cfa0e918799f296580d01093b2e3ec921b93ba4 Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Thu, 23 Apr 2015 17:35:05 +0200 Subject: [PATCH] bugfix, wrong hash stored in blockDb --- core/chain_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chain_manager.go b/core/chain_manager.go index e5fcd4afc..0003a6011 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -343,7 +343,7 @@ func (self *ChainManager) Export(w io.Writer) error { func (bc *ChainManager) insert(block *types.Block) { key := append(blockNumPre, block.Number().Bytes()...) - bc.blockDb.Put(key, bc.lastBlockHash.Bytes()) + bc.blockDb.Put(key, block.Hash().Bytes()) // Push block to cache bc.cache.Push(block)