Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
varun-doshi committed Feb 22, 2025
1 parent 4d2f7da commit f2b22fa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ethereum/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,19 +365,21 @@ impl<S: ConsensusSpec, R: ConsensusRpc<S>> Inner<S, R> {
if expected_current_period - bootstrap_period >= 128 {
println!("Over 128");
while bootstrap_period < expected_current_period {

let batch_size = std::cmp::min(
expected_current_period - bootstrap_period,
MAX_REQUEST_LIGHT_CLIENT_UPDATES.into(),
);
println!("Running for {} and batch size:{}",bootstrap_period,batch_size);
println!(
"Running for {} and batch size:{}",
bootstrap_period, batch_size
);
let update = self
.rpc
.get_updates(bootstrap_period, batch_size.try_into().unwrap())
.await?;
updates.extend(update);

bootstrap_period +=batch_size;
bootstrap_period += batch_size;
}
}
let update: Vec<Update<S>> = self
Expand Down

0 comments on commit f2b22fa

Please sign in to comment.