Skip to content

Commit

Permalink
fix historical provider init
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Jun 28, 2024
1 parent a3ab3d0 commit 5fb81af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/exex/exex/src/backfill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ where
{
fn execute_range(&mut self) -> Result<Chain, BlockExecutionError> {
let mut executor = self.executor.batch_executor(
StateProviderDatabase::new(self.provider.history_by_block_number(*self.range.start())?),
StateProviderDatabase::new(
self.provider.history_by_block_number(self.range.start().saturating_sub(1))?,
),
self.prune_modes.clone(),
);

Expand Down

0 comments on commit 5fb81af

Please sign in to comment.