From 3227893d026203fc7a48075654573731961bf6e9 Mon Sep 17 00:00:00 2001 From: MestryOmkar Date: Tue, 4 Dec 2018 14:59:55 +0530 Subject: [PATCH] cache all after 1 epoch --- core/blockchain.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index 9240f9d3ed..961617c5bf 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -506,11 +506,7 @@ func (bc *BlockChain) insert(block *types.Block) { } bc.currentBlock.Store(block) - // save cache BlockSigners - 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 the block is better than our head or is on a different chain, force update heads if updateHeads { bc.hc.SetCurrentHeader(block.Header())