Skip to content

Commit

Permalink
Log decrypted pubkeys (#3496)
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion authored Dec 8, 2021
1 parent 2b0b85a commit f491e66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/cli/src/cmds/validator/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,15 @@ export async function validatorHandler(args: IValidatorCliArgs & IGlobalArgs): P
logger.info("Lodestar", {version: version, network: args.network});

const secretKeys = await getSecretKeys(args);
if (secretKeys.length === 0) throw new YargsError("No validator keystores found");
if (secretKeys.length === 0) {
throw new YargsError("No validator keystores found");
}

// Log pubkeys for auditing
logger.info(`Decrypted ${secretKeys.length} validator keystores`);
for (const secretKey of secretKeys) {
logger.info(secretKey.toPublicKey().toHex());
}

const dbPath = validatorPaths.validatorsDbDir;
mkdir(dbPath);
Expand Down

0 comments on commit f491e66

Please sign in to comment.