From 75bf86a68ba71bd1bc77c7f79c34f99768e35205 Mon Sep 17 00:00:00 2001 From: jonastheis <4181434+jonastheis@users.noreply.github.com> Date: Wed, 29 Nov 2023 20:17:53 +0800 Subject: [PATCH] Fix comment --- .../sybilprotection/sybilprotectionv1/sybilprotection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/protocol/sybilprotection/sybilprotectionv1/sybilprotection.go b/pkg/protocol/sybilprotection/sybilprotectionv1/sybilprotection.go index fde157b0e..350a94173 100644 --- a/pkg/protocol/sybilprotection/sybilprotectionv1/sybilprotection.go +++ b/pkg/protocol/sybilprotection/sybilprotectionv1/sybilprotection.go @@ -153,8 +153,8 @@ func (o *SybilProtection) CommitSlot(slot iotago.SlotIndex) (committeeRoot iotag // Determine the committee root. { - // If the committed slot is `maxCommittableSlot` - // away from the end of the epoch, then register a committee for the next epoch if it hasn't been selected yet. + // If the committed slot is `maxCommittableAge` away from the end of the epoch, then register (reuse) + // a committee for the next epoch if it hasn't been selected yet. if slot+maxCommittableAge == currentEpochEndSlot { if _, committeeExists := o.seatManager.CommitteeInEpoch(nextEpoch); !committeeExists { // If the committee for the epoch wasn't set before due to finalization of a slot,