mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
commit
943c0706d1
1 changed files with 4 additions and 2 deletions
|
|
@ -507,8 +507,10 @@ func (bc *BlockChain) insert(block *types.Block) {
|
|||
bc.currentBlock.Store(block)
|
||||
|
||||
// save cache BlockSigners
|
||||
if bc.chainConfig.Posv != nil {
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue