Skip to content

Commit c90cc40

Browse files
committed
setup testnet tap
1 parent 42ca0fe commit c90cc40

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

api/config/genesis.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,25 @@ const Account2Pub = "0x22a31a84ab876f82fcafba86e77910b4419a4ee0f1d5483d7dd3b5b6b
6868
// Account2Private is the private key for secode test account
6969
const Account2Private = "0x9d411020d46d3f4e1214f7b51052219737669f461ac9c9ac6ac49753926d0af222a31a84ab876f82fcafba86e77910b4419a4ee0f1d5483d7dd3b5b6b6922ee9"
7070

71+
const (
72+
// these can be addresses or pubkeys, it makes no difference
73+
tap1 = "c007a95dc5b50c3ebbb8ff6bc4eabd379d646beb6e065934cf7e9de59f8d43e7"
74+
tap2 = "9707fd32f9e96a72c4fa1b0f18cd748bd82496c4341aad3e66930c855349aa48"
75+
tap3 = "0xafed9a1c17ca7eaa7a6795dbc7bee1b1d992c7ba"
76+
)
77+
7178
// DefaultGenesisConfig is the default configuration for the node
7279
func DefaultGenesisConfig() *GenesisConfig {
7380
g := GenesisConfig{}
7481

7582
// we default to 10^5 SMH per account which is 10^17 smidge
7683
// each genesis account starts off with 10^17 smidge
7784
g.InitialAccounts = map[string]GenesisAccount{
78-
"0x1": {Balance: 100000000000000000, Nonce: 0},
79-
Account1Pub: {Balance: 100000000000000000, Nonce: 0},
80-
Account2Pub: {Balance: 100000000000000000, Nonce: 0},
85+
"0x1": {Balance: 100000000000000000, Nonce: 0},
86+
tap1: {Balance: 100000000000000000, Nonce: 0},
87+
tap2: {Balance: 100000000000000000, Nonce: 0},
88+
// community tap gets 1 SMH = 10^12 smidge
89+
tap3: {Balance: 1000000000000, Nonce: 0},
8190
}
8291
return &g
8392
//todo: implement reading from file

0 commit comments

Comments
 (0)