File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -271,13 +271,6 @@ func (cs *chainSyncer) nextSyncOp() *chainSyncOp {
271
271
core .SetSyncStatus ()
272
272
return nil // We're in sync.
273
273
}
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
- }
281
274
return op
282
275
}
283
276
@@ -343,10 +336,6 @@ func (h *handler) doSync(op *chainSyncOp) error {
343
336
log .Info ("Fast sync complete, auto disabling" )
344
337
atomic .StoreUint32 (& h .fastSync , 0 )
345
338
}
346
- if atomic .LoadUint32 (& h .snapSync ) == 1 {
347
- log .Info ("Snap sync complete, auto disabling" )
348
- atomic .StoreUint32 (& h .snapSync , 0 )
349
- }
350
339
// If we've successfully finished a sync cycle and passed any required checkpoint,
351
340
// enable accepting transactions from the network.
352
341
head := h .chain .CurrentBlock ()
You can’t perform that action at this time.
0 commit comments