mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 16:08:26 -05:00
Fix Optimistic Sync Evaluator (#13262)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user