forked from sebseb7/cryptonote-proxy
-
Notifications
You must be signed in to change notification settings - Fork 4
Multi Algo switching setup using SRBMiner
Emrah BAŞKAYA edited this page Sep 8, 2018
·
5 revisions
Crypronote switching relay proxy, along with same algo coin swithching on any miner and pool allows multi-algo switching using existing and in development stratum protocols on any pool. So far, only SRBMiner and XMRig CPU support this type of switching.
- SRBMiner can switch to all its supported algos, although with a miner-restart.
- XMRig CPU can instantly switch to certain algos depending on the initial algo selected in its configuration.
- See Basic Configuration Guide for Switching Relay Proxy to get a general idea about configuration.
- Download SRBMiner 1.6.7+
- Go to SRBMiner's directory
- Edit
pools-algoswitch.txt
in SRBMiner's directory to make it look like the following-
127.0.0.1
ip is assuming proxy is running at the same machine as the miner, but this does not have to be the case, in case the proxy is running on another computer on your network, please provide the correct IP! -
"wallet":"multialgo"
is setting the miner to use coins defined in proxy's configuration, for the user namedmultialgo
. -
"password":"mysuperrig"
is used to define your worker's name. - Since there's only one "pool" defined, be sure you don't have a comma (
,
) at the end of the pool setting.
-
- Go to Proxy's directory.
- If you do not already have a
config.json
file, renameconfig.json_example
toconfig.json
. - We'll edit the config.json, by adding a user called
multialgo
: - Now we'll add a coin, you can copy one of the coins we have created in the basic configuration tutorial:
- You'll realise that we added two more properties, compared to the basic configuration:
-
algo
tells the proxy what type of PoW algo the coin uses. The possible algo names are listed here.algo
is mandatory for different-algo coin switching. -
hashrate
tells the proxy the performance expected from this algo.hashrate
is optional, but it's needed when you want to auto-switch between coins with the auto-profit switcher and also needed to correctly view the expected mining rate. If you do not provide a proper hashrate in config, it will try to get it from the miner. Hashrate in config has priority over miner declated hashrates, as multiple miners can connect to a single user with different hashrates.
-
- You'll realise that we added two more properties, compared to the basic configuration:
- Now add another coin with a different algo:
- You'll realize that the hashrate is slightly different.
-
Go back to SRBMiner's directory
- We'll edit the starting batch file to suit our proxy configuration.
- Edit
start-algo-switching.bat
in SRB directory and make it look like:- This is so that miner starts with the first coin in list by default, so you do not lose time!
- Run the proxy, and in a browser, type your proxy's IP and web port to see if the configuration was succesful-You should be seeing something similar to this after you select
multialgo
user: - If you see your configuration working, you can start SRBMiner.
Here are the resulting configuration texts for your copy/paste pleasure. These are only the relevant parts, do not replace the whole file.
"multialgo": [
{
"symbol":"BitTubeOfficial",
"algo":"cn-heavy/tube",
"hashrate":8000,
"name":"youraddress.customdifficulty",
"host":"mining.bit.tube",
"port":"17777",
"url":"https://mining.bit.tube/",
"api":"https://mining.bit.tube/api/",
"ticker": {
"marketname": "btc-tube"
}
},
{
"symbol":"Haven",
"algo": "cn-heavy/xhv",
"hashrate":8300,
"name": "youraddress.customdifficulty",
"host":"haven.ingest.cryptoknight.cc",
"port":"5831",
"url":"https://cryptoknight.cc/haven/",
"api":"https://cryptoknight.cc/rpc/haven/",
"ticker": {
"marketname":"btc-xhv"
}
}
]
{
"pools" :
[{"pool" : "127.0.0.1:2349", "wallet" : "multialgo", "password" : "mysuperrig"}]
}
SRBMiner-CN.exe --config Config\config-bittubev2.txt --pools pools-algoswitch.txt --logfile log-algo-switching.txt --usealgoswitching
Cryptonote Switching Relay Proxy encourages use of XMRig standard names, but you can also use SRBMiners's own algo names in the confi uration of the proxy. Your specific coin name may not be listed here, but if you know the correct algorhythm, everything should work OK.
Algo Name | Example Coin(s) | Notes |
---|---|---|
cryptonight/0 | MoneroClassic | Original Cryptonight -ASIC friendly, Monero PoW |
cryptonight/1 | Monero | Also known as monero7 and CryptoNightV7 |
cryptonight/xtl | Stellite | |
cryptonight/msr | Masari | Also known as CN-fast |
cryptonight/xao | Alloy | |
cryptonight/rto | Arto | |
cryptonight-lite/0 | N/A | Original/old CryptoNight-Lite |
cryptonight-lite/1 | Aeon | |
cryptonight-lite/ipbc | N/A | Old Bittube Algo, no longer in use |
cryptonight-heavy | Loki / Ryo | |
cryptonight-heavy/xhv | Haven / ItaloCoin | |
cryptonight-heavy/tube | Bittube / IPBC | |
cryptonight/b2n | B2N | |
cryptonight/mkt | MarketCash | |
cryptonight/mox | Red |