From e66b4e06eff60d4f4f902b88f8fb78bb468a3213 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Wed, 6 Nov 2019 15:53:41 -0500 Subject: [PATCH] Update specs/core/1_new_shards.md Co-Authored-By: Hsiao-Wei Wang --- specs/core/1_new_shards.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/1_new_shards.md b/specs/core/1_new_shards.md index 149aee358..f9fbfde76 100644 --- a/specs/core/1_new_shards.md +++ b/specs/core/1_new_shards.md @@ -340,7 +340,7 @@ def validate_attestation(state: BeaconState, attestation: Attestation) -> None: assert data.beacon_block_root == get_block_root_at_slot(state, state.slot - 1) # Type 2: delayed attestations else: - assert state.slot - slot_to_epoch(data.slot) < EPOCH_LENGTH + assert state.slot < data.slot + SLOTS_PER_EPOCH assert data.shard_transition_root == Hash() assert len(attestation.custody_bits) == 0 ```