Skip to content

Commit

Permalink
Merge pull request #8 from iotaledger/fix/candidacy-log
Browse files Browse the repository at this point in the history
Fix candidacy debug log output
  • Loading branch information
alexsporn authored Nov 16, 2023
2 parents 783c4ed + 6f575f7 commit a030d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/validator/issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func candidateAction(ctx context.Context) {

epochEndSlot := currentAPI.TimeProvider().EpochEnd(currentAPI.TimeProvider().EpochFromSlot(currentSlot))
if currentSlot+currentAPI.ProtocolParameters().EpochNearingThreshold() > epochEndSlot {
Component.LogDebugf("not issuing candidacy announcement for account %s as the slot the block would be issued in (%d) is past the Epoch Nearing Threshold (%d)", validatorAccount.ID(), currentSlot, currentSlot-currentAPI.ProtocolParameters().EpochNearingThreshold())
Component.LogDebugf("not issuing candidacy announcement for account %s as block's slot would be issued in (%d) is past the Epoch Nearing Threshold (%d) of epoch %d", validatorAccount.ID(), currentSlot, epochEndSlot-currentAPI.ProtocolParameters().EpochNearingThreshold(), currentAPI.TimeProvider().EpochFromSlot(currentSlot))
// If it's too late to register as a candidate, then try to register in the next epoch.
executor.ExecuteAt(CandidateTask, func() { candidateAction(ctx) }, currentAPI.TimeProvider().SlotStartTime(currentAPI.TimeProvider().EpochStart(currentAPI.TimeProvider().EpochFromSlot(currentSlot)+1)))

Expand Down

0 comments on commit a030d48

Please sign in to comment.