How to mine coin with Equihash and Crytonight?
It's possible to solo CPU-mine with the node / wallet directly.
Choose mining algo with the '
setminingalgo' command
ID Proof-of-Work (PoW) Algo
--- ----------------------------
0. SCrypt
1. SHA256d
2. Yescrypt
3. Argon2d
4. X17
5. Lyra2REv2
6. EquiHash
7. CryptoNight
Start the built-in miner with the number of CPU cores you wish and on the algo you wish, with the '
setgenerate' command
(
Note: it does not makes sense to cpu-mine ASIC-centric algos like SHA256d and Scrypt)
setgenerate true <number of CPU cores> <pow_algo_id>
example for EquiHash:
bitmark-cli setminingalgo 6
bitmark-cli setgenerate true 4 6
example for CryptoNight:
bitmark-cli setminingalgo 7
bitmark-cli setgenerate true 4 7
Run the '
getmininginfo' command to confirm that your machine is mining
(note that '
genproclimit' is 1 [or more if you have more CPU cores], '
generate' is true and '
hashespersec' is some positive number) :
:~/.bitmark-dev$ bitmark-cli getmininginfo
{
"blocks" : 460602,
"currentblocksize" : 1000,
"currentblocktx" : 0,
"pow_algo_id" : 7,
"pow_algo" : "CRYPTONIGHT",
"reward_next" : 12.31830110,
"reward_max" : 14.80839550,
"hashrate_4max_reward" : 35000000000,
"pow_algo_id" : 7,
"pow_algo" : "CRYPTONIGHT",
"difficulty" : 732.02472980,
"sdifficulty" : 0.00009150,
"difficulty SCRYPT" : 29022057.67379002,
"difficulty SHA256D" : 132664872.35902712,
"difficulty YESCRYPT" : 50160.35085839,
"difficulty ARGON2" : 2380.03062244,
"difficulty X17" : 767227.32885169,
"difficulty LYRA2REv2" : 2533088.23251864,
"difficulty EQUIHASH" : 73.89027062,
"difficulty CRYPTONIGHT" : 732.02472980,
"errors" : "",
"genproclimit" : 1,
"networkhashps" : 144512540497318.71875000,
"pooledtx" : 0,
"testnet" : false,
"generate" : true,
"hashespersec" : 23
}