Skip to content

Commit

Permalink
Fix previous hashes fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Mar 12, 2024
1 parent 9dfe5a7 commit 1e49887
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions leader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ pub async fn get_block_hashes(block_number: U64, provider: &Provider<Http>) -> R
.hash
.unwrap();
for i in 1..=256 {
if block_number < i.into() {
break;
}
let hash = provider
.get_block(block_number - i)
.await?
Expand Down

0 comments on commit 1e49887

Please sign in to comment.