Skip to content

Commit

Permalink
misc(sidecar): update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
namn-grg committed Aug 7, 2024
1 parent 3de713e commit 260a89c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bolt-sidecar/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl<C: StateFetcher, BLS: SignerBLS, ECDSA: SignerECDSA> SidecarDriver<C, BLS,
}
Some(slot) = slot_stream.next() => {
if let Err(e) = self.consensus.update_slot(slot).await {
error!(err = ?e, "Failed to update consensus state head");
error!(err = ?e, "Failed to update consensus state slot");
}
}
}
Expand Down Expand Up @@ -228,7 +228,7 @@ impl<C: StateFetcher, BLS: SignerBLS, ECDSA: SignerECDSA> SidecarDriver<C, BLS,
};
}

/// Handle a new head event, updating the execution and consensus state.
/// Handle a new head event, updating the execution state.
async fn handle_new_head_event(&mut self, head_event: HeadEvent) {
let slot = head_event.slot;
info!(slot, "Received new head event");
Expand Down
2 changes: 1 addition & 1 deletion bolt-sidecar/src/state/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl ConsensusState {
self.latest_slot_timestamp = Instant::now();
self.latest_slot = head;

// Get the current value of slot and epoch
// Calculate the current value of epoch
let epoch = head / SLOTS_PER_EPOCH;

// If the epoch has changed, update the proposer duties
Expand Down

0 comments on commit 260a89c

Please sign in to comment.