Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDefault ¶
GenerateDefault generates a default configuration file.
func StateChangeTypeFromString ¶
func StateChangeTypeFromString(s string) test.StateChangeType
StateChangeTypeFromString convert a string to test.StateChangeType.
func StateChangeValueFromString ¶
func StateChangeValueFromString( t test.StateChangeType, v string) interface{}
StateChangeValueFromString converts a string to a value for state change request.
Types ¶
type Change ¶
Change represent future configuration changes.
func (Change) RegisterChange ¶
func (c Change) RegisterChange(gov *test.Governance) error
RegisterChange reigster this change to a test.Governance instance.
type Config ¶
type Config struct { Title string Node Node Networking Networking Scheduler Scheduler }
Config represents the configuration for simulation.
type Consensus ¶
type Consensus struct { GenesisCRS string `toml:"genesis_crs"` LambdaBA int `toml:"lambda_ba"` LambdaDKG int `toml:"lambda_dkg"` RoundLength int NotarySetSize uint32 DKGSetSize uint32 `toml:"dkg_set_size"` MinBlockInterval int }
Consensus settings.
type LatencyModel ¶
LatencyModel for ths simulation.
type Networking ¶
type Networking struct { Type test.NetworkType PeerServer string Direct LatencyModel Gossip LatencyModel }
Networking config.
Click to show internal directories.
Click to hide internal directories.