I have a newly created private Ethereum "network". I have a question about my balance. In my genesis file, I have my account listed with a starting balance of 0x200000000000000000000000000000000000000000000000000000000000000
(the default value when you use puppeth
) Even though I have mined many blocks, my balance isn't changing. I have been staring at this for a while now and don't know what else to look at.
The gist of what I've done:
- Install geth
mkdir -p /data/miner0
cd /data
geth --datadir miner0/ account new
- (enter password, save password and account id)
- using
puppeth
, creategenesis.json
file (mine is named5private.json
) and I've chosen "Ethash - proof-of-work" - initialize nodes
geth --datadir miner0/ init 5private.json
geth --datadir miner0/ --networkid 35195193 --syncmode 'full' --port 32519 --rpc --rpcaddr 'localhost' --rpcport 8502 --rpcapi 'admin,debug,web3,eth,txpool,personal,ethash,miner,net' --bootnodes 'enode://e2bfa2c1c3dbed66ca2f6787935ea0d6b7013057c9632189e7339c2a6cc2c0452b0d08784517652e0e4dd17044401549bbaef23faf0e16e87bf3d16f42a699f3@127.0.0.1:30519' --gasprice '1' -unlock '0xD4D34828d38A87BcAf376C03696582D6010E14D4' --password miner0/passwd.txt --mine --allow-insecure-unlock
- Connect to console
geth attach miner0/geth.ipc
- Start miner
miner.start(1)
My genesis file looks like:
{
"config": {
"chainId": 51933519,
"homesteadBlock": 0,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"ethash": {}
},
"nonce": "0x0",
"timestamp": "0x5ea26680",
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x47b760",
"difficulty": "0x80000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
<...omitted...a ton of "precompile-addresses that were prefunded w/ 1 wei...>
"213eff4c47c046b2ea39748ee57232062114074e": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
},
"54f7bad5b53e43e884254b4d92af0f2d7988589f": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
}
}
}
But after nearly 24 hours, my balance remains at the initial value - it is not changing even though I have been mining blocks.
> eth.getBlock(eth.blockNumber).miner
"0xdfdabe96077efd9d537623a60da946cffddf25e8"
> eth.getBalance("dFdaBE96077EFD9D537623A60dA946cfFDDf25e8")
9.04625697166532776746648320380374280103671755200316916267512375061821325312e+74
(this is the decimal value of the hex balance in genesis above)
> eth.accounts
["0xdfdabe96077efd9d537623a60da946cffddf25e8"]
> eth.blockNumber
6545
> eth.hashrate
45566
> eth.getBalance(eth.coinbase).toNumber();
9.046256971665328e+74
> eth.syncing
false
Any suggestions on what I need to look at?