From 7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58 Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 19 May 2015 12:59:12 +0200 Subject: [PATCH] core: disable cash tmp --- core/chain_manager.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/chain_manager.go b/core/chain_manager.go index 7dff7dffd5..4fb7506e53 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -412,9 +412,11 @@ func (self *ChainManager) GetBlockHashesFromHash(hash common.Hash, max uint64) ( } func (self *ChainManager) GetBlock(hash common.Hash) *types.Block { - if block := self.cache.Get(hash); block != nil { - return block - } + /* + if block := self.cache.Get(hash); block != nil { + return block + } + */ data, _ := self.blockDb.Get(append(blockHashPre, hash[:]...)) if len(data) == 0 {