mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
bugfix, wrong hash stored in blockDb
This commit is contained in:
parent
c9e22976f5
commit
5cfa0e9187
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue