Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultPprofEnabled to indicate the pprof http server should be enabled or not. DefaultPprofEnabled = true // DefaultPprofListeningAddress default pprof HTTP server listening address. DefaultPprofListeningAddress = "localhost:6060" // DefaultPprofBlockRate default block profile rate. // Set to 0 to disable profiling. DefaultPprofBlockRate = 0 // DefaultPprofMutexRate default mutex profile rate. // Set to 0 to disable profiling. DefaultPprofMutexRate = 0 )
Variables ¶
View Source
var ( // DefaultName Default node name DefaultName = string("Gossamer") // DefaultID Default chain ID DefaultID = string("gssmr") // DefaultConfig Default toml configuration path DefaultConfig = string("./chain/gssmr/config.toml") // DefaultBasePath Default node base directory path DefaultBasePath = string("~/.gossamer/gssmr") // DefaultMetricsAddress is the default metrics server listening address. DefaultMetricsAddress = "localhost:9876" // DefaultLvl is the default log level DefaultLvl = log.Info // DefaultPruningMode is the default pruning mode DefaultPruningMode = "archive" // DefaultRetainBlocks is the default retained blocks DefaultRetainBlocks = int64(512) // DefaultTelemetryURLs is the default URL of the telemetry server to connect to. DefaultTelemetryURLs []genesis.TelemetryEndpoint // DefaultGenesis is the default genesis configuration path DefaultGenesis = string("./chain/gssmr/genesis-spec.json") // DefaultKey Default account key DefaultKey = string("") // DefaultUnlock Default account unlock DefaultUnlock = string("") // DefaultAuthority is true if the node is a block producer and a grandpa authority DefaultAuthority = true // DefaultRoles Default node roles DefaultRoles = byte(4) // authority node (see Table D.2) // DefaultBabeAuthority is true if the node is a block producer (overwrites previous settings) DefaultBabeAuthority = true // DefaultGrandpaAuthority is true if the node is a grandpa authority (overwrites previous settings) DefaultGrandpaAuthority = true // DefaultWasmInterpreter is the name of the wasm interpreter to use by default DefaultWasmInterpreter = wasmer.Name // DefaultNetworkPort network port DefaultNetworkPort = uint16(7001) // DefaultNetworkBootnodes network bootnodes DefaultNetworkBootnodes = []string(nil) // DefaultNoBootstrap disables bootstrap DefaultNoBootstrap = false // DefaultNoMDNS disables mDNS discovery DefaultNoMDNS = false // DefaultMinPeers is the default minimum desired peer count DefaultMinPeers = 1 // DefaultMaxPeers is the default maximum desired peer count DefaultMaxPeers = 50 // DefaultDiscoveryInterval is the default interval for searching for DHT peers DefaultDiscoveryInterval = time.Second * 10 // DefaultGrandpaInterval is the default time for a grandpa sub-round DefaultGrandpaInterval = time.Second // DefaultRPCHTTPHost rpc host DefaultRPCHTTPHost = string("localhost") // DefaultRPCHTTPPort rpc port DefaultRPCHTTPPort = uint32(8545) // DefaultRPCModules rpc modules DefaultRPCModules = []string{ "system", "author", "chain", "state", "rpc", "grandpa", "offchain", "childstate", "syncstate", "payment", } // DefaultRPCWSPort rpc websocket port DefaultRPCWSPort = uint32(8546) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.