Merge pull request #752 from ethereum/JustinDrake-patch-9

Weaken criterion for attestation inclusion
This commit is contained in:
Danny Ryan 2019-03-11 09:01:59 -06:00 committed by GitHub
commit 236c43b575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2370,7 +2370,7 @@ def process_attestation(state: BeaconState, attestation: Attestation) -> None:
""" """
# Can't submit attestations that are too far in history (or in prehistory) # Can't submit attestations that are too far in history (or in prehistory)
assert attestation.data.slot >= GENESIS_SLOT assert attestation.data.slot >= GENESIS_SLOT
assert state.slot < attestation.data.slot + SLOTS_PER_EPOCH assert state.slot <= attestation.data.slot + SLOTS_PER_EPOCH
# Can't submit attestations too quickly # Can't submit attestations too quickly
assert attestation.data.slot + MIN_ATTESTATION_INCLUSION_DELAY <= state.slot assert attestation.data.slot + MIN_ATTESTATION_INCLUSION_DELAY <= state.slot
# Verify that the justified epoch is correct, case 1: current epoch attestations # Verify that the justified epoch is correct, case 1: current epoch attestations