Skip to content

Commit 6cf9f8e

Browse files
committed
temporarily disable download blocks since it is lacking threshold
1 parent 536cc03 commit 6cf9f8e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Nethermind/Nethermind.Blockchain/Synchronization/Synchronizer.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,10 @@ private async Task RunSyncLoop()
269269
syncProgressTask = _parallelBlockDownloader.SyncHeaders(SyncModeSelector.FullSyncThreshold, linkedCancellation.Token);
270270
break;
271271
case SyncMode.Headers:
272-
syncProgressTask = _syncConfig.DownloadBodiesInFastSync
273-
? _blockDownloader.DownloadBlocks(bestPeer, linkedCancellation.Token, false)
274-
: _blockDownloader.DownloadHeaders(bestPeer, SyncModeSelector.FullSyncThreshold, linkedCancellation.Token);
272+
syncProgressTask = _blockDownloader.DownloadHeaders(bestPeer, SyncModeSelector.FullSyncThreshold, linkedCancellation.Token);
273+
// syncProgressTask = _syncConfig.DownloadBodiesInFastSync
274+
// ? _blockDownloader.DownloadBlocks(bestPeer, linkedCancellation.Token, false)
275+
// : _blockDownloader.DownloadHeaders(bestPeer, SyncModeSelector.FullSyncThreshold, linkedCancellation.Token);
275276
break;
276277
case SyncMode.StateNodes:
277278
syncProgressTask = DownloadStateNodes(_syncLoopCancellation.Token);

0 commit comments

Comments
 (0)