Skip to content

Commit

Permalink
Merge pull request #637 from XinFinOrg/dev-upgrade-fix-merge
Browse files Browse the repository at this point in the history
Dev upgrade fix merge for #635
  • Loading branch information
wanwiset25 committed Sep 12, 2024
2 parents 763f8cb + 0e9052b commit c6744e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,10 @@ func (bc *BlockChain) ExportN(w io.Writer, first uint64, last uint64) error {
//
// Note, this function assumes that the `mu` mutex is held!
func (bc *BlockChain) insert(block *types.Block, writeBlock bool) {

blockHash := block.Hash()
blockNumberU64 := block.NumberU64()

// If the block is on a side chain or an unknown one, force other heads onto it too
updateHeads := GetCanonicalHash(bc.db, blockNumberU64) != blockHash

Expand Down

0 comments on commit c6744e1

Please sign in to comment.