Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { *P2P `json:"P2P"` *Miner `json:"Miner"` *Ledger `json:"Ledger"` // global keys DataDir string `json:"DataDir"` // for file transfer FilePort uint `json:"Port"` // report topoMsg Topo []string `json:"Topo"` }
var GlobalConfig *Config
func (Config) RunLogDirFile ¶
type P2P ¶
type P2P struct { Name string `json:"Names""` // use for sign data PrivateKey string `json:"PrivateKey"` // `MaxPeers` is the maximum number of peers that can be connected. MaxPeers uint `json:"MaxPeers"` // `MaxPassivePeersRatio` is the ratio of MaxPeers that initiate an active connection to this node. // the actual value is `MaxPeers / MaxPassivePeersRatio` MaxPassivePeersRatio uint `json:"MaxPassivePeersRatio"` // `MaxPendingPeers` is the maximum number of peers that wait to connect. MaxPendingPeers uint `json:"MaxPendingPeers"` BootNodes []string `json:"BootNodes"` Port uint `json:"Port"` Datadir string `json:"Datadir"` NetID uint `json:"NetID"` }
Click to show internal directories.
Click to hide internal directories.