From 062dc462fe76632afb9de0715b4ba4e74e850eef Mon Sep 17 00:00:00 2001 From: Nazar Hussain Date: Wed, 6 Sep 2023 19:10:02 +0200 Subject: [PATCH] Fix failing unit test --- packages/beacon-node/src/chain/validation/attestation.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/beacon-node/src/chain/validation/attestation.ts b/packages/beacon-node/src/chain/validation/attestation.ts index 75ba20d1b756..0b642101f010 100644 --- a/packages/beacon-node/src/chain/validation/attestation.ts +++ b/packages/beacon-node/src/chain/validation/attestation.ts @@ -224,9 +224,7 @@ export async function validateAttestation( code: AttestationErrorCode.BAD_TARGET_EPOCH, }); } else { - throw new AttestationError(GossipAction.IGNORE, { - code: AttestationErrorCode.INVALID_SIGNATURE, - }); + throw err; } } }