rieMiner - Solo + pooled Riecoin mining

Riecoin mining software & pools
Post Reply
Pttn
Posts: 131
Joined: 24 Aug 2018, 13:37

Re: rieMiner - Solo + pooled Riecoin mining

Post by Pttn » 07 Oct 2018, 17:50

Lol, I see that someone was searching the string "Mined with Pttn" in my repository, probably to remove or customize the rieMiner signature... Indeed, for each block solo mined with rieMiner, there is a hidden message in the block saying "Mined with Pttn's rieMiner" :D ! Sorry, you will not find that string this way! You will need to study a bit more the code!

I might propose in the future a way to customize easily the message, so you can for example declare irrevocably in the Riecoin's blockchain your love to someone, or even certify the existence of something at some point in the time, but this is not a priority for now (you can also do this yourself easily).
rieMiner - Riecoin solo + pooled miner
Personal Riecoin page (links, download,...)
freebitco.in - earn up to $200 in BTC each hour!

tgspring
Posts: 7
Joined: 17 Sep 2018, 01:15

Re: rieMiner - Solo + pooled Riecoin mining

Post by tgspring » 08 Oct 2018, 01:23

Now, the diff is 1467, it is too hard for me to mine with only one CPU.

IGJ
Posts: 46
Joined: 21 Aug 2018, 11:43

Re: rieMiner - Solo + pooled Riecoin mining

Post by IGJ » 08 Oct 2018, 08:25

IGJ wrote:
05 Oct 2018, 12:29
Only one little note

do not use:
connect=(node_ip)

instead use
addnode=(node_ip)

If you use "connect" the wallet will try to connect periodically to that node, and if the node is down, this could trigger network flood. You should use connect only to nodes that you know they will always work and you trust them. With "addnode" the wallet will connect on start to this node and will get his connected nodes list, then will try to connect to them after time. This is better for p2p network.
I am absolutely sure in this. Put these two lines in your riecoin.conf :
connect=1.1.1.1
addnode=2.2.2.2
Then monitor your debug.log (tail -f ~/.riecoin/debug.log) you will see :)

Pttn
Posts: 131
Joined: 24 Aug 2018, 13:37

Re: rieMiner - Solo + pooled Riecoin mining

Post by Pttn » 08 Oct 2018, 19:29

I just found this https://en.bitcoin.it/wiki/Running_Bitcoin

Code: Select all

##############################################################
##            Quick Primer on addnode vs connect            ##
##  Let's say for instance you use addnode=4.2.2.4          ##
##  addnode will connect you to and tell you about the      ##
##    nodes connected to 4.2.2.4.  In addition it will tell ##
##    the other nodes connected to it that you exist so     ##
##    they can connect to you.                              ##
##  connect will not do the above when you 'connect' to it. ##
##    It will *only* connect you to 4.2.2.4 and no one else.##
##                                                          ##
##  So if you're behind a firewall, or have other problems  ##
##  finding nodes, add some using 'addnode'.                ##
##                                                          ##
##  If you want to stay private, use 'connect' to only      ##
##  connect to "trusted" nodes.                             ##
##                                                          ##
##  If you run multiple nodes on a LAN, there's no need for ##
##  all of them to open lots of connections.  Instead       ##
##  'connect' them all to one node that is port forwarded   ##
##  and has lots of connections.                            ##
##       Thanks goes to [Noodle] on Freenode.               ##
##############################################################
So, the risk with AddNode is that you could be connected to a bad node, to which one of the nodes in your list is connected, while Connect just connects you to what you specified. Connect would also be better for privacy. And in case of DDOS attacks, you will be less likely to encounter attacked nodes with Connect.

But in another hand, there would be more redundancy with AddNode, if a given node goes down (goes with what you pointed out)... Well, finally, it is up to the user to choose between AddNode and Connect...
rieMiner - Riecoin solo + pooled miner
Personal Riecoin page (links, download,...)
freebitco.in - earn up to $200 in BTC each hour!

czakris
Posts: 20
Joined: 16 Sep 2018, 05:03

Re: rieMiner - Solo + pooled Riecoin mining

Post by czakris » 29 Oct 2018, 19:16

