mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-04 02:23:48 +00:00
core: disable cash tmp
This commit is contained in:
parent
6c2ad7b72e
commit
7d9a13e0d5
1 changed files with 5 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue