From afa33a2a4683c26024ac3c8ea675a2a2fd4d6883 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 2 Apr 2024 14:01:24 +0200 Subject: [PATCH] fix: dont unwind genesis block in stage run (#7418) --- bin/reth/src/commands/stage/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/reth/src/commands/stage/run.rs b/bin/reth/src/commands/stage/run.rs index a055f5a4e0..8887a7ae02 100644 --- a/bin/reth/src/commands/stage/run.rs +++ b/bin/reth/src/commands/stage/run.rs @@ -157,7 +157,7 @@ impl Command { .await?; } - let batch_size = self.batch_size.unwrap_or(self.to - self.from + 1); + let batch_size = self.batch_size.unwrap_or(self.to.saturating_sub(self.from) + 1); let etl_config = EtlConfig::new( Some(