bugfix, wrong hash stored in blockDb

pull/778/head^2
Bas van Kervel 10 years ago
parent c9e22976f5
commit 5cfa0e9187
  1. 2
      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)

Loading…
Cancel
Save