Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ChainAliasPrefix denotes a prefix for an alias that belongs to a blockchain ID. ChainAliasPrefix string = "bc/" // VMAliasPrefix ddenotes a prefix for an alias that belongs to a VM ID. VMAliasPrefix string = "vm/" )
View Source
const ( // NodeIDPrefix is used to denote node addresses rather than other // addresses. NodeIDPrefix string = "NodeID-" // SecretKeyPrefix is used to denote secret keys rather than other byte // arrays. SecretKeyPrefix string = "PrivateKey-" )
View Source
const ( LegacyPlatformName = "avalanche" LegacyAppName = "avalanchego" PlatformName = "flare" AppName = "flare" )
Const variables to be exported
View Source
const ( // DefaultHealthCheckExecutionPeriod is the default time between // executions of a health check function DefaultHealthCheckExecutionPeriod = 1 * time.Minute // DefaultHealthCheckInitialDelay ... DefaultHealthCheckInitialDelay = 10 * time.Second // MinConnectedStake is the minimum percentage of the Primary Network's // that this node must be connected to to be considered healthy MinConnectedStake = float64(.80) )
View Source
const ( FlareID uint32 = 1 SongbirdID uint32 = 5 CostonID uint32 = 7 StagingID uint32 = 10 LocalID uint32 = 12345 FlareName = "flare" SongbirdName = "songbird" CostonName = "coston" StagingName = "staging" LocalName = "local" FlareHRP = "flare" SongbirdHRP = "songbird" CostonHRP = "coston" StatingHRP = "staging" LocalHRP = "local" FallbackHRP = "custom" )
Const variables to be exported
View Source
const ( // Request ID used when sending a Put message to gossip an accepted container // (ie not sent in response to a Get) GossipMsgRequestID uint32 = math.MaxUint32 // The network must be "tcp", "tcp4", "tcp6", "unix" or "unixpacket". NetworkType = "tcp" DefaultMaxMessageSize = 2 * units.MiB DefaultPingPongTimeout = 30 * time.Second DefaultPingFrequency = 3 * DefaultPingPongTimeout / 4 DefaultByteSliceCap = 128 MaxContainersLen = int(4 * DefaultMaxMessageSize / 5) )
Const variables to be exported
Variables ¶
View Source
var ( PrimaryNetworkID = ids.Empty PlatformChainID = ids.Empty NetworkIDToNetworkName = map[uint32]string{ FlareID: FlareName, SongbirdID: SongbirdName, CostonID: CostonName, StagingID: StagingName, LocalID: LocalName, } NetworkNameToNetworkID = map[string]uint32{ FlareName: FlareID, SongbirdName: SongbirdID, CostonName: CostonID, StagingName: StagingID, LocalName: LocalID, } NetworkIDToHRP = map[uint32]string{ FlareID: FlareHRP, SongbirdID: SongbirdHRP, CostonID: CostonHRP, StagingID: StatingHRP, LocalID: LocalHRP, } NetworkHRPToNetworkID = map[string]uint32{ FlareHRP: FlareID, SongbirdHRP: SongbirdID, CostonHRP: CostonID, StatingHRP: StagingID, LocalHRP: LocalID, } ValidNetworkPrefix = "network-" )
Variables to be exported
Functions ¶
func NetworkName ¶
NetworkName returns a human readable name for the network with ID [networkID]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.