0186:07:18] 6-tuple found, this is a block!
Sent: {"method": "submitblock", "params": ["02000000b9188f46fe5ea9f71d4030bc91f8
59165e0d28c0081be835b52ddfe135a33885fd5f58939be3a3f8064b4aeed07a06c5b9b762b5d5fc
5383c995a18f20c020fc00b305029636d75b0000000003cbbd247be7c7c97ea13c05bd9e24213da1
5b4ac6edb4eaa6bc5b4345f68d780201000000010000000000000000000000000000000000000000
000000000000000000000000ffffffff1003e8ec0e7269654d696e65721640d03cffffffff011020
0395000000001976a9147f400eb11873957573b22166494417ef18eff48c88ac0000000001000000
014a6cb606a725516a6475a887ef6a1fc22eb91aee3facab6bc0eac3f75a764a1f000000006b4830
45022100c3c2b14fc1a8e33d13d1105ada49cf5db392e5cb697093ddc9d571f1e33e3979022009d6
d7e01e9ed8ae2b4dab49d035ced759818888aa94ad73844f029695ff6d2f012102e81ab3a8225b16
a3977a147787b1b7c00a237f1aa941bc8db39a24272520b8d8ffffffff02a8e37c03000000001976
a914aef9e0613733c952fc0df59723490c425d86512088ac05678900000000001976a914a03792a6
4b2a9ed63e696cc77b23930ceed082ed88ac00000000"], "id": 0}
Submission accepted :D !
[0186:07:18] Blockheight = 978152, average 174.2 s, difficulty = 1459


[0188:38:18] (2-4t/s) = (1.91 0.075 0.0032) ; (2-6t) = (1283491 49757 1881 81 2) | 2.36 d
rieMiner 0.9β2.3 works fine with mining on fx-8350 (using 6 threads) and 32 DDR3 RAM but coins are not visible in old wallet, hence i need to download Riecoin 0.16.3 to check if i really have them.

Pttn
Posts: 131
Joined: 24 Aug 2018, 13:37

Re: rieMiner - Solo + pooled Riecoin mining

Post by Pttn » 29 Oct 2018, 21:03

czakris wrote:
29 Oct 2018, 19:16
0186:07:18] 6-tuple found, this is a block!
Sent: {"method": "submitblock", "params": ["02000000b9188f46fe5ea9f71d4030bc91f8
59165e0d28c0081be835b52ddfe135a33885fd5f58939be3a3f8064b4aeed07a06c5b9b762b5d5fc
5383c995a18f20c020fc00b305029636d75b0000000003cbbd247be7c7c97ea13c05bd9e24213da1
5b4ac6edb4eaa6bc5b4345f68d780201000000010000000000000000000000000000000000000000
000000000000000000000000ffffffff1003e8ec0e7269654d696e65721640d03cffffffff011020
0395000000001976a9147f400eb11873957573b22166494417ef18eff48c88ac0000000001000000
014a6cb606a725516a6475a887ef6a1fc22eb91aee3facab6bc0eac3f75a764a1f000000006b4830
45022100c3c2b14fc1a8e33d13d1105ada49cf5db392e5cb697093ddc9d571f1e33e3979022009d6
d7e01e9ed8ae2b4dab49d035ced759818888aa94ad73844f029695ff6d2f012102e81ab3a8225b16
a3977a147787b1b7c00a237f1aa941bc8db39a24272520b8d8ffffffff02a8e37c03000000001976
a914aef9e0613733c952fc0df59723490c425d86512088ac05678900000000001976a914a03792a6
4b2a9ed63e696cc77b23930ceed082ed88ac00000000"], "id": 0}
Submission accepted :D !
[0186:07:18] Blockheight = 978152, average 174.2 s, difficulty = 1459


[0188:38:18] (2-4t/s) = (1.91 0.075 0.0032) ; (2-6t) = (1283491 49757 1881 81 2) | 2.36 d
rieMiner 0.9β2.3 works fine with mining on fx-8350 (using 6 threads) and 32 DDR3 RAM but coins are not visible in old wallet, hence i need to download Riecoin 0.16.3 to check if i really have them.
Your block was unfortunately orphaned. If you watch Block 978152 in an explorer, you will see that it was mined by RLG... This is the reason that you are not seeing anything.
That really sucks, but it is part of Solo Mining. A few % of the blocks that I mine are getting orphaned.

It will say Submission Accepted anyway because the wallet actually accepted the submission. Unfortunately, the block was then rejected by the other nodes, either because someone else found a block earlier or your wallet was for some reason unsynced.
rieMiner - Riecoin solo + pooled miner
Personal Riecoin page (links, download,...)
freebitco.in - earn up to $200 in BTC each hour!

Rockhawk
Posts: 48
Joined: 29 Oct 2018, 21:12

Re: rieMiner - Solo + pooled Riecoin mining

Post by Rockhawk » 29 Oct 2018, 21:47

Great to see a new version of the riecoin miner that can work directly with GetBlockTemplate! I will give it a try once my wallet has sync'd.

Nearly a year ago I made a few optimizations to the sieving part of fastrie, firstly using SSE to speed up the offset calculation and using some precomputation to improve the remainder calculation (though this change requires pulling in some internal parts of GMP). Once I get things up and running again I should be able to give a rough indication of the speed up. Hopefully I'll get a chance to port these changes over on a fork, but for your interest, the changes are on this branch: https://github.com/MichaelBell/fastrie/tree/sse

I also have a prototype locally of a change that should help with the throughput issue when running large numbers of threads. Basically this has 2 sieves and switches back and forth between them so there can be overlap between the sieving and testing stages. I'll need to resurrect this and understand the code again, but I might get a chance to look at that in a couple of weeks.

Pttn
Posts: 131
Joined: 24 Aug 2018, 13:37

Re: rieMiner - Solo + pooled Riecoin mining

Post by Pttn » 30 Oct 2018, 02:53

Rockhawk wrote:
29 Oct 2018, 21:47
Great to see a new version of the riecoin miner that can work directly with GetBlockTemplate! I will give it a try once my wallet has sync'd.

Nearly a year ago I made a few optimizations to the sieving part of fastrie, firstly using SSE to speed up the offset calculation and using some precomputation to improve the remainder calculation (though this change requires pulling in some internal parts of GMP). Once I get things up and running again I should be able to give a rough indication of the speed up. Hopefully I'll get a chance to port these changes over on a fork, but for your interest, the changes are on this branch: https://github.com/MichaelBell/fastrie/tree/sse

I also have a prototype locally of a change that should help with the throughput issue when running large numbers of threads. Basically this has 2 sieves and switches back and forth between them so there can be overlap between the sieving and testing stages. I'll need to resurrect this and understand the code again, but I might get a chance to look at that in a couple of weeks.
Welcome here Rockhawk :D !

Interesting. I am looking forward to seeing these improvements in a rieMiner fork and compare the performance. There is a Benchmark Mode in rieMiner which will make such testing easy. If you solved the CPU underuse problem, and even speed up the mining significantly, I will be glad to donate a few thousands of RIC if your code is released in MIT licence and if I like it. However, it is a shame that you need to mod GMP.

Would the speed up be just a few %, or more like 20-30%?
rieMiner - Riecoin solo + pooled miner
Personal Riecoin page (links, download,...)
freebitco.in - earn up to $200 in BTC each hour!

czakris
Posts: 20
Joined: 16 Sep 2018, 05:03

Re: rieMiner - Solo + pooled Riecoin mining

Post by czakris » 30 Oct 2018, 06:43

Pttn wrote:
29 Oct 2018, 21:03
Your block was unfortunately orphaned. If you watch Block 978152 in an explorer, you will see that it was mined by RLG... This is the reason that you are not seeing anything.
That really sucks, but it is part of Solo Mining. A few % of the blocks that I mine are getting orphaned.

It will say Submission Accepted anyway because the wallet actually accepted the submission. Unfortunately, the block was then rejected by the other nodes, either because someone else found a block earlier or your wallet was for some reason unsynced.
[0200:15:53] (2-4t/s) = (2.02 0.084 0.0030) ; (2-6t) = (1365491 52981 1999 84 2)
| 2.21 d


it looks like this was second rejected block after 200h solo mining. Wallet works fine but maybe it will be better to connect into mining pool. I will wait few more days and if there will be no results from using solo miner. I'll just quit.
Anyway, is there ony chance for display mner messages within one line in windows console?

Pttn
Posts: 131
Joined: 24 Aug 2018, 13:37

Re: rieMiner - Solo + pooled Riecoin mining

Post by Pttn » 30 Oct 2018, 10:30

czakris wrote:
30 Oct 2018, 06:43
[0200:15:53] (2-4t/s) = (2.02 0.084 0.0030) ; (2-6t) = (1365491 52981 1999 84 2) | 2.21 d

it looks like this was second rejected block after 200h solo mining. Wallet works fine but maybe it will be better to connect into mining pool. I will wait few more days and if there will be no results from using solo miner. I'll just quit.
Anyway, is there ony chance for display mner messages within one line in windows console?
Even with the best possible connection, you will still find orphans. It is part of mining. You would not gain anything in the long term as pools will also find orphans at the same rate, but feel free to pool mine if you are tired of finding orphans.

But 2 orphans in a row is weird, you must be really unlucky to find both. You should check you connection again or try to add more nodes. Or check what happens in the Riecoin-Qt debug.log file. I did not find any orphan since my last 100 blocks and overall it might have happened only 3-4 times for more than 250 blocks.

Inline stats: for Windows 10, just resize the console. For Windows 7, right click on the title bar > Properties > Layout > Increase Windows Size Width (to like 100). We are no longer in 1928, there is not any reason to restrain the stats to 80 columns.
rieMiner - Riecoin solo + pooled miner
Personal Riecoin page (links, download,...)
freebitco.in - earn up to $200 in BTC each hour!

Post Reply