Skip to content

Commit 8995d81

Browse files
authored
Fix Deposit Activation Evaluator (#14938)
* Fix evaluator * fix deposit activation
1 parent 3104420 commit 8995d81

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Fixed
2+
3+
- Fix E2E Deposit Activation Evaluator for Electra.

testing/endtoend/evaluators/operations.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,15 @@ func depositedValidatorsAreActive(ec *e2etypes.EvaluationContext, conns ...*grpc
324324
delete(expected, key)
325325
continue
326326
}
327+
// This is to handle the changed validator activation procedure post-electra.
328+
if v.ActivationEligibilityEpoch != math.MaxUint64 && v.ActivationEligibilityEpoch > chainHead.FinalizedEpoch {
329+
delete(expected, key)
330+
continue
331+
}
332+
if v.ActivationEpoch != math.MaxUint64 && v.ActivationEpoch > chainHead.HeadEpoch {
333+
delete(expected, key)
334+
continue
335+
}
327336
if !corehelpers.IsActiveValidator(v, chainHead.HeadEpoch) {
328337
inactive++
329338
}

0 commit comments

Comments
 (0)