Precommit returns the amount of time to wait for straggler votes after receiving any +2/3 precommits
(round int32)
| 1204 | |
| 1205 | // Precommit returns the amount of time to wait for straggler votes after receiving any +2/3 precommits |
| 1206 | func (cfg *ConsensusConfig) Precommit(round int32) time.Duration { |
| 1207 | return time.Duration( |
| 1208 | cfg.TimeoutPrecommit.Nanoseconds()+cfg.TimeoutPrecommitDelta.Nanoseconds()*int64(round), |
| 1209 | ) * time.Nanosecond |
| 1210 | } |
| 1211 | |
| 1212 | // Commit returns the amount of time to wait for straggler votes after receiving +2/3 precommits |
| 1213 | // for a single block (ie. a commit). |
no outgoing calls