constants

package
v0.0.0-...-3c986c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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!..."
)
View Source
const (
	Staker1NodeID = "NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg"
	Staker2NodeID = "NodeID-MFrZFVCXPv5iCn6M9K6XduxGTYp891xXZ"
	Staker3NodeID = "NodeID-NFBbbJ4qCmNaCzeW7sxErhvWqvEQMnYcN"
	Staker4NodeID = "NodeID-GWPcbFJZFfZreETSoWjPimr846mXEKCtu"
	Staker5NodeID = "NodeID-P7oB2McjBGgW2NXXWVYjV8JEDFoW9xDE5"
)
View Source
const Staker1Cert = `` /* 1869-byte string literal not displayed */
View Source
const Staker1PrivateKey = `` /* 3242-byte string literal not displayed */
View Source
const Staker2Cert = `` /* 1869-byte string literal not displayed */
View Source
const Staker2PrivateKey = `` /* 3246-byte string literal not displayed */
View Source
const Staker3Cert = `` /* 1872-byte string literal not displayed */
View Source
const Staker3PrivateKey = `` /* 3242-byte string literal not displayed */
View Source
const Staker4Cert = `` /* 1869-byte string literal not displayed */
View Source
const Staker4PrivateKey = `` /* 3242-byte string literal not displayed */
View Source
const Staker5Cert = `` /* 1869-byte string literal not displayed */
View Source
const Staker5PrivateKey = `` /* 3242-byte string literal not displayed */

Variables

View Source
var (
	// XChainID ...
	XChainID ids.ID
	// PlatformChainID ...
	PlatformChainID ids.ID
	// CChainID ...
	CChainID ids.ID
	// AvaxAssetID ...
	AvaxAssetID ids.ID
)
View Source
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

type FundedAddress struct {
	Address    string
	PrivateKey string
}

FundedAddress encapsulates a pre-funded address

type NetworkGenesisConfig

type NetworkGenesisConfig struct {
	Stakers         []StakerIdentity
	FundedAddresses FundedAddress
}

NetworkGenesisConfig encapsulates genesis information describing a network

type StakerIdentity

type StakerIdentity struct {
	NodeID         string
	PrivateKey     string
	TLSCert        string
	ConnectedNodes string
}

StakerIdentity contains a staker's identifying information

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL