Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultRPCEndPoint = "127.0.0.1:8888" DefaultHTTPEndPoint = "127.0.0.1:8080" DefaultLogLevel = "debug" )
Variables ¶
View Source
var DefaultNodeConfig = node.Config{ DataDir: DefaultDataDir(), Timer: service_configs.TimerConfig{ Interval: 500, }, LogLevel: DefaultLogLevel, P2PPort: 20200, P2PPortConsensus: 20201, P2PSeeds: []string{}, GRPC: service_configs.GRPCConfig{ RPCListen: DefaultRPCEndPoint, HTTPListen: DefaultHTTPEndPoint, HTTPCors: []string{"*"}, HTTPLimit: 100, }, Consensus: service_configs.ConsensusConfig{ Type: "DPoS", BootStrap: true, LocalBpName: constants.INIT_MINER_NAME, LocalBpPrivateKey: constants.INITMINER_PRIKEY, }, }
DefaultConfig contains reasonable default settings.
Functions ¶
func DefaultDataDir ¶
func DefaultDataDir() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.