From 446dd13cba415b5f59b3791523fec537d885f26d Mon Sep 17 00:00:00 2001 From: Hayarobi Park Date: Tue, 17 Oct 2023 10:00:26 +0900 Subject: [PATCH] Improve comments --- consensus/consensus.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/consensus/consensus.go b/consensus/consensus.go index 656c446cc..8d77a4b12 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -69,6 +69,8 @@ type Consensus interface { ChainConsensus ConsensusAccessor Ticker() *time.Ticker + // QueueJob queues block generation job. + // It waits until next block generation time is reached in raft consensus and sbp. QueueJob(now time.Time, jq chan<- interface{}) BlockFactory() BlockFactory QuitChan() chan interface{}