config

package
v0.0.0-...-ae125c8 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HotStuffConfig

type HotStuffConfig struct {
	NetworkType    string `mapstructure:"type"`
	BatchSize      uint64 `mapstructure:"batch-size"`
	LeaderSchedule []int  `mapstructure:"leader-schedule"`
	BatchTimeout   time.Duration
	Timeout        time.Duration
	PublicKey      *tcrsa.KeyMeta
	PrivateKey     *tcrsa.KeyShare
	Cluster        []*ReplicaInfo
	N              int
	F              int
}

func NewHotStuffConfig

func NewHotStuffConfig() *HotStuffConfig

func (*HotStuffConfig) ReadConfig

func (hsc *HotStuffConfig) ReadConfig()

ReadConfig reads hotstuff config from yaml file

type ReplicaInfo

type ReplicaInfo struct {
	ID         uint32
	Address    string `mapstructure:"listen-address"`
	PrivateKey string `mapstructure:"privatekeypath"`
}

Jump to

Keyboard shortcuts

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