Closed OBTfx closed 3 years ago
So for those who want to try mining with the "MinotaurX" algorithm, they have to put in the node configuration file "powalgo=minotaurx" Regards
Indeed the powalgo conf argument allows this to be specified at wallet level. However, it's more versatile to have cpuminer request a specific template. I'll approve your PR with pleasure, thanks!
Ok, checking why my mining processes only get blocks with SHA and not with MinX, I see that the problem is in the cpuminer; when it goes with the MinX algorithm to request the block template from the node, the template delivered is not correct, because it was not passed between the "minotaurx" arguments to obtain a template for MinX, therefore, the node delivers a template by default , which is the one corresponding to SHA-256d and the target between the algorithms are very different
https://github.com/litecoincash-project/cpuminer-multi/blob/d9e61f9c8f1e4476120f5326ed793de31e33aa64/cpu-miner.c#L1473-L1475 https://github.com/litecoincash-project/cpuminer-multi/blob/d9e61f9c8f1e4476120f5326ed793de31e33aa64/cpu-miner.c#L1476-L1478
#
TEMPLATE.- Requesting through the litecoincash-cli
litecoincash-cli getblocktemplate '{"powalgo":"minotaurx"}'
CPUMINER Algo MinotaurX
./cpuminer -a minotaurx -o http://127.0.0.1:62455 -O user:pass --threads=1 --coinbase-addr=t9dJdqruJ7XybguxLMTR3JK5yu2hgqZAFn --coinbase-sig=OBTfx_MTX_NX --api-bind 127.0.0.1:4049 -R 5 --no-longpoll --cpu-affinity 2 -PD
#
TEMPLATE.- Requesting through the litecoincash-cli
litecoincash-cli getblocktemplate '{"powalgo":"sha256d"}'
CPUMINER Algo SHA-256d
./cpuminer -a sha256d -o http://127.0.0.1:62455 -O user:pass --threads=1 --coinbase-addr=t7vGHuMvy18cXSaXngCDcj6sVyaL643kQZ --coinbase-sig=OBTfx_SHA_NX --api-bind 127.0.0.1:4050 -R 5 --no-longpoll --cpu-affinity 8 -PD