config

package
v1.3.0-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL