mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 07:58:22 -05:00
remove canonical attestation filtering (#2635)
This commit is contained in:
@@ -171,18 +171,6 @@ func (ps *ProposerServer) PendingAttestations(ctx context.Context, req *pb.Pendi
|
||||
}
|
||||
continue
|
||||
}
|
||||
canonical, err := ps.operationService.IsAttCanonical(ctx, att)
|
||||
if err != nil {
|
||||
// Delete attestation that failed to verify as canonical.
|
||||
if err := ps.beaconDB.DeleteAttestation(att); err != nil {
|
||||
return nil, fmt.Errorf("could not delete failed attestation: %v", err)
|
||||
}
|
||||
return nil, fmt.Errorf("could not verify canonical attestation: %v", err)
|
||||
}
|
||||
// Skip the attestation if it's not canonical.
|
||||
if !canonical {
|
||||
continue
|
||||
}
|
||||
|
||||
validAtts = append(validAtts, att)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user