Revert "mint demo funds for testnet"

This reverts commit ac9f5c4054.
pull/1251/head
Leo Chen 5 years ago
parent b29a3a2a4a
commit b751d7b0c0
  1. 11
      node/node_genesis.go

@ -76,7 +76,6 @@ func (node *Node) SetupGenesisBlock(db ethdb.Database, shardID uint32, myShardSt
genesisAlloc[foundationAddress] = core.GenesisAccount{Balance: genesisFunds}
}
case nodeconfig.Testnet:
AddDemoAddressesToGenesisAlloc(genesisAlloc)
fallthrough
case nodeconfig.Localnet:
fallthrough
@ -152,13 +151,3 @@ func AddNodeAddressesToGenesisAlloc(genesisAlloc core.GenesisAlloc) {
genesisAlloc[address] = core.GenesisAccount{Balance: testBankFunds}
}
}
// AddDemoAddressesToGenesisAlloc funds demo addresses with free fund.
func AddDemoAddressesToGenesisAlloc(genesisAlloc core.GenesisAlloc) {
for _, account := range DemoAccounts {
testBankFunds := big.NewInt(InitFreeFund)
testBankFunds = testBankFunds.Mul(testBankFunds, big.NewInt(params.Ether))
address := common.HexToAddress(account.Address)
genesisAlloc[address] = core.GenesisAccount{Balance: testBankFunds}
}
}

Loading…
Cancel
Save