Skip to content

Commit

Permalink
core: save new blocks during reorg (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan authored and wanwiset25 committed Sep 11, 2024
1 parent 763f8cb commit d0e4528
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ func (bc *BlockChain) insert(block *types.Block, writeBlock bool) {
if writeBlock {
rawdb.WriteBlock(bc.db, block)
}

bc.currentBlock.Store(block)

// save cache BlockSigners
Expand Down

0 comments on commit d0e4528

Please sign in to comment.