params

package
v0.0.0-...-23aeb14 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: GPL-3.0 Imports: 1 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 {
	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
}

Jump to

Keyboard shortcuts

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