Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jbearer committed Oct 15, 2024
1 parent b617911 commit 299f093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/src/v0/impls/l1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ impl L1Client {
// The finalized block jumps by more than 1 at a time, so we might not have found the
// earliest block with the desired timestamp. Work backwards until we find it.
loop {
let prev = self.wait_for_block(block.number - 1).await;
if prev.timestamp < timestamp {
let parent = self.wait_for_block(block.number - 1).await;
if parent.timestamp < timestamp {
return block;
}
block = prev;
block = parent;
}
}

Expand Down

0 comments on commit 299f093

Please sign in to comment.