move validator run slot ticker (#15479)

* moving the ticker from chain start to right before the main loop and also after the wait for activation edge case

* fixing unit test

* adding in a unit test

* adding in comment based on potuz's feedback
This commit is contained in:
james-prysm
2025-07-11 14:39:52 -05:00
committed by GitHub
parent 83943b5dd8
commit 78f8411ad2
8 changed files with 64 additions and 7 deletions

View File

@@ -362,6 +362,18 @@ func (mr *MockValidatorMockRecorder) SetProposerSettings(arg0, arg1 any) *gomock
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetProposerSettings", reflect.TypeOf((*MockValidator)(nil).SetProposerSettings), arg0, arg1)
}
// SetTicker mocks base method.
func (m *MockValidator) SetTicker() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetTicker")
}
// SetTicker indicates an expected call of SetTicker.
func (mr *MockValidatorMockRecorder) SetTicker() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTicker", reflect.TypeOf((*MockValidator)(nil).SetTicker))
}
// SignValidatorRegistrationRequest mocks base method.
func (m *MockValidator) SignValidatorRegistrationRequest(arg0 context.Context, arg1 iface.SigningFunc, arg2 *eth.ValidatorRegistrationV1) (*eth.SignedValidatorRegistrationV1, bool, error) {
m.ctrl.T.Helper()