Fix Optimistic Sync Evaluator (#13262)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Nishant Das
2023-12-06 21:41:47 +08:00
committed by GitHub
parent cdd7958739
commit cb465086e8

View File

@@ -53,7 +53,6 @@ func optimisticSyncEnabled(_ *types.EvaluationContext, conns ...*grpc.ClientConn
if err != nil {
return err
}
isOptimistic := false
for i := startSlot; i <= primitives.Slot(headSlot); i++ {
path = fmt.Sprintf("http://localhost:%d/eth/v1/beacon/blinded_blocks/%d", params.TestParams.Ports.PrysmBeaconNodeGatewayPort+nodeIndex, i)
resp = beacon.GetBlockV2Response{}
@@ -78,10 +77,6 @@ func optimisticSyncEnabled(_ *types.EvaluationContext, conns ...*grpc.ClientConn
if !resp.ExecutionOptimistic {
return errors.New("expected block to be optimistic, but it is not")
}
isOptimistic = true
}
if !isOptimistic {
return errors.New("expected block to be optimistic, but it is not")
}
}
return nil