github.com/sixexorg/magnetic-ring@v0.0.0-20191119090307-31705a21e419/consense/dpoa/config.go (about)

     1  package dpoa
     2  
     3  import (
     4  	"github.com/sixexorg/magnetic-ring/account"
     5  )
     6  
     7  type EartchCfg struct {
     8  	duration int //10
     9  }
    10  
    11  type StarsCfg struct {
    12  	duration int //10
    13  }
    14  
    15  type Config struct {
    16  	accountStr  string
    17  	account     account.NormalAccount
    18  	Peers       []string `json:"peers"`
    19  	earthCfg    *EartchCfg
    20  	starsCfg     *StarsCfg
    21  }
    22  
    23  
    24  var DftConfig *Config = &Config{Peers:make([]string, 0), earthCfg:&EartchCfg{duration:10}, starsCfg:&StarsCfg{duration:10}}