mirror of https://github.com/status-im/op-geth.git
bugfix, wrong hash stored in blockDb
This commit is contained in:
parent
c9e22976f5
commit
5cfa0e9187
|
@ -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…
Reference in New Issue