MultiversX Tracker is Live!

How can I fix the issue of my private PoA network on Geth returning 0 ETH balance for allocated accounts?

Etherum Reddit

More / Etherum Reddit 87 Views

I've been trying to configure a private Proof of Authority (PoA) network using Geth on an EC2 instance. I have set up two nodes, but when I check the ETH balance of the accounts, it returns 0. Below is my configuration:

```

{
"config": {
"chainId": 123454321,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"muirGlacierBlock": 0,
"berlinBlock": 0,
"londonBlock": 0,
"arrowGlacierBlock": 0,
"grayGlacierBlock": 0,
"clique": {
"period": 5,
"epoch": 30000
}
},
"difficulty": "1",
"gasLimit": "800000000",
"extradata": "0x00000000000000000000000000000000000000000000000000000000000000000405717696912fE792Db0d94C54F567a2d1e46CD0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"alloc": {
"0405717696912fE792Db0d94C54F567a2d1e46CD": { "balance": "0x200000000000000000000000000000000000000000000000000000000000000" },
"04e2f579f9B8B27B7B133F74860dB210cE4b8F63": { "balance": "0x200000000000000000000000000000000000000000000000000000000000000" }
}
}

```

Commands used:

  • Initialize Node1/2: geth --datadir node1 init genesis.json
  • Retrieve enode for bootnode: bootnode -nodekey boot.key -addr :30305
  • Start Node1/2: bootnode -nodekey boot.key -addr :30305

Check ETH balance:

  1. Attach to Geth: geth attach node1/geth.ipc
  2. Check balance: web3.fromWei(eth.getBalance("0x0405717696912fE792Db0d94C54F567a2d1e46CD"), "ether")

I get a 0 ETH balance for the allocated accounts. I have tried multiple solutions but cannot figure out what is causing this error. Any help or suggestions would be greatly appreciated!

Extra Notes:

  • I have created a separate account for each node.
  • I have checked admin.peers on node1 and it has one peer connected.
  • eth.syncing returns false.
  • eth.blockNumber is undefined.
submitted by /u/Suhail9816
[link] [comments]
Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments