Skip to content

Commit

Permalink
chore: refine as comment
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-nr committed Oct 30, 2024
1 parent 655e8f8 commit 629bf9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis
if currentSafe != nil && currentFinalize != nil {
if currentSafe.Number.Uint64() > head.Number.Uint64() || currentFinalize.Number.Uint64() > head.Number.Uint64() {
log.Info("current unsafe is behind safe, reset")
bc.hc.SetHead(head.Number.Uint64(), nil, createDelFn(bc))
bc.HeaderChainForceSetHead(head.Number.Uint64())

// Update the safe and finalized block conditionally
if currentSafe.Number.Uint64() > head.Number.Uint64() {
Expand Down

0 comments on commit 629bf9c

Please sign in to comment.