Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BlockPeriod uint64 `toml:",omitempty" json:"block-period"` // Default minimum difference between two consecutive block's timestamps in second ProposerPolicy ProposerPolicy `toml:",omitempty" json:"policy"` // The policy for proposer selection }
func DefaultConfig ¶
func DefaultConfig() *Config
func RoundRobinConfig ¶ added in v0.5.0
func RoundRobinConfig() *Config
type ProposerPolicy ¶
type ProposerPolicy uint64
const ( RoundRobin ProposerPolicy = iota WeightedRandomSampling )
Click to show internal directories.
Click to hide internal directories.