Skip to content

Commit

Permalink
Update gateway-framework/src/chains/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Theo Butler <theodusbutler@gmail.com>
  • Loading branch information
LNSD and Theodus authored Feb 1, 2024
1 parent f2fdc6e commit 551d1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway-framework/src/chains/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl Actor {
// Avoid processing chain heads older than the latest seen block. Such degradation can happen when the
// RPC provider reverts to, and reports, a block number prior to the previously known block number.
if let Some(latest_seen_block) = self.latest_seen_block {
if head.block.number <= latest_seen_block {
if head.block.number < latest_seen_block {
tracing::warn!(
"Skipping update. Received chain head {} <= latest seen block ({})",
head.block.number,
Expand Down

0 comments on commit 551d1d1

Please sign in to comment.