mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-26 01:03:40 +00:00
corrections
This commit is contained in:
@@ -472,8 +472,7 @@ impl<T: BeaconChainTypes> MessageProcessor<T> {
|
|||||||
// If we found a parent block and state to validate the signature with, we enter this
|
// If we found a parent block and state to validate the signature with, we enter this
|
||||||
// section, otherwise, we return false.
|
// section, otherwise, we return false.
|
||||||
if let Some((parent_block, mut state)) = parent_block_opt {
|
if let Some((parent_block, mut state)) = parent_block_opt {
|
||||||
// Determine the epochal relationship between the state used to validate the block and
|
// Determine the epochal relationship between the parent block and the block being verified.
|
||||||
// the block itself.
|
|
||||||
let relative_epoch = if let Ok(relative_epoch) = RelativeEpoch::from_slot(
|
let relative_epoch = if let Ok(relative_epoch) = RelativeEpoch::from_slot(
|
||||||
parent_block.slot,
|
parent_block.slot,
|
||||||
block.slot,
|
block.slot,
|
||||||
@@ -481,7 +480,7 @@ impl<T: BeaconChainTypes> MessageProcessor<T> {
|
|||||||
) {
|
) {
|
||||||
relative_epoch
|
relative_epoch
|
||||||
} else {
|
} else {
|
||||||
// This section is entered if the block being verified is to far from the parent to
|
// This section is entered if the block being verified is too far from the parent to
|
||||||
// have a RelativeEpoch.
|
// have a RelativeEpoch.
|
||||||
|
|
||||||
// We make sure the block being verified follows the parent's slot.
|
// We make sure the block being verified follows the parent's slot.
|
||||||
|
|||||||
Reference in New Issue
Block a user