Skip to content

Commit

Permalink
refactor: deleted unrelated code
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmarusyk committed Oct 10, 2024
1 parent f702f91 commit e07a82b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/beacon-node/src/api/impl/beacon/state/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,9 @@ export function filterStateValidatorsByStatus(

for (const validator of validatorsArr) {
const validatorStatus = getValidatorStatus(validator, currentEpoch);
const generalStatus = mapToGeneralStatus(validatorStatus);

const resp = getStateValidatorIndex(validator.pubkey, state, pubkey2index);
if (resp.valid && (statusSet.has(validatorStatus) || statusSet.has(generalStatus))) {
if (resp.valid && statusSet.has(validatorStatus)) {
responses.push(
toValidatorResponse(resp.validatorIndex, validator, state.balances.get(resp.validatorIndex), currentEpoch)
);
Expand Down

0 comments on commit e07a82b

Please sign in to comment.