Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RoundTimeout ¶
RoundTimeout returns the number of seconds until next timeout for a give round. if the round is smaller than 8 -> 2s; otherwise -> 2m see SIP https://github.com/bloxapp/SIPs/pull/22
Types ¶
type RoundTimer ¶
type RoundTimer struct {
// contains filtered or unexported fields
}
RoundTimer helps to manage current instance rounds.
func New ¶
func New(pctx context.Context, done func()) *RoundTimer
New creates a new instance of RoundTimer.
func (*RoundTimer) OnTimeout ¶
func (t *RoundTimer) OnTimeout(done func())
OnTimeout sets a function called on timeout.
func (*RoundTimer) TimeoutForRound ¶
func (t *RoundTimer) TimeoutForRound(round specqbft.Round)
TimeoutForRound times out for a given round.
Click to show internal directories.
Click to hide internal directories.