diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-19 18:59:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-19 18:59:58 +0800 |
commit | 7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58 (patch) | |
tree | cd2ca8574c7d5e45b7942a4e44572447b1e24416 /core | |
parent | 6c2ad7b72ee3d159e1a2439fc16358ceea39118e (diff) | |
download | dexon-7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58.tar dexon-7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58.tar.gz dexon-7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58.tar.bz2 dexon-7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58.tar.lz dexon-7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58.tar.xz dexon-7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58.tar.zst dexon-7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58.zip |
core: disable cash tmp
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index 7dff7dffd..4fb7506e5 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 { |