From 3a0dd2b253003d313b92a109bb63d680c922d59e Mon Sep 17 00:00:00 2001 From: lsankar4033 Date: Tue, 28 Jul 2020 17:51:32 -0700 Subject: [PATCH] Add self-consistency check to attestation gossip validation --- specs/phase0/p2p-interface.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specs/phase0/p2p-interface.md b/specs/phase0/p2p-interface.md index aa8d4aace..2d9afbdef 100644 --- a/specs/phase0/p2p-interface.md +++ b/specs/phase0/p2p-interface.md @@ -403,6 +403,8 @@ The following validations MUST pass before forwarding the `attestation` on the s - _[REJECT]_ The current `finalized_checkpoint` is an ancestor of the `block` defined by `attestation.data.beacon_block_root` -- i.e. `get_ancestor(store, attestation.data.beacon_block_root, compute_start_slot_at_epoch(store.finalized_checkpoint.epoch)) == store.finalized_checkpoint.root` +- _[REJECT]_ The attestation's epoch matches its target -- i.e. `attestation.data.target.epoch == + compute_epoch_at_slot(attestation.data.slot)`