good morning!!!!

Skip to content
Snippets Groups Projects
Commit 5cfa0e91 authored by Bas van Kervel's avatar Bas van Kervel
Browse files

bugfix, wrong hash stored in blockDb

parent c9e22976
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment