Skip to content

Commit

Permalink
"Validator Block" -> "Validation Block"
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Nov 29, 2023
1 parent b214d64 commit 9d742de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/validator/issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 9d742de

Please sign in to comment.