Can't Give Private Account Ether Specified In Genesis.json

hemlockhemlock Posts: 8Member
Title basically explains it all.

I am running geth with the following parameters: "geth --datadir chain/ --networkid 123 --nodiscover --maxpeers 0 console init genesis.json"

My genesis.json looks like this upon initialization:

{
"nonce": "0x0000000000000042",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"difficulty": "0x4000",
"alloc": {},
"coinbase": "0x0000000000000000000000000000000000000000",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "Custem Ethereum Genesis Block",
"gasLimit": "0xffffffff"
}

After I run the geth command, I create an account with:

personal.newAccount("mypassword");

I close geth console with: 'exit'

and I amend my genesis.json with:


{
"config": {
"homesteadBlock": 10
},
"nonce": "0",
"difficulty": "0x20000",
"mixhash": "0x00000000000000000000000000000000000000647572616c65787365646c6578",
"coinbase": "0x0000000000000000000000000000000000000000",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x",
"gasLimit": "0x2FEFD8",
"alloc": {
"0x966add7ece5771ffb327d78d9644ea089deb737d": {
"balance": "10000000000000000000"
}
}
}

Where the specified address is what was created in the geth console.

After doing this and restarting geth, it still says my account has a balance of 0. :(

Any advice?
Sign In or Register to comment.