Fix Multiclient E2E Runs (#10660)

This commit is contained in:
Nishant Das 2022-05-09 18:38:11 +08:00 committed by GitHub
parent c5ddc266ae
commit e2caaf972f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,6 +114,12 @@ func validatorsParticipating(conns ...*grpc.ClientConn) error {
partRate := participation.Participation.GlobalParticipationRate
expected := float32(expectedParticipation)
if participation.Epoch > 0 && participation.Epoch.Sub(1) == helpers.BellatrixE2EForkEpoch {
// Reduce Participation requirement to 95% to account for longer EE calls for
// the merge block. Target and head will likely be missed for a few validators at
// slot 0.
expected = 0.95
}
if partRate < expected {
st, err := debugClient.GetBeaconStateV2(context.Background(), &eth.StateRequestV2{StateId: []byte("head")})
if err != nil {