Skip to content

Commit

Permalink
fix: remove warning log if validator pubkey not found or invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Oct 25, 2024
1 parent 6de0736 commit 69ff639
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/beacon-node/src/api/impl/beacon/state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ import {filterStateValidatorsByStatus, getStateValidatorIndex, getStateResponse,
export function getBeaconStateApi({
chain,
config,
logger,
}: Pick<ApiModules, "chain" | "config" | "logger">): ApplicationMethods<routes.beacon.state.Endpoints> {
}: Pick<ApiModules, "chain" | "config">): ApplicationMethods<routes.beacon.state.Endpoints> {
async function getState(
stateId: routes.beacon.StateId
): Promise<{state: BeaconStateAllForks; executionOptimistic: boolean; finalized: boolean}> {
Expand Down Expand Up @@ -95,8 +94,6 @@ export function getBeaconStateApi({
currentEpoch
);
validatorResponses.push(validatorResponse);
} else {
logger.warn(resp.reason, {id});
}
}
return {
Expand Down Expand Up @@ -145,8 +142,6 @@ export function getBeaconStateApi({
const index = resp.validatorIndex;
const {pubkey, activationEpoch} = state.validators.getReadonly(index);
validatorIdentities.push({index, pubkey, activationEpoch});
} else {
logger.warn(resp.reason, {id});
}
}
} else {
Expand Down

0 comments on commit 69ff639

Please sign in to comment.