diff --git a/packages/beacon-node/src/network/gossip/topic.ts b/packages/beacon-node/src/network/gossip/topic.ts index 87ae2a30843d..83603226a94c 100644 --- a/packages/beacon-node/src/network/gossip/topic.ts +++ b/packages/beacon-node/src/network/gossip/topic.ts @@ -88,7 +88,7 @@ export function getGossipSSZType(topic: GossipTopic) { case GossipType.beacon_aggregate_and_proof: return sszTypesFor(topic.fork).SignedAggregateAndProof; case GossipType.beacon_attestation: - return sszTypesFor(topic.fork).Attestation; + return sszTypesFor(topic.fork).SingleAttestation; case GossipType.proposer_slashing: return ssz.phase0.ProposerSlashing; case GossipType.attester_slashing: diff --git a/packages/types/src/phase0/sszTypes.ts b/packages/types/src/phase0/sszTypes.ts index 2f9eead77608..f64415439b3e 100644 --- a/packages/types/src/phase0/sszTypes.ts +++ b/packages/types/src/phase0/sszTypes.ts @@ -316,6 +316,8 @@ export const Attestation = new ContainerType( {typeName: "Attestation", jsonCase: "eth2"} ); +export const SingleAttestation = Attestation; + export const AttesterSlashing = new ContainerType( { // In state transition, AttesterSlashing attestations are only partially validated. Their slot and epoch could