Documentation ¶
Index ¶
Constants ¶
View Source
const ( NodeIDPrefix string = "NodeID-" SecretKeyPrefix string = "PrivateKey-" // Request ID used when sending a Put message to gossip an accepted container // (ie not sent in response to a Get) GossipMsgRequestID = math.MaxUint32 )
Const variables to be exported
Variables ¶
View Source
var ( PrimaryNetworkID = ids.Empty PlatformChainID = ids.Empty MainnetID uint32 = 1 CascadeID uint32 = 2 DenaliID uint32 = 3 EverestID uint32 = 4 TestnetID uint32 = EverestID LocalID uint32 = 12345 UnitTestID uint32 = 10 MainnetName = "mainnet" CascadeName = "cascade" DenaliName = "denali" EverestName = "everest" TestnetName = "testnet" LocalName = "local" UnitTestName = "testing" MainnetHRP = "avax" CascadeHRP = "cascade" DenaliHRP = "denali" EverestHRP = "everest" LocalHRP = "local" UnitTestHRP = "testing" FallbackHRP = "custom" NetworkIDToNetworkName = map[uint32]string{ MainnetID: MainnetName, CascadeID: CascadeName, DenaliID: DenaliName, EverestID: EverestName, LocalID: LocalName, UnitTestID: UnitTestName, } NetworkNameToNetworkID = map[string]uint32{ MainnetName: MainnetID, CascadeName: CascadeID, DenaliName: DenaliID, EverestName: EverestID, TestnetName: TestnetID, LocalName: LocalID, UnitTestName: UnitTestID, } NetworkIDToHRP = map[uint32]string{ MainnetID: MainnetHRP, CascadeID: CascadeHRP, DenaliID: DenaliHRP, EverestID: EverestHRP, LocalID: LocalHRP, UnitTestID: UnitTestHRP, } NetworkHRPToNetworkID = map[string]uint32{ MainnetHRP: MainnetID, CascadeHRP: CascadeID, DenaliHRP: DenaliID, EverestHRP: EverestID, LocalHRP: LocalID, UnitTestHRP: UnitTestID, } ValidNetworkName = regexp.MustCompile(`network-[0-9]+`) )
Variables to be exported
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.