Skip to content

Commit 27c9fad

Browse files
author
Baptiste Boussemart
committed
fix conflict merge
1 parent f1fbfc5 commit 27c9fad

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

eth/sync.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,6 @@ func (cs *chainSyncer) nextSyncOp() *chainSyncOp {
271271
core.SetSyncStatus()
272272
return nil // We're in sync.
273273
}
274-
if mode == downloader.FastSync {
275-
// Make sure the peer's total difficulty we are synchronizing is higher.
276-
if cs.handler.chain.GetTdByHash(cs.handler.chain.CurrentFastBlock().Hash()).Cmp(ourTD) >= 0 {
277-
// Quorum never use FastSync, no need to execute SetSyncStatus
278-
return nil
279-
}
280-
}
281274
return op
282275
}
283276

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

0 commit comments

Comments
 (0)