mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 20:37:17 +00:00
parent
324a186786
commit
62ad3dfd61
@ -198,7 +198,7 @@ func (a *Service) UpdateLatestAttestation(ctx context.Context, attestation *pb.A
|
||||
}
|
||||
|
||||
log.WithFields(logrus.Fields{
|
||||
"attestation slot": attestation.Data.Slot,
|
||||
"attestation slot": attestation.Data.Slot - params.BeaconConfig().GenesisSlot,
|
||||
"attestation shard": attestation.Data.Shard,
|
||||
"committees shard": committees[0].Shard,
|
||||
"committees list": committees[0].Committee,
|
||||
|
@ -60,7 +60,8 @@ func run(ctx context.Context, v Validator) {
|
||||
slotCtx, _ := context.WithDeadline(ctx, v.SlotDeadline(slot))
|
||||
// Report this validator client's rewards and penalties throughout its lifecycle.
|
||||
if err := v.LogValidatorGainsAndLosses(slotCtx, slot); err != nil {
|
||||
log.Errorf("Could not report validator's rewards/penalties for slot %d: %v", slot, err)
|
||||
log.Errorf("Could not report validator's rewards/penalties for slot %d: %v",
|
||||
slot-params.BeaconConfig().GenesisSlot, err)
|
||||
}
|
||||
|
||||
// Keep trying to update assignments if they are nil or if we are past an
|
||||
@ -92,7 +93,7 @@ func run(ctx context.Context, v Validator) {
|
||||
func handleAssignmentError(err error, slot uint64) {
|
||||
if errCode, ok := status.FromError(err); ok && errCode.Code() == codes.NotFound {
|
||||
log.WithField(
|
||||
"epoch", (slot*params.BeaconConfig().SlotsPerEpoch)-params.BeaconConfig().GenesisEpoch,
|
||||
"epoch", (slot/params.BeaconConfig().SlotsPerEpoch)-params.BeaconConfig().GenesisEpoch,
|
||||
).Warn("Validator not yet assigned to epoch")
|
||||
} else {
|
||||
log.WithField("error", err).Error("Failed to update assignments")
|
||||
|
Loading…
Reference in New Issue
Block a user