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{ Port: 15150, APIPort: 9040, 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.