diff --git a/light-client/src/consensus/consensus_client.rs b/light-client/src/consensus/consensus_client.rs index 1111a429e..8fcb8cf29 100644 --- a/light-client/src/consensus/consensus_client.rs +++ b/light-client/src/consensus/consensus_client.rs @@ -119,10 +119,10 @@ impl ConsensusLightClient { // If we are using the portal network, we need to request updates for all periods one by one if &self.rpc.name() == "portal" { // Get expected current period - let current_perriod = calc_sync_period(expected_current_slot()); + let current_period = calc_sync_period(expected_current_slot()); // Create a range of periods to request updates for - let periods = bootstrap_period..current_perriod; + let periods = bootstrap_period..current_period; for period in periods { let mut period_update = self.rpc.get_updates(period, 1).await?;