Browse Source

update commit time comment

pull/8181/head
William Banfield 3 years ago
parent
commit
d4297479ed
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      types/params.go

+ 3
- 2
types/params.go View File

@ -175,8 +175,9 @@ func (t TimeoutParams) VoteTimeout(round int32) time.Duration {
) * time.Nanosecond ) * 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 { func (t TimeoutParams) CommitTime(ti time.Time) time.Time {
return ti.Add(t.Commit) return ti.Add(t.Commit)
} }


Loading…
Cancel
Save