Precommit returns the amount of time to wait for straggler votes after receiving any +2/3 precommits
(round int32)
| 1014 | |
| 1015 | // Precommit returns the amount of time to wait for straggler votes after receiving any +2/3 precommits |
| 1016 | func (cfg *ConsensusConfig) Precommit(round int32) time.Duration { |
| 1017 | return time.Duration( |
| 1018 | cfg.TimeoutPrecommit.Nanoseconds()+cfg.TimeoutPrecommitDelta.Nanoseconds()*int64(round), |
| 1019 | ) * time.Nanosecond |
| 1020 | } |
| 1021 | |
| 1022 | // Commit returns the amount of time to wait for straggler votes after receiving +2/3 precommits |
| 1023 | // for a single block (ie. a commit). |
no outgoing calls