I'm running geth with ethminer on the Frontier network, and everything appears to be working properly. I verified that my latest block numbers are the same as those on
http://stats.ethdev.com and I have some peers, so I think I've generated the genesis file properly and am connected to the right network.
I've been running for a few hours , I have yet to see the "Mined block #XXX" log message, and my account balance still reads 0. I'm getting about 7.6M H/s. Is this expected, or might it point to something wrong?
My understanding is that the *first* node to solve the block gets the primary credit for mining it, and there's the concept of an uncle which I haven't looked into yet. This could all mean that everything is ok, but I just want to make sure. The existing guides and screenshots make it look like I should be getting mined blocks all the time, but I can understand if that might be different on the production network given more nodes and higher difficulty. I'm new to blockchains and just not really sure what to expect, so I want to make sure I actually have it set up right.
EDIT: It also occurs to me that most of the people currently running mining setups may have fairly high end rigs with R9s, whereas I'm running an Nvidia GTX 660. That could put me at a relative disadvantage when it comes to block solving speed, which I assume may even out a bit more as Ethereum hopefully becomes more popular.
Here's some output from my geth instance:
I0730 23:48:17.298129 12416 worker.go:489] commit new work on block 8637 with
0 txs & 0 uncles. Took 1ms
I0730 23:48:23.563488 12416 chain_manager.go:672] imported 1 block(s) (0 queue
d 0 ignored) including 0 txs in 2.0001ms. #8637 [6dc702c7 / 6dc702c7]
I0730 23:48:23.564488 12416 worker.go:489] commit new work on block 8638 with
0 txs & 0 uncles. Took 0
I0730 23:48:23.786500 12416 chain_manager.go:672] imported 0 block(s) (0 queue
d 2 ignored) including 0 txs in 3.0001ms. #8637 [544d62de / 6dc702c7]
I0730 23:48:51.229070 12416 chain_manager.go:672] imported 1 block(s) (0 queue
d 0 ignored) including 0 txs in 3.0002ms. #8638 [ba7ef38b / ba7ef38b]
I0730 23:48:51.229070 12416 worker.go:489] commit new work on block 8639 with
0 txs & 0 uncles. Took 0
I0730 23:49:07.227985 12416 chain_manager.go:672] imported 1 block(s) (0 queue
d 0 ignored) including 0 txs in 2.0001ms. #8639 [4b7d14e7 / 4b7d14e7]
I0730 23:49:07.228985 12416 worker.go:489] commit new work on block 8640 with
0 txs & 0 uncles. Took 1.0001ms
I0730 23:49:08.993086 12416 chain_manager.go:672] imported 0 block(s) (0 queue
d 1 ignored) including 0 txs in 3.0002ms. #8638 [ba7ef38b / ba7ef38b]
I0730 23:49:09.022088 12416 chain_manager.go:672] imported 0 block(s) (0 queue
d 1 ignored) including 0 txs in 3.0002ms. #8639 [4b7d14e7 / 4b7d14e7]
I0730 23:49:12.807304 12416 chain_manager.go:672] imported 1 block(s) (0 queue
d 0 ignored) including 0 txs in 3.0002ms. #8640 [f96a8bdf / f96a8bdf]
I0730 23:49:12.808304 12416 worker.go:489] commit new work on block 8641 with
0 txs & 0 uncles. Took 1ms
I0730 23:49:13.163325 12416 chain_manager.go:672] imported 0 block(s) (0 queue
d 1 ignored) including 0 txs in 3.0001ms. #8639 [4b7d14e7 / 4b7d14e7]
I0730 23:49:13.592349 12416 chain_manager.go:672] imported 0 block(s) (0 queue
d 1 ignored) including 0 txs in 3.0002ms. #8640 [f96a8bdf / f96a8bdf]
I0730 23:49:15.970485 12416 chain_manager.go:672] imported 0 block(s) (1 queue
d 0 ignored) including 0 txs in 3.0002ms. #8641 [0316a6a2 / 0316a6a2]
I0730 23:49:17.050547 12416 chain_manager.go:672] imported 1 block(s) (0 queue
d 0 ignored) including 0 txs in 3.0002ms. #8641 [0316a6a2 / 0316a6a2]
I0730 23:49:17.050547 12416 worker.go:489] commit new work on block 8642 with
0 txs & 0 uncles. Took 0
And a bit from ethminer:
miner 00:06:12|main Got work package:
miner 00:06:12|main Header-hash: 95d219b372ea87f401dbc4e0611220bac62f39d06c1
591ba06f2670d3d8a0e5a
miner 00:06:12|main Seedhash: 0000000000000000000000000000000000000000000000
000000000000000000
miner 00:06:12|main Target: 000000000236b88a7e880c2e48e71e5e0775c99a5ac072a9
fa4831e9efe1ede4
i 00:06:12|gpuminer0 workLoop 1 #00000000… #00000000…
miner 00:06:13|main Mining on PoWhash #95d219b3… : 6815744 H/s = 3407872 has
hes / 0.5 s
miner 00:06:13|main Mining on PoWhash #95d219b3… : 7318077 H/s = 7340032 has
hes / 1.003 s
miner 00:06:14|main Mining on PoWhash #95d219b3… : 7310788 H/s = 11010048 ha
shes / 1.506 s
miner 00:06:14|main Mining on PoWhash #95d219b3… : 7433934 H/s = 14942208 ha
shes / 2.01 s
miner 00:06:15|main Mining on PoWhash #95d219b3… : 7501736 H/s = 18874368 ha
shes / 2.516 s
miner 00:06:15|main Mining on PoWhash #95d219b3… : 7467500 H/s = 22544384 ha
shes / 3.019 s
Comments
Is that 7.6 actual an actual mining figure or benchmarked?
I find it poor that my question hasn't been answered anywhere as to how can we know for sure that the GPU is indeed mining. Some stats on mined blocks would've been nice. I get the feeling my ethminer is not the right version. (Using latest)
I've updated my calculator with an average block time field to get a better impression. ATM you should be getting an average of 1 block every ~1.2 days. But remember that average is over weeks so hang in there.
What's the output you get running ethminer -G? After a few seconds it should be something like:
miner 21:55:43|main Mining on PoWhash #9a3f75a9 : 20971520 H/s = 10485760 hashes / 0.5 s
miner 21:55:44|main Mining on PoWhash #9a3f75a9 : 21888763 H/s = 22020096 hashes / 1.006 s
miner 21:55:44|main Mining on PoWhash #9a3f75a9 : 22018708 H/s = 33292288 hashes / 1.512 s
miner 21:55:45|main Mining on PoWhash #9a3f75a9 : 21964470 H/s = 44302336 hashes / 2.017 s
miner 21:55:45|main Mining on PoWhash #9a3f75a9 : 21092045 H/s = 53215232 hashes / 2.523 s
miner 21:55:46|main Mining on PoWhash #9a3f75a9 : 20517875 H/s = 62128128 hashes / 3.028 s
miner 21:55:46|main Mining on PoWhash #9a3f75a9 : 20176335 H/s = 71303168 hashes / 3.534 s
miner 21:55:46|main Got work package:
miner 21:55:46|main Header-hash: ce9a298f7fd601904c4a73fa2436848233c4a5939c71df0b3996ae638a669b0e
miner 21:55:46|main Seedhash: 0000000000000000000000000000000000000000000000000000000000000000
miner 21:55:46|main Target: 00000000053a8bbb399f3bcf648addcd2a25887eb067aa9f2c3b16622b50ed70
i 21:55:46|gpuminer0 workLoop 1 #00000000 #00000000
miner 21:55:47|main Mining on PoWhash #ce9a298f : 17825792 H/s = 8912896 hashes / 0.5 s
miner 21:55:47|main Mining on PoWhash #ce9a298f : 17997946 H/s = 18087936 hashes / 1.005 s
miner 21:55:48|main Mining on PoWhash #ce9a298f : 18228556 H/s = 27525120 hashes / 1.51 s
miner 21:55:48|main Mining on PoWhash #ce9a298f : 18083382 H/s = 36438016 hashes / 2.015 s
miner 21:55:48|main Got work package:
miner 21:55:48|main Header-hash: 2c9112be6c4dbfdfdd5df7077491ae0ab82b61ff14ff078eb0e5674302279956
miner 21:55:48|main Seedhash: 0000000000000000000000000000000000000000000000000000000000000000
miner 21:55:48|main Target: 000000000539e47ea9db7793f2522c782e8306d0b6ddbdde7bf85d39d86d773a
See https://www.reddit.com/r/EtherMining/comments/3f7i1v/am_i_mining_correctly/
Mining at 25MH/s
Also mining on WIFI is a no-no , you should hook up Ethernet so your bandwitth is steady.
also use the maxpeers flag to get access to the maximum number of peers that way you have a chance on being assigned work faster.
I suspect if you look at the log you will see some errors.
doing a geth upgradedb fixes it usually