Propose returns the amount of time to wait for a proposal
(round int32)
| 1000 | |
| 1001 | // Propose returns the amount of time to wait for a proposal |
| 1002 | func (cfg *ConsensusConfig) Propose(round int32) time.Duration { |
| 1003 | return time.Duration( |
| 1004 | cfg.TimeoutPropose.Nanoseconds()+cfg.TimeoutProposeDelta.Nanoseconds()*int64(round), |
| 1005 | ) * time.Nanosecond |
| 1006 | } |
| 1007 | |
| 1008 | // Prevote returns the amount of time to wait for straggler votes after receiving any +2/3 prevotes |
| 1009 | func (cfg *ConsensusConfig) Prevote(round int32) time.Duration { |
no outgoing calls