mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 13:58:28 +00:00
Fix mistake with attestation skip slots (#1539)
## Issue Addressed NA ## Proposed Changes - Fixes a mistake I made in #1530 which resulted us in *not* rejecting attestations that we intended to reject. - Adds skip-slot checks for blocks earlier in import process, so it rejects gossip and RPC blocks. ## Additional Info NA
This commit is contained in:
@@ -549,7 +549,7 @@ fn verify_head_block_is_known<T: BeaconChainTypes>(
|
||||
{
|
||||
// Reject any block that exceeds our limit on skipped slots.
|
||||
if let Some(max_skip_slots) = max_skip_slots {
|
||||
if block.slot > attestation.data.slot + max_skip_slots {
|
||||
if attestation.data.slot > block.slot + max_skip_slots {
|
||||
return Err(Error::TooManySkippedSlots {
|
||||
head_block_slot: block.slot,
|
||||
attestation_slot: attestation.data.slot,
|
||||
|
||||
Reference in New Issue
Block a user