Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { N int `mapstructure:"hare-committee-size"` // total number of active parties RoundDuration time.Duration `mapstructure:"hare-round-duration"` // the duration of a single round WakeupDelta time.Duration `mapstructure:"hare-wakeup-delta"` // the wakeup delta after tick ExpectedLeaders int `mapstructure:"hare-exp-leaders"` // the expected number of leaders LimitIterations int `mapstructure:"hare-limit-iterations"` // limit on number of iterations LimitConcurrent int `mapstructure:"hare-limit-concurrent"` // limit number of concurrent CPs Hdist uint32 // If set to non-zero value will disable hare starting at that layer. Disable types.LayerID `mapstructure:"disable"` }
Config is the configuration of the Hare.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the default configuration for the hare.
Click to show internal directories.
Click to hide internal directories.