I'm still working on a customized stratum-mining for Riecoin. I contacted a few pools that support non-standard PoWs without success.
Meanwhile, I made an optimized solo miner. Download here: https://sourceforge.net/projects/riecoin/files/cpuminer%20rminerd%203.1.1/
You are definitely on the right track but there is still plenty of room for improvements. I did a test run on testnet but most solved blocks were rejected.
Are you seeing the same error I'm seeing?
ERROR: CheckWork() : block with too much proof-of-work
I'm getting this with the stock version of gatra's optimized miner and with my own. If someone else has debugged this already, I'd appreciate knowing what the solution is. I'm guessing it's something about not setting the nBits field properly in a reply from the miner - gatra?
(Frustratingly, I also got this error solo mining)
You will need to comment out lines 4701-4705 in main.cpp and recompile or use the previous client (version 0.8.6)
https://github.com/riecoin/riecoin/blob/0.8.6-ric/src/main.cpp