Skip to content

Commit

Permalink
fix conflict merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptiste Boussemart committed Jan 13, 2022
1 parent f1fbfc5 commit 27c9fad
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions eth/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,6 @@ func (cs *chainSyncer) nextSyncOp() *chainSyncOp {
core.SetSyncStatus()
return nil // We're in sync.
}
if mode == downloader.FastSync {
// Make sure the peer's total difficulty we are synchronizing is higher.
if cs.handler.chain.GetTdByHash(cs.handler.chain.CurrentFastBlock().Hash()).Cmp(ourTD) >= 0 {
// Quorum never use FastSync, no need to execute SetSyncStatus
return nil
}
}
return op
}

Expand Down Expand Up @@ -343,10 +336,6 @@ func (h *handler) doSync(op *chainSyncOp) error {
log.Info("Fast sync complete, auto disabling")
atomic.StoreUint32(&h.fastSync, 0)
}
if atomic.LoadUint32(&h.snapSync) == 1 {
log.Info("Snap sync complete, auto disabling")
atomic.StoreUint32(&h.snapSync, 0)
}
// If we've successfully finished a sync cycle and passed any required checkpoint,
// enable accepting transactions from the network.
head := h.chain.CurrentBlock()
Expand Down

0 comments on commit 27c9fad

Please sign in to comment.