Skip to content

Commit 0dd19b4

Browse files
committed
update
1 parent 5974f78 commit 0dd19b4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

cl/phase1/network/services/voluntary_exit_service.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,8 @@ func (s *voluntaryExitService) ProcessMessage(ctx context.Context, subnet *uint6
6464

6565
// Verify the validator is active
6666
// assert is_active_validator(validator, get_current_epoch(state))
67-
if err := func() error {
68-
validators := state.GetActiveValidatorsIndices(curEpoch)
69-
for _, v := range validators {
70-
if v == voluntaryExit.ValidatorIndex {
71-
return nil
72-
}
73-
}
67+
if !val.Active(curEpoch) {
7468
return fmt.Errorf("validator is not active")
75-
}(); err != nil {
76-
return err
7769
}
7870

7971
// Verify exit has not been initiated

0 commit comments

Comments
 (0)