mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +00:00
cache all after 1 epoch
This commit is contained in:
parent
88fa30a4ea
commit
3227893d02
1 changed files with 1 additions and 5 deletions
|
|
@ -506,11 +506,7 @@ func (bc *BlockChain) insert(block *types.Block) {
|
||||||
}
|
}
|
||||||
bc.currentBlock.Store(block)
|
bc.currentBlock.Store(block)
|
||||||
|
|
||||||
// save cache BlockSigners
|
// If the block is better than our head or is on a different chain, force update heads
|
||||||
engine := bc.Engine().(*posv.Posv)
|
|
||||||
engine.CacheData(block.Header(), block.Transactions(), bc.GetReceiptsByHash(block.Hash()))
|
|
||||||
|
|
||||||
// If the block is better than our head or is on a different chain, force update heads
|
|
||||||
if updateHeads {
|
if updateHeads {
|
||||||
bc.hc.SetCurrentHeader(block.Header())
|
bc.hc.SetCurrentHeader(block.Header())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue