Documentation ¶ Index ¶ type Config func DefaultConfig() *Config type DebugInfo type General type LogInfo type TimeInfo Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { General LogInfo DebugInfo TimeInfo } func DefaultConfig ¶ func DefaultConfig() *Config type DebugInfo ¶ type DebugInfo struct { Byzantine bool } type General ¶ type General struct { N uint32 //max consenter count F uint32 //max. number of faults we can tolerate ViewChangePeriod uint64 // period between automatic view changes BatchSize int } type LogInfo ¶ type LogInfo struct { K uint64 //checkpoint period LogMultiplier uint64 // use this value to calculate log size : k*logMultiplier } type TimeInfo ¶ type TimeInfo struct { Request time.Duration Resendviewchange time.Duration Viewchange time.Duration Nullrequest time.Duration Broadcast time.Duration BatchTimeout time.Duration } Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.