diff options
author | Bas van Kervel <basvankervel@gmail.com> | 2015-04-23 23:35:05 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2015-04-23 23:35:05 +0800 |
commit | 5cfa0e918799f296580d01093b2e3ec921b93ba4 (patch) | |
tree | 5da0d4ab6d62a8cdeaad04f88f50936a0f427079 | |
parent | c9e22976f59f788a9776beab346e7dcf25af48ac (diff) | |
download | go-tangerine-5cfa0e918799f296580d01093b2e3ec921b93ba4.tar go-tangerine-5cfa0e918799f296580d01093b2e3ec921b93ba4.tar.gz go-tangerine-5cfa0e918799f296580d01093b2e3ec921b93ba4.tar.bz2 go-tangerine-5cfa0e918799f296580d01093b2e3ec921b93ba4.tar.lz go-tangerine-5cfa0e918799f296580d01093b2e3ec921b93ba4.tar.xz go-tangerine-5cfa0e918799f296580d01093b2e3ec921b93ba4.tar.zst go-tangerine-5cfa0e918799f296580d01093b2e3ec921b93ba4.zip |
bugfix, wrong hash stored in blockDb
-rw-r--r-- | core/chain_manager.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index e5fcd4afc..0003a6011 100644 --- a/core/chain_manager.go +++ b/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) |