Skip to content

Commit

Permalink
Print out validator pubkey first
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Oct 1, 2023
1 parent bc8cf9c commit d507898
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/validator/src/services/doppelgangerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,24 @@ export class DoppelgangerService {

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

Expand Down Expand Up @@ -254,7 +257,7 @@ export class DoppelgangerService {
if (remainingEpochs <= 0) {
this.logger.info("Doppelganger detection complete", {index: response.index, epoch: currentEpoch});
} else {
this.logger.info("Found no doppelganger", {remainingEpochs, nextEpochToCheck, index: response.index});
this.logger.info("Found no doppelganger", {index: response.index, remainingEpochs, nextEpochToCheck});
}
}
}
Expand Down

0 comments on commit d507898

Please sign in to comment.