Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
Signed-off-by: tomg10 <[email protected]>
  • Loading branch information
tomg10 committed Sep 26, 2024
1 parent df68762 commit 9b1c88f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/node/eth_watch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ impl EthWatch {
.await
.map_err(DalError::generalize)?;

// There are no new blocks so there is nothing to be done
if from_block > finalized_block {
continue;
}
let processor_events = client
.get_events(
Web3BlockNumber::Number(from_block.into()),
Expand Down

0 comments on commit 9b1c88f

Please sign in to comment.