Skip to content

Commit

Permalink
Revise doppelganger registration logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Oct 1, 2023
1 parent 1525c6e commit e5b9887
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/validator/src/services/doppelgangerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,19 @@ export class DoppelgangerService {

if (attestedInPreviousEpoch) {
remainingEpochs = REMAINING_EPOCHS_IF_SKIPPED;
this.logger.info(
"Doppelganger detection skipped for validator, previous epoch attestation exists in database",
{
pubkey: prettyBytes(pubkeyHex),
previousEpoch,
}
);
this.logger.info("Previous epoch attestation exists in database, doppelganger detection skipped", {
pubkey: prettyBytes(pubkeyHex),
previousEpoch,
});
} else {
this.logger.info("Registered validator for doppelganger", {
this.logger.info("Registered validator for doppelganger detection", {
pubkey: prettyBytes(pubkeyHex),
remainingEpochs,
nextEpochToCheck,
});
}
} else {
this.logger.info("Doppelganger detection skipped for validator, initialized before genesis", {
this.logger.info("Validator initialized before genesis, doppelganger detection skipped", {
pubkey: prettyBytes(pubkeyHex),
currentEpoch,
});
Expand Down

0 comments on commit e5b9887

Please sign in to comment.