Do Not Verify Attestations When Packing Them (#8135)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Nishant Das 2020-12-17 02:06:49 +08:00 committed by GitHub
parent 148e7fcd59
commit 82bba593eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ func (al proposerAtts) filter(ctx context.Context, state *stateTrie.BeaconState)
validAtts := make([]*ethpb.Attestation, 0, len(al))
invalidAtts := make([]*ethpb.Attestation, 0, len(al))
for _, att := range al {
if _, err := blocks.ProcessAttestation(ctx, state, att); err == nil {
if _, err := blocks.ProcessAttestationNoVerifySignature(ctx, state, att); err == nil {
validAtts = append(validAtts, att)
continue
}