Documentation ¶
Index ¶
Constants ¶
const ( // Log levels VERBOSE AvalancheLogLevel = "verbo" DEBUG AvalancheLogLevel = "debug" INFO AvalancheLogLevel = "info" NetworkID uint32 = 12345 StakingTLSCertFileID = "staking-tls-cert" StakingTLSKeyFileID = "staking-tls-key" TimeoutDuration = 30 * time.Second DefaultPassword = "This1sSuper!S4f3!..." )
const ( Staker1NodeID = "NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg" Staker2NodeID = "NodeID-MFrZFVCXPv5iCn6M9K6XduxGTYp891xXZ" Staker3NodeID = "NodeID-NFBbbJ4qCmNaCzeW7sxErhvWqvEQMnYcN" Staker4NodeID = "NodeID-GWPcbFJZFfZreETSoWjPimr846mXEKCtu" Staker5NodeID = "NodeID-P7oB2McjBGgW2NXXWVYjV8JEDFoW9xDE5" )
const Staker1Cert = `` /* 1869-byte string literal not displayed */
const Staker1PrivateKey = `` /* 3242-byte string literal not displayed */
const Staker2Cert = `` /* 1869-byte string literal not displayed */
const Staker2PrivateKey = `` /* 3246-byte string literal not displayed */
const Staker3Cert = `` /* 1872-byte string literal not displayed */
const Staker3PrivateKey = `` /* 3242-byte string literal not displayed */
const Staker4Cert = `` /* 1869-byte string literal not displayed */
const Staker4PrivateKey = `` /* 3242-byte string literal not displayed */
const Staker5Cert = `` /* 1869-byte string literal not displayed */
const Staker5PrivateKey = `` /* 3242-byte string literal not displayed */
Variables ¶
var ( // XChainID ... XChainID ids.ID // PlatformChainID ... PlatformChainID ids.ID // CChainID ... CChainID ids.ID // AvaxAssetID ... AvaxAssetID ids.ID )
var DefaultLocalNetGenesisConfig = NetworkGenesisConfig{ Stakers: defaultStakers, FundedAddresses: FundedAddress{ "X-local18jma8ppw3nhx5r4ap8clazz0dps7rv5u00z96u", "PrivateKey-ewoqjP7PxY4yr3iLTpLisriqt94hdyDFNgchSxGGztUrTXtNN", }, }
DefaultLocalNetGenesisConfig contains the private keys and node IDs that come from avalanchego for the 5 bootstrapper nodes. When using avalanchego with the 'local' testnet option, the P-chain comes preloaded with five bootstrapper nodes whose node IDs are hardcoded in avalanchego source. Node IDs are determined based off the TLS keys of the nodes, so to ensure that we can launch nodes with the same node ID (to validate, else we wouldn't be able to validate at all), the avalanchego source code also provides the private keys for these nodes.
Functions ¶
This section is empty.
Types ¶
type AvalancheLogLevel ¶
type AvalancheLogLevel string
AvalancheLogLevel specifies the log level for an Avalanche client
type FundedAddress ¶
FundedAddress encapsulates a pre-funded address
type NetworkGenesisConfig ¶
type NetworkGenesisConfig struct { Stakers []StakerIdentity FundedAddresses FundedAddress }
NetworkGenesisConfig encapsulates genesis information describing a network