Skip to content

Commit

Permalink
setup testnet tap
Browse files Browse the repository at this point in the history
  • Loading branch information
lrettig committed Jun 18, 2021
1 parent 4817d29 commit 293a4c4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions api/config/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,25 @@ const Account2Pub = "0x22a31a84ab876f82fcafba86e77910b4419a4ee0f1d5483d7dd3b5b6b
// Account2Private is the private key for secode test account
const Account2Private = "0x9d411020d46d3f4e1214f7b51052219737669f461ac9c9ac6ac49753926d0af222a31a84ab876f82fcafba86e77910b4419a4ee0f1d5483d7dd3b5b6b6922ee9"

const (
// these can be addresses or pubkeys, it makes no difference
tap1 = "c007a95dc5b50c3ebbb8ff6bc4eabd379d646beb6e065934cf7e9de59f8d43e7"
tap2 = "9707fd32f9e96a72c4fa1b0f18cd748bd82496c4341aad3e66930c855349aa48"
tap3 = "0xafed9a1c17ca7eaa7a6795dbc7bee1b1d992c7ba"
)

// DefaultGenesisConfig is the default configuration for the node
func DefaultGenesisConfig() *GenesisConfig {
g := GenesisConfig{}

// we default to 10^5 SMH per account which is 10^17 smidge
// each genesis account starts off with 10^17 smidge
g.InitialAccounts = map[string]GenesisAccount{
"0x1": {Balance: 100000000000000000, Nonce: 0},
Account1Pub: {Balance: 100000000000000000, Nonce: 0},
Account2Pub: {Balance: 100000000000000000, Nonce: 0},
"0x1": {Balance: 100000000000000000, Nonce: 0},
tap1: {Balance: 100000000000000000, Nonce: 0},
tap2: {Balance: 100000000000000000, Nonce: 0},
// community tap gets 1 SMH = 10^12 smidge
tap3: {Balance: 1000000000000, Nonce: 0},
}
return &g
//todo: implement reading from file
Expand Down

0 comments on commit 293a4c4

Please sign in to comment.