From ea0804a6149c4af2d9d0625302cecfcb4a083e0c Mon Sep 17 00:00:00 2001 From: driftluo Date: Mon, 14 Nov 2022 22:27:01 +0800 Subject: [PATCH] feat: tuning the locator algorithm --- sync/src/types/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/src/types/mod.rs b/sync/src/types/mod.rs index 9fb037205f..f3d840a7e3 100644 --- a/sync/src/types/mod.rs +++ b/sync/src/types/mod.rs @@ -2014,7 +2014,7 @@ impl ActiveChain { step <<= 1; } - if index < step { + if index < step * 2 { // Insert some low-height blocks in the locator // to quickly start parallel ibd block downloads // and it should not be too much