Skip to content

Commit

Permalink
don't replace old balances for new_testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
nmushegian committed Nov 11, 2014
1 parent a37bfe2 commit ae1fa81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions new_testnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
tmp.write(line)
os.rename("tmp_config", "libraries/net/include/bts/net/config.hpp")

old_balances = []
with open("libraries/blockchain/genesis.json") as genesis:
old_balances = json.load(genesis)["balances"]

with open("libraries/blockchain/genesis.json", "w") as genesis:
genesis.write(json.dumps(new_genesis, indent=4))

Expand Down

0 comments on commit ae1fa81

Please sign in to comment.