config

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: MIT Imports: 0 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
	F               int `mapstructure:"hare-max-adversaries"`    // number of dishonest parties
	RoundDuration   int `mapstructure:"hare-round-duration-sec"` // the duration of a single round
	WakeupDelta     int `mapstructure:"hare-wakeup-delta"`       // the wakeup delta after tick
	ExpectedLeaders int `mapstructure:"hare-exp-leaders"`        // the expected number of leaders
	SuperHare       bool
	LimitIterations int `mapstructure:"hare-limit-iterations"` // limit on number of iterations
	LimitConcurrent int `mapstructure:"hare-limit-concurrent"` // limit number of concurrent CPs
}

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