add minting demo addresses to local test

pull/1211/head
Minh Doan 5 years ago committed by Minh Doan
parent 39ebeebf2c
commit c63dc3251b
  1. 2
      node/node_genesis.go
  2. 5
      test/debug.sh

@ -75,9 +75,9 @@ 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:
AddDemoAddressesToGenesisAlloc(genesisAlloc)
fallthrough
case nodeconfig.Devnet:
chainConfig = *params.TestnetChainConfig

@ -1,6 +1,3 @@
./test/kill_node.sh
rm -rf tmp_log*
gsed -i 's/GenesisShardNum = 4/GenesisShardNum = 1/' core/resharding.go
gsed -i 's/GenesisShardSize = 150/GenesisShardSize = 20/' core/resharding.go
gsed -i 's/GenesisShardHarmonyNodes = 112/GenesisShardHarmonyNodes = 20/' core/resharding.go
./test/deploy.sh -D -1 ./test/configs/beaconchain20.txt -network_type testnet
./test/deploy.sh -D -1 ./test/configs/local.txt
Loading…
Cancel
Save