Skip to content

Commit

Permalink
Merge pull request #192 from chainbound/fix/lookahead-management
Browse files Browse the repository at this point in the history
fix(sidecar): always fetch lookahead if empty
  • Loading branch information
merklefruit authored Aug 9, 2024
2 parents 64c7c1b + b17d081 commit 1ecd91b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bolt-sidecar/src/state/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ impl ConsensusState {
self.epoch.value = epoch;
self.epoch.start_slot = epoch * SLOTS_PER_EPOCH;

self.fetch_proposer_duties(epoch).await?;
} else if self.epoch.proposer_duties.is_empty() {
debug!(epoch, "No proposer duties found for current epoch, fetching...");
// If the proposer duties are empty, fetch them
self.fetch_proposer_duties(epoch).await?;
}

Expand Down

0 comments on commit 1ecd91b

Please sign in to comment.