Skip to content

Commit

Permalink
feat(chain): reverse if statemet
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Dec 2, 2024
1 parent df96233 commit 450baf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/pool/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl<P: EvmProvider> Chain<P> {
return self.reset_and_initialize(new_head).await;
}

if current_block_number < new_block_number + self.settings.history_size {
if current_block_number > new_block_number + self.settings.history_size {
self.sync_error_count += 1;
bail!(
"new block number {new_block_number} should be greater than start of history (current block: {current_block_number})"
Expand Down

0 comments on commit 450baf2

Please sign in to comment.