diff --git a/components/validator/issuer.go b/components/validator/issuer.go index 4172b89..5242800 100644 --- a/components/validator/issuer.go +++ b/components/validator/issuer.go @@ -96,13 +96,13 @@ func committeeMemberAction(ctx context.Context) { } } - // Schedule next committeeMemberAction regardless of whether the node is bootstrapped or validator block is issued + // Schedule next committeeMemberAction regardless of whether the node is bootstrapped or validation block is issued // as it must be issued as part of validator's responsibility. executor.ExecuteAt(CommitteeTask, func() { committeeMemberAction(ctx) }, now.Add(committeeBroadcastInterval)) // If we are not bootstrapped and we are _not_ ignoring such condition, we return. if !deps.NodeBridge.NodeStatus().GetIsBootstrapped() && !ParamsValidator.IgnoreBootstrapped { - Component.LogDebug("not issuing validator block because node is not bootstrapped yet.") + Component.LogDebug("not issuing validation block because node is not bootstrapped yet.") return } @@ -152,7 +152,7 @@ func issueCandidateBlock(ctx context.Context, blockIssuingTime time.Time, curren return nil } -func issueValidatorBlock(ctx context.Context, blockIssuingTime time.Time, currentAPI iotago.API) error { +func issueValidatonBlock(ctx context.Context, blockIssuingTime time.Time, currentAPI iotago.API, committeeBroadcastInterval time.Duration) error { protocolParametersHash, err := currentAPI.ProtocolParameters().Hash() if err != nil { return ierrors.Wrapf(err, "failed to get protocol parameters hash") @@ -200,10 +200,10 @@ func issueValidatorBlock(ctx context.Context, blockIssuingTime time.Time, curren blockID, err := deps.NodeBridge.SubmitBlock(ctx, validationBlock) if err != nil { - return ierrors.Wrapf(err, "error issuing validator block") + return ierrors.Wrapf(err, "error issuing validation block") } - Component.LogDebugf("issued validator block: %s - commitment %s %d - latest finalized slot %d", blockID, validationBlock.Header.SlotCommitmentID, validationBlock.Header.SlotCommitmentID.Slot(), validationBlock.Header.LatestFinalizedSlot) + Component.LogDebugf("issued validation block: %s - commitment %s %d - latest finalized slot %d - broadcast interval %dms", blockID, validationBlock.Header.SlotCommitmentID, validationBlock.Header.SlotCommitmentID.Slot(), validationBlock.Header.LatestFinalizedSlot, committeeBroadcastInterval.Milliseconds()) return nil }