From e0d24dfb402800761c9d5892046f69c6622bfccc Mon Sep 17 00:00:00 2001 From: Jonathan <94441036+zeapoz@users.noreply.github.com> Date: Thu, 25 Apr 2024 08:46:37 +0200 Subject: [PATCH] tweak: higher `BLOCK_STEP` (#95) The previous value of `128` uses up a lot of RPC-calls for very little actual benefit, in some cases actually making the tool run slower when ran with unreliable RPC-providers. --- state-reconstruct-fetcher/src/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state-reconstruct-fetcher/src/constants.rs b/state-reconstruct-fetcher/src/constants.rs index 921488b..1a179ed 100644 --- a/state-reconstruct-fetcher/src/constants.rs +++ b/state-reconstruct-fetcher/src/constants.rs @@ -1,6 +1,6 @@ pub mod ethereum { /// Number of Ethereum blocks to advance in one filter step. - pub const BLOCK_STEP: u64 = 128; + pub const BLOCK_STEP: u64 = 10_000; /// Block number in Ethereum for zkSync genesis block. pub const GENESIS_BLOCK: u64 = 16_627_460;