github.com/neatlab/neatio@v1.7.3-0.20220425043230-d903e92fcc75/chain/consensus/neatcon/config.go (about)

     1  package neatcon
     2  
     3  type ProposerPolicy uint64
     4  
     5  const (
     6  	RoundRobin ProposerPolicy = iota
     7  	Sticky
     8  )
     9  
    10  var (
    11  	BigStr1 = "362209239056230863865135"
    12  	BigStr2 = "816822002239807650213698"
    13  )
    14  
    15  type Config struct {
    16  	RequestTimeout uint64         `toml:",omitempty"`
    17  	BlockPeriod    uint64         `toml:",omitempty"`
    18  	ProposerPolicy ProposerPolicy `toml:",omitempty"`
    19  	Epoch          uint64         `toml:",omitempty"`
    20  }
    21  
    22  var DefaultConfig = &Config{
    23  	RequestTimeout: 10000,
    24  	BlockPeriod:    1,
    25  	ProposerPolicy: RoundRobin,
    26  	Epoch:          30000,
    27  }