Documentation
¶
Index ¶
Constants ¶
View Source
const ( NodekeyFile = "nodekey" GenesisFile = "genesis.json" PeersFile = "peers.json" )
View Source
const MaxProcsNum = 8 // set corresponding num of CPUs when benchmark test
Variables ¶
View Source
var DefaultConfig = Config{ PointPort: 15150, TopicPort: 16160, APIPort: 9090, BroadcastTx: true, StorageConfig: storage.DefaultConfig, ExecutionConfig: execution.DefaultConfig, ConsensusConfig: consensus.DefaultConfig, }
Functions ¶
func ReadNodeKey ¶
func ReadNodeKey(datadir string) (*core.PrivateKey, error)
Types ¶
type Genesis ¶
func ReadGenesis ¶
Click to show internal directories.
Click to hide internal directories.