From c7c6f40b8463cd51918124da2c9163232772d51e Mon Sep 17 00:00:00 2001 From: William Banfield <4561443+williambanfield@users.noreply.github.com> Date: Thu, 18 Nov 2021 09:52:28 -0500 Subject: [PATCH] Update internal/consensus/state.go Co-authored-by: M. J. Fromberger --- internal/consensus/state.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/consensus/state.go b/internal/consensus/state.go index 32b6357b3..a792b4707 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -2414,6 +2414,8 @@ func repairWalFile(src, dst string) error { } // proposerWaitTime determines how long the proposer should wait to propose its next block. +// If the result is zero, a block can be proposed immediately. +// // Block times must be monotonically increasing, so if the block time of the previous // block is larger than the proposer's current time, then the proposer will sleep // until its local clock exceeds the previous block time.