mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-04 21:34:36 +00:00
Gloas fix proposer preferences gossip verification (#9337)
Ensure we are using the correct state when validating proposer preferences over gossip. Previously we were only using the head state. At epoch boundaries the head state could be at `current_epoch - 1`. Peers submitting proposer preferences for `current_epoch + 1` would be penalized because our head states lookahead did not have proposer duties for `current_epoch + 1` Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu>
This commit is contained in:
@@ -4076,7 +4076,8 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
|
||||
| ProposerPreferencesError::ProposalSlotAlreadyPassed { .. }
|
||||
| ProposerPreferencesError::BeaconChainError(_)
|
||||
| ProposerPreferencesError::BeaconStateError(_)
|
||||
| ProposerPreferencesError::UnableToReadSlot,
|
||||
| ProposerPreferencesError::UnableToReadSlot
|
||||
| ProposerPreferencesError::DependentRootUnknown { .. },
|
||||
) => {
|
||||
self.propagate_validation_result(message_id, peer_id, MessageAcceptance::Ignore);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user