From d4297479ed246b0ffb4edc853834770decca3e71 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 22 Mar 2022 17:33:18 -0400 Subject: [PATCH] update commit time comment --- types/params.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/params.go b/types/params.go index b4deaf4f1..b8cf7f2d8 100644 --- a/types/params.go +++ b/types/params.go @@ -175,8 +175,9 @@ func (t TimeoutParams) VoteTimeout(round int32) time.Duration { ) * time.Nanosecond } -// CommitTime returns the amount of time to wait for remaining votes after receiving +2/3 precommits -// for a single block. +// CommitTime accepts ti, the time at which the consensus engine received +2/3 +// precommits for a block and returns the point in time at which the consensus +// engine should begin consensus on the next block. func (t TimeoutParams) CommitTime(ti time.Time) time.Time { return ti.Add(t.Commit) }