This comes happening being some time with me and i'm getting upset about it.
In some terminal, i start geth with:
geth -rpc --mine --fast --cache=1024
And in another terminal i start mine with my GPU with:
ethminer -G --farm-recheck 200
So i get into the console with the third terminal using:
geth attach
There i can list my two wallets
> eth.accounts
["0x2d8a0028428d556882818d9a8d2d1ed7a0aed609", "0x1657ea92300a544aee12a1b57f7ef2a2f37bbc24"]
And with some time, i can even see some ether comming:
> web3.fromWei(eth.getBalance(eth.coinbase), "ether");
95
But, if a close the first geth (with the -rpcflag), when i restart it, my balance shows 0.
At the Etherscan my account still showing 0 eth.
I tried to make a transaction from my primary account to the second, with something like:
eth.sendTransaction({from:eth.coinbase, to:"0x1657ea92300a544aee12a1b57f7ef2a2f37bbc24", value: web3.toWei(90, "ether")})
But i got the erro that i'm exceeding gas limit, and sure i'm, 'cause when i aks for my gasLimit, with
> eth.getBlock("latest").gasLimit
I got something near 5060. Some other status of my geth right now:
> net.listening
true
> eth.getBlock("latest").number
20
> net.peerCount
25
> eth.syncing
{
currentBlock: 3123614,
highestBlock: 4253828,
knownStates: 10525102,
pulledStates: 10519480,
startingBlock: 0
}
There is almost 2 days that my geth -rpc console still importing new blocks and states.
How can i make my ether account keeps my balance from every time i reset the -rpc server? I found here that a genesis.json would limit my gasLimit, but i just find how to initialize a new server with sending the json file, how can i update a existing one?
0and than i should start mining properly? Or right now i would keep in this fork forever if i don't stop thegeth? – Ziul Sep 09 '17 at 16:07gethfully sync before mining. Otherwise, you're definitely just wasting electricity. – lungj Sep 09 '17 at 16:15