From 6f575f7214f6ff10dc37541abc8884b1958f49b5 Mon Sep 17 00:00:00 2001 From: jonastheis <4181434+jonastheis@users.noreply.github.com> Date: Wed, 15 Nov 2023 09:57:51 +0800 Subject: [PATCH] Fix candidacy debug log output --- components/validator/issuer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/validator/issuer.go b/components/validator/issuer.go index 3128158..91718e8 100644 --- a/components/validator/issuer.go +++ b/components/validator/issuer.go @@ -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)))