Skip to content

Commit

Permalink
fix: remove warning log if validator pubkey not found or invalid (#7198)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Oct 25, 2024
1 parent 6de0736 commit bfa7a39
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 bfa7a39

Please sign in to comment.