cpuminer-multi icon indicating copy to clipboard operation
cpuminer-multi copied to clipboard

Upgrade rainforest algo to v2

Open MikeMurdo opened this issue 6 years ago • 5 comments

Rainforest v1 has a vulnerability and its author issued v2. The only coin currently using it (Microbitcoin[MBC]) now switched to v2. There's no reason to keep v1. Instead add v2. Tested on linux/x86 only but MBC's fork was said to also work on raspberry pi. This code purely comes from rainforest's official repo, not MBC's fork.

MikeMurdo avatar May 12 '19 07:05 MikeMurdo

It would be cool to have the patches. I using them on my Raspberry Pi 3B+ to mine MicroBitcoin (MBC) but I prefer "git clone" instead of "patch".

jdelorme3 avatar May 17 '19 14:05 jdelorme3

It looks like it reports significantly higher speed than the received on the pool side (Something like x256) tested on Zergpool

yuzi-co avatar May 22 '19 17:05 yuzi-co

As I responded to Mike, I mentioned this when I brought the speedup patches. The problem was that the reported hashes count is used to compute how often to print the stats, and if we reported the correct value, the stats output was reported 256 times faster. Now I figured how to fix this, I have a patch somewhere, I'll send it eventually.

wtarreau avatar May 26 '19 03:05 wtarreau

By the way I can confirm the algo works fine on ARM, two nanopi-fire3 are as fast as my core-i7 4.4 GHz.

wtarreau avatar May 26 '19 03:05 wtarreau

Now the hash rate is fixed I tested it and my i7 reports 170kH/s not 20MH like before.

MikeMurdo avatar May 26 '19 18:05 MikeMurdo