Fix Flaky Sync Committee Evaluator (#10600)

Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Nishant Das 2022-05-04 03:26:59 +08:00 committed by GitHub
parent 5315c45453
commit d0fabd86fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,9 +159,12 @@ func validatorsSyncParticipation(conns ...*grpc.ClientConn) error {
if err != nil {
return err
}
// Skip evaluation of the fork slot.
if b.Block().Slot() == forkSlot || b.Block().Slot() == nexForkSlot {
switch b.Block().Slot() {
case forkSlot, forkSlot + 1, nexForkSlot:
// Skip evaluation of the slot.
continue
default:
// no-op
}
syncAgg, err := b.Block().Body().SyncAggregate()
if err != nil {
@ -196,9 +199,12 @@ func validatorsSyncParticipation(conns ...*grpc.ClientConn) error {
if err != nil {
return err
}
// Skip evaluation of the fork slot.
if b.Block().Slot() == forkSlot || b.Block().Slot() == nexForkSlot {
switch b.Block().Slot() {
case forkSlot, forkSlot + 1, nexForkSlot:
// Skip evaluation of the slot.
continue
default:
// no-op
}
syncAgg, err := b.Block().Body().SyncAggregate()
if err != nil {