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) {
|
func (bc *ChainManager) insert(block *types.Block) {
|
||||||
key := append(blockNumPre, block.Number().Bytes()...)
|
key := append(blockNumPre, block.Number().Bytes()...)
|
||||||
bc.blockDb.Put(key, bc.lastBlockHash.Bytes())
|
bc.blockDb.Put(key, block.Hash().Bytes())
|
||||||
// Push block to cache
|
// Push block to cache
|
||||||
bc.cache.Push(block)
|
bc.cache.Push(block)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user