Skip to content

Commit

Permalink
temporarily disable download blocks since it is lacking threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
tkstanczak committed May 29, 2019
1 parent 536cc03 commit 6cf9f8e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,10 @@ private async Task RunSyncLoop()
syncProgressTask = _parallelBlockDownloader.SyncHeaders(SyncModeSelector.FullSyncThreshold, linkedCancellation.Token);
break;
case SyncMode.Headers:
syncProgressTask = _syncConfig.DownloadBodiesInFastSync
? _blockDownloader.DownloadBlocks(bestPeer, linkedCancellation.Token, false)
: _blockDownloader.DownloadHeaders(bestPeer, SyncModeSelector.FullSyncThreshold, linkedCancellation.Token);
syncProgressTask = _blockDownloader.DownloadHeaders(bestPeer, SyncModeSelector.FullSyncThreshold, linkedCancellation.Token);
// syncProgressTask = _syncConfig.DownloadBodiesInFastSync
// ? _blockDownloader.DownloadBlocks(bestPeer, linkedCancellation.Token, false)
// : _blockDownloader.DownloadHeaders(bestPeer, SyncModeSelector.FullSyncThreshold, linkedCancellation.Token);
break;
case SyncMode.StateNodes:
syncProgressTask = DownloadStateNodes(_syncLoopCancellation.Token);
Expand Down

0 comments on commit 6cf9f8e

Please sign in to comment.