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 is the node name DefaultName = string("Gossamer") // DefaultID is the chain ID DefaultID = string("dev") // DefaultBasePath is the node base directory path DefaultBasePath = string("~/.gossamer/dev") // 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/dev/genesis-spec.json") // DefaultKey is the default account key DefaultKey = string("alice") // DefaultUnlock is the account to 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 // 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) // DefaultRPCEnabled enables the RPC server DefaultRPCEnabled = true // DefaultWSEnabled enables the WS server DefaultWSEnabled = true )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.