Documentation ¶
Index ¶
Constants ¶
View Source
const ( //ADK is for converting 1 ADK to unit in transactions. ADK = 100000000 //ADKSupply is total supply of ADK. ADKSupply uint64 = 25 * 1000000 * ADK )
Variables ¶
View Source
var ( //MainConfig is a Config for MainNet MainConfig = &Config{ Name: "mainnet", Easiness: 0x7fffffff, TicketEasiness: 0x0007ffff, PrefixPriv: []byte{0x1d, 0x49}, PrefixAdrs: []byte{0xab, 0x55}, PrefixMsig: []byte{0x67, 0xbc}, PrefixNkey: []byte{0x20, 0x62}, PrefixNode: []byte{0x5a, 0x37}, PrefixOTA: []byte{0x10, 0xce}, DefaultPort: 14270, DefaultRPCPort: 14271, DefaultExplorerPort: 8081, DNS: []SRV{ { Service: "seeds", Name: "aidoskuneen.com", }, }, MessageMagic: 0xD3AB9E77, Genesis: map[string]uint64{ "AKADRSM1cCn6Kd1YoKXa4zmZqBKFqFVLnj8w27Rqonzo3fACYoA2cxzct": ADKSupply, }, WalletServers: []string{ "http://78.46.193.200:14271", "http://78.47.29.65:14271", }, } //TestConfig is a Config for TestNet TestConfig = &Config{ Name: "testnet", Easiness: 0x7fffffff, TicketEasiness: 0x00ffffff, PrefixPriv: []byte{0x1d, 0x64}, PrefixAdrs: []byte{0xac, 0x08}, PrefixMsig: []byte{0x68, 0x6f}, PrefixNkey: []byte{0x20, 0x7d}, PrefixNode: []byte{0x5a, 0xea}, PrefixOTA: []byte{0x10, 0xe4}, DefaultPort: 14370, DefaultRPCPort: 14371, DefaultExplorerPort: 8082, DNS: []SRV{ { Service: "testnetseeds", Name: "aidoskuneen.com", }, }, MessageMagic: 0xD9CBA322, Genesis: map[string]uint64{ "AKADRST1zateckCRSGvzABqsJrzApWX4NRJSYP193AD8Z2sBbdCmSk2tz": ADKSupply, }, WalletServers: []string{ "http://78.46.250.88:14371", }, } //DebugConfig is a Config for debug DebugConfig = &Config{ Name: "debug", Easiness: 0xffffffff, TicketEasiness: 0xffffffff, PrefixPriv: []byte{0x1d, 0x24}, PrefixAdrs: []byte{0xaa, 0x67}, PrefixMsig: []byte{0x66, 0xcd}, PrefixNkey: []byte{0x20, 0x3e}, PrefixNode: []byte{0x59, 0x48}, PrefixOTA: []byte{0x10, 0xb1}, DefaultPort: 14470, DefaultRPCPort: 14471, DefaultExplorerPort: 8083, DNS: []SRV{ { Service: "testnetseeds", Name: "aidoskuneen.com", }, }, MessageMagic: 0xD4E9BF30, Genesis: map[string]uint64{ "AKADRSD4HSext48uT6cibWYoQQj6pvtVgLkQo61wbiToSKfeSi2inrMUU": ADKSupply, }, WalletServers: []string{ "http://78.46.250.88:14471", }, } )
View Source
var Configs = []*Config{MainConfig, TestConfig, DebugConfig}
Configs is a list of nets.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string Easiness uint32 TicketEasiness uint32 PrefixPriv []byte PrefixAdrs []byte PrefixMsig []byte PrefixNkey []byte PrefixNode []byte PrefixOTA []byte DefaultPort uint16 DefaultRPCPort uint16 DefaultExplorerPort uint16 DNS []SRV MessageMagic uint32 Genesis map[string]uint64 WalletServers []string }
Config is settings for various parameters.
Click to show internal directories.
Click to hide internal directories.