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.