File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/beacon-node/src/chain/validation Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ import {
4646 getAttesterIndexFromSingleAttestationSerialized ,
4747 getCommitteeIndexFromSingleAttestationSerialized ,
4848 getSignatureFromAttestationSerialized ,
49+ getSignatureFromSingleAttestationSerialized ,
4950} from "../../util/sszBytes.js" ;
5051import { Result , wrapError } from "../../util/wrapError.js" ;
5152import { AttestationError , AttestationErrorCode , GossipAction } from "../errors/index.js" ;
@@ -480,7 +481,9 @@ async function validateAttestationNoSignatureCheck(
480481 let attDataRootHex : RootHex ;
481482 const signature = attestationOrCache . attestation
482483 ? attestationOrCache . attestation . signature
483- : getSignatureFromAttestationSerialized ( attestationOrCache . serializedData ) ;
484+ : ! isForkPostElectra ( fork )
485+ ? getSignatureFromAttestationSerialized ( attestationOrCache . serializedData )
486+ : getSignatureFromSingleAttestationSerialized ( attestationOrCache . serializedData ) ;
484487 if ( signature === null ) {
485488 throw new AttestationError ( GossipAction . REJECT , {
486489 code : AttestationErrorCode . INVALID_SERIALIZED_BYTES ,
You can’t perform that action at this time.
0 commit comments