mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
fix unittest
This commit is contained in:
parent
381864d869
commit
f8ab12876c
1 changed files with 4 additions and 2 deletions
|
|
@ -507,8 +507,10 @@ func (bc *BlockChain) insert(block *types.Block) {
|
||||||
bc.currentBlock.Store(block)
|
bc.currentBlock.Store(block)
|
||||||
|
|
||||||
// save cache BlockSigners
|
// save cache BlockSigners
|
||||||
|
if bc.chainConfig.Posv != nil {
|
||||||
engine := bc.Engine().(*posv.Posv)
|
engine := bc.Engine().(*posv.Posv)
|
||||||
engine.CacheData(block.Header(), block.Transactions(), bc.GetReceiptsByHash(block.Hash()))
|
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 {
|
if updateHeads {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue