aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-19 18:59:12 +0800
committerobscuren <geffobscura@gmail.com>2015-05-19 18:59:58 +0800
commit7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58 (patch)
treecd2ca8574c7d5e45b7942a4e44572447b1e24416 /core/chain_manager.go
parent6c2ad7b72ee3d159e1a2439fc16358ceea39118e (diff)
downloadgo-tangerine-7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58.tar.gz
go-tangerine-7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58.tar.zst
go-tangerine-7d9a13e0d5a3c7745a0219957ccd2bcc5a301c58.zip
core: disable cash tmp
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r--core/chain_manager.go8
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 {