Meta Miner: allows to add algo switching support to any stratum miner.
Does not add any extra mining fees.
Usage: mm.js [<config_file.json>] [options]
Adding algo switching support to *any* stratum miner
<config_file.json> is file name of config file to load before parsing options (mm.json by default)
Config file and options should define at least one pool and miner:
Options:
--pool=<pool> (-p): <pool> is in pool_address:pool_port format, where pool_port can be <port_number> or ssl<port_number>
--host=<hostname>: defines host that will be used for miner connections (localhost 127.0.0.1 by default)
--port=<number>: defines port that will be used for miner connections (3333 by default)
--user=<wallet> (-u): <wallet> to use as pool user login (will be taken from the first miner otherwise)
--pass=<miner_id>: <miner_id> to use as pool pass login (will be taken from the first miner otherwise)
--perf_<algo_class>=<hashrate> Sets hashrate for perf <algo_class> that is: cn/2, cn, cn/half, cn-pico, cn-lite, cn-heavy
--algo_min_time=<seconds> Sets <seconds> minimum time pool should keep our miner on one algo (0 default, set higher for starting miners)
--miner=<command_line> (-m): <command_line> to start smart miner that can report algo itself
--<algo>=<command_line>: <command_line> to start miner for <algo> that can not report it itself
--watchdog=<seconds> (-w): restart miner if is does not submit work for <seconds> (600 by default, 0 to disable)
--hashrate_watchdog=<percent>: restart miner if is hashrate dropped below <percent> value of of its expected hashrate (0 by default to disable)
--quiet (-q): do not show miner output during configuration and also less messages
--verbose (-v): show more messages
--debug: show pool and miner messages
--log=<file_name>: <file_name> of output log
--no-config-save: Do not save config file
--help (-help,-h,-?): Prints this help text
Check https://github.com/xmrig/xmrig-proxy/blob/master/doc/STRATUM_EXT.md#14-algorithm-names-and-variants for list of possible algo names.
{
"miner_port": 3333,
"pools": [
"gulf.moneroocean.stream:10001"
],
"algos": {
"cn/1": "./xmrig --config=config.json",
"cn/2": "./xmrig --config=config.json",
"cn/0": "./xmrig --config=config.json",
"cn/xtl": "./xmrig --config=config.json",
"cn/msr": "./xmrig --config=config.json",
"cn/xao": "./xmrig --config=config.json",
"cn/rto": "./xmrig --config=config.json",
"cn/half": "./xmrig --config=config.json",
"cn-lite/1": "./xmrig --config=config-lite.json",
"cn-lite/0": "./xmrig --config=config-lite.json",
"cn-heavy/0": "./xmrig --config=config-heavy.json",
"cn-heavy/xhv": "./xmrig --config=config-heavy.json",
"cn-heavy/tube": "./xmrig --config=config-heavy.json",
"cn-pico/trtl": "./xmrig --config=config-pico.json"
},
"algo_perf": {
"cn/2": 35,
"cn": 33.9,
"cn/half": 72.6,
"cn-pico": 490.7,
"cn-lite": 104.7,
"cn-heavy": 16.4
},
"user": "44qJYxdbuqSKarYnDSXB6KLbsH4yR65vpJe3ELLDii9i4ZgKpgQXZYR4AMJxBJbfbKZGWUxZU42QyZSsP4AyZZMbJBCrWr1",
"pass": "x",
"log_file": null,
"watchdog": 600,
"hashrate_watchdog": 0
}
-
Configure your miners to connect to the single localhost:3333 (non SSL/TLS) pool.
-
For best results separate xmr-stak CPU and GPU miners (by using --noCPU, --noAMD, --noNVIDIA options).
-
Prepare your miner config files that give the best performance for your hardware on cryptonight, cryptonight-lite, cryptonight-heavy and cryptonight-pico algorithm classes.
-
If you have several miners on one host use mm.js --port option to assign them to different ports.
-
Additional mm.js pools will be used as backup pools.
-
To rerun benchmark for specific algorithm class use --perf_<algo_class>=0 option.
Place mm.exe or mm.js (with nodejs installed) into unpacked miner directory either by:
-
Download and unpack the latest mm-vX.X.zip from https://github.com/MoneroOcean/meta-miner/releases
-
Download and install nodejs using https://nodejs.org/dist/v8.11.3/node-v8.11.3-x64.msi installator and download and unpack https://raw.githubusercontent.com/MoneroOcean/meta-miner/master/mm.js
-
Download and unpack the lastest xmrig-amd (https://github.com/xmrig/xmrig-amd/releases/download/v2.10.0/xmrig-amd-2.10.0-msvc-win64.zip).
-
Modify config.json file in xmrig-amd directory this way and adjust it for the best threads performance (out of scope of this guide):
- Set "url" to "localhost:3333"
- Set "user" to "44qJYxdbuqSKarYnDSXB6KLbsH4yR65vpJe3ELLDii9i4ZgKpgQXZYR4AMJxBJbfbKZGWUxZU42QyZSsP4AyZZMbJBCrWr1" (put your Monero address)
-
Copy config.json to config-lite.json, put "algo" to "cryptonight-lite/1" in config-lite.json and adjust it for the best threads performance (out of scope of this guide).
-
Copy config.json to config-heavy.json, put "algo" to "cryptonight-heavy/0" in config-heavy.json and adjust it for the best threads performance (out of scope of this guide).
-
Copy config.json to config-pico.json, put "algo" to "cryptonight-pico/trtl" in config-pico.json and adjust it for the best threads performance (out of scope of this guide).
-
Run Meta Miner (or use "node mm.js" instead of mm.exe):
mm.exe -p=gulf.moneroocean.stream:10001 -m="xmrig-amd.exe --config=config.json" -m="xmrig-amd.exe --config=config-heavy.json" -m="xmrig-amd.exe --config=config-lite.json" -m="xmrig-amd.exe --config=config-pico.json"
-
Download and unpack the lastest xmr-stak (https://github.com/fireice-uk/xmr-stak/releases/download/2.5.1/xmr-stak-win64.zip).
-
Configure xmr-stak this way (put your Monero address):
- Please enter the currency that you want to mine:
...
cryptonight_v8
- Pool address: e.g. pool.example.com:3333
localhost:3333
- Username (wallet address or pool login):
44qJYxdbuqSKarYnDSXB6KLbsH4yR65vpJe3ELLDii9i4ZgKpgQXZYR4AMJxBJbfbKZGWUxZU42QyZSsP4AyZZMbJBCrWr1
-
Enable hashrate output by setting "verbose_level" to 4 in config.txt so it can be collected by mm.js (also set "flush_stdout" to true for older xmr-stak versions).
-
Copy amd.txt to amd-lite.txt and amd-heavy.txt and adjust all of them for the best threads performance (out of scope of this guide).
-
Run Meta Miner (or use "node mm.js" instead of mm.exe):
mm.exe -p=gulf.moneroocean.stream:10001 --cn/1="xmr-stak.exe --noCPU --currency cryptonight_v8 --amd amd.txt" --cn/msr="xmr-stak.exe --noCPU --currency cryptonight_masari --amd amd.txt" --cn-lite/1="xmr-stak.exe --noCPU --currency cryptonight_lite_v7 --amd amd-lite.txt" --cn-heavy/0="xmr-stak.exe --noCPU --currency cryptonight_heavy --amd amd-heavy.txt" --cn-heavy/xhv="xmr-stak.exe --noCPU --currency cryptonight_haven --amd amd-heavy.txt" --cn-heavy/tube="xmr-stak.exe --noCPU --currency cryptonight_bittube2 --amd amd-heavy.txt"
- To run Meta Miner for xmr-stak CPU/GPU use this command:
mm.exe -p=gulf.moneroocean.stream:10001 --cn/1="xmr-stak.exe --currency cryptonight_v8 --cpu cpu.txt --amd amd.txt" --cn/msr="xmr-stak.exe --currency cryptonight_masari --cpu cpu.txt --amd amd.txt" --cn-lite/1="xmr-stak.exe --currency cryptonight_lite_v7 --cpu cpu-lite.txt --amd amd-lite.txt" --cn-heavy/0="xmr-stak.exe --currency cryptonight_heavy --cpu cpu-heavy.txt --amd amd-heavy.txt" --cn-heavy/xhv="xmr-stak.exe --currency cryptonight_haven --cpu cpu-heavy.txt --amd amd-heavy.txt" --cn-heavy/tube="xmr-stak.exe --currency cryptonight_bittube2 --cpu cpu-heavy.txt --amd amd-heavy.txt"
Get node and Meta Miner (mm.js) in the miner directory:
sudo apt-get update
sudo apt-get install -y nodejs-legacy
wget https://raw.githubusercontent.com/MoneroOcean/meta-miner/master/mm.js
chmod +x mm.js
- Get xmrig:
wget https://github.com/xmrig/xmrig-amd/releases/download/v2.10.0/xmrig-amd-2.10.0-xenial-x64.tar.gz
tar xf xmrig-2.10.0-xenial-amd64.tar.gz
cd xmrig-2.10.0/
- Prepare configs for different algorithms (put your Monero address):
sed -i 's/"url": *"[^"]*",/"url": "localhost:3333",/' config.json
sed -i 's/"user": *"[^"]*",/"user": "44qJYxdbuqSKarYnDSXB6KLbsH4yR65vpJe3ELLDii9i4ZgKpgQXZYR4AMJxBJbfbKZGWUxZU42QyZSsP4AyZZMbJBCrWr1",/' config.json
cp config.json config-heavy.json
cp config.json config-lite.json
sed -i 's/"algo": *"[^"]*",/"algo": "cryptonight-heavy\/0",/' config-heavy.json
sed -i 's/"algo": *"[^"]*",/"algo": "cryptonight-lite\/1",/' config-lite.json
sed -i 's/"algo": *"[^"]*",/"algo": "cryptonight-pico\/trtl",/' config-pico.json
- Run Meta Miner:
./mm.js -p=gulf.moneroocean.stream:10001 -m="./xmrig --config=config.json" -m="./xmrig --config=config-heavy.json" -m="./xmrig --config=config-lite.json" -m="./xmrig --config=config-pico.json"
- Configure xmr-stak this way (put your Monero address):
- Please enter the currency that you want to mine:
...
cryptonight_v8
- Pool address: e.g. pool.example.com:3333
localhost:3333
- Username (wallet address or pool login):
44qJYxdbuqSKarYnDSXB6KLbsH4yR65vpJe3ELLDii9i4ZgKpgQXZYR4AMJxBJbfbKZGWUxZU42QyZSsP4AyZZMbJBCrWr1
- Enable hashrate output so it can be collected by mm.js and disable output flush (for older xmr-stak versions):
sed -i 's/"verbose_level" : 3,/"verbose_level" : 4,/' config.txt
sed -i 's/"flush_stdout" : false,/"flush_stdout" : true,/' config.txt
- Prepare and adjust configs for different algorithms:
cp cpu.txt cpu-lite.txt
cp cpu.txt cpu-heavy.txt
- Run Meta Miner:
./mm.js -p=gulf.moneroocean.stream:10001 --cn/1="./bin/xmr-stak --currency cryptonight_v8 --cpu cpu.txt" --cn/msr="./bin/xmr-stak --currency cryptonight_masari --cpu cpu.txt" --cn-lite/1="./bin/xmr-stak --currency cryptonight_lite_v7 --cpu cpu-lite.txt" --cn-heavy/0="./bin/xmr-stak --currency cryptonight_heavy --cpu cpu-heavy.txt" --cn-heavy/xhv="./bin/xmr-stak --currency cryptonight_haven --cpu cpu-heavy.txt" --cn-heavy/tube="./bin/xmr-stak --currency cryptonight_bittube2 --cpu cpu-heavy.txt"
If you'd like to make a one time donation, the addresses are as follows:
- XMR -
44qJYxdbuqSKarYnDSXB6KLbsH4yR65vpJe3ELLDii9i4ZgKpgQXZYR4AMJxBJbfbKZGWUxZU42QyZSsP4AyZZMbJBCrWr1
- AEON -
WmsEg3RuUKCcEvFBtXcqRnGYfiqGJLP1FGBYiNMgrcdUjZ8iMcUn2tdcz59T89inWr9Vae4APBNf7Bg2DReFP5jr23SQqaDMT
- ETN -
etnkQMp3Hmsay2p7uxokuHRKANrMDNASwQjDUgFb5L2sDM3jqUkYQPKBkooQFHVWBzEaZVzfzrXoETX6RbMEvg4R4csxfRHLo1
- SUMO -
Sumoo1DGS7c9LEKZNipsiDEqRzaUB3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mAUVECsE9drafvY2hXUTJz6rW
- TRTL -
TRTLv2x2bac17cngo1r2wt3CaxN8ckoWHe2TX7dc8zW8Fc9dpmxAvhVX4u4zPjpv9WeALm2koBLF36REVvsLmeufZZ1Yx6uWkYG
- BTC -
3BzvMuLStA388kYZ9nudfm8L22937dSPS3
- BCH -
qrhww48p5s6zw9twhc7cujgwp7vym2k4vutem6f92p
- ETH -
0xCF8BABC074C487Ae17F9Ce0394eab492E6A35658
- LTC -
MCkjQo99VzoeZQ1piDzLDb4uqNSDRZpx55