File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
src/main/scala/io/iohk/ethereum/blockchain/sync/fast Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -382,25 +382,24 @@ class FastSync(
382
382
// Reset the batch failures count
383
383
batchFailuresCount = 0
384
384
385
- // Restart syncing from the valid block available in state.
386
- syncState = syncState.copy(
387
- bestBlockHeaderNumber = firstCommonBlockNumber,
388
- nextBlockToFullyValidate = firstCommonBlockNumber + 1 ,
389
- pivotBlockUpdateFailures = 0
390
- )
391
- // masterPeer = Some(newMasterPeer)
392
385
context.children.foreach { child =>
393
386
log.debug(s " unwatching and killing $child" )
394
387
context.unwatch(child)
395
388
child ! PoisonPill
396
389
}
397
390
391
+ // Restart syncing from the valid block available in state.
398
392
log.debug(" starting with fresh SyncingHandler" )
399
- val syncingHandler = new SyncingHandler (initialSyncState)
393
+ val syncingHandler = new SyncingHandler (
394
+ syncState.copy(
395
+ bestBlockHeaderNumber = firstCommonBlockNumber,
396
+ nextBlockToFullyValidate = firstCommonBlockNumber + 1 ,
397
+ pivotBlockUpdateFailures = 0
398
+ )
399
+ )
400
400
context.become(syncingHandler.receive)
401
401
syncingHandler.processSyncing()
402
402
403
- // processSyncing()
404
403
case _ : FastSyncBranchResolverActor .BranchResolutionFailed =>
405
404
// there isn't much we can do if we don't find a branch/peer to continue syncing, so let's try again
406
405
branchResolver ! FastSyncBranchResolverActor .StartBranchResolver
You can’t perform that action at this time.
0 commit comments