mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +00:00
Fix some typos (#4565)
This commit is contained in:
@@ -164,7 +164,7 @@ pub enum WhenSlotSkipped {
|
||||
///
|
||||
/// This is how the HTTP API behaves.
|
||||
None,
|
||||
/// If the slot it a skip slot, return the previous non-skipped block.
|
||||
/// If the slot is a skip slot, return the previous non-skipped block.
|
||||
///
|
||||
/// This is generally how the specification behaves.
|
||||
Prev,
|
||||
|
||||
@@ -135,7 +135,7 @@ impl BeaconProposerCache {
|
||||
|
||||
/// Compute the proposer duties using the head state without cache.
|
||||
pub fn compute_proposer_duties_from_head<T: BeaconChainTypes>(
|
||||
current_epoch: Epoch,
|
||||
request_epoch: Epoch,
|
||||
chain: &BeaconChain<T>,
|
||||
) -> Result<(Vec<usize>, Hash256, ExecutionStatus, Fork), BeaconChainError> {
|
||||
// Atomically collect information about the head whilst holding the canonical head `Arc` as
|
||||
@@ -159,7 +159,7 @@ pub fn compute_proposer_duties_from_head<T: BeaconChainTypes>(
|
||||
.ok_or(BeaconChainError::HeadMissingFromForkChoice(head_block_root))?;
|
||||
|
||||
// Advance the state into the requested epoch.
|
||||
ensure_state_is_in_epoch(&mut state, head_state_root, current_epoch, &chain.spec)?;
|
||||
ensure_state_is_in_epoch(&mut state, head_state_root, request_epoch, &chain.spec)?;
|
||||
|
||||
let indices = state
|
||||
.get_beacon_proposer_indices(&chain.spec)
|
||||
|
||||
Reference in New Issue
Block a user