diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-06-27 19:57:56 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-06-30 00:51:49 +0800 |
commit | e349fac97dea92ef77ba5e72599fbe9f0ae16c2a (patch) | |
tree | c9995802dd0ca0afeee75c63108e6fc2737dce93 /core/chain_manager.go | |
parent | aba901e13cc40400b644041044ada13636927f44 (diff) | |
download | go-tangerine-e349fac97dea92ef77ba5e72599fbe9f0ae16c2a.tar.gz go-tangerine-e349fac97dea92ef77ba5e72599fbe9f0ae16c2a.tar.zst go-tangerine-e349fac97dea92ef77ba5e72599fbe9f0ae16c2a.zip |
core: fixed tests
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r-- | core/chain_manager.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index 85c1e39d7..a4c8563c3 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -264,6 +264,7 @@ func (bc *ChainManager) setLastState() { func (bc *ChainManager) makeCache() { bc.cache, _ = lru.New(blockCacheLimit) // load in last `blockCacheLimit` - 1 blocks. Last block is the current. + bc.cache.Add(bc.genesisBlock.Hash(), bc.genesisBlock) for _, block := range bc.GetBlocksFromHash(bc.currentBlock.Hash(), blockCacheLimit) { bc.cache.Add(block.Hash(), block) } |