Post
Topic
Board Mining (Altcoins)
Re: Claymore's Dual Ethereum AMD+NVIDIA GPU Miner v11.5 (Windows/Linux)
by
j2james
on 16/03/2018, 11:32:18 UTC
Can I set the epools.txt (dpools.txt) files as an option in command line or in config.txt file? Because switching to another coin I need different alternative pools.

You can do it in bat file like I do it.

I have the following file structure for Claymore:

[Claymore 10.6]
[Claymore 11.5]
epools.txt
reboot.bat
start-mining.bat

[Claymore 10.6] and [Claymore 11.5] are folders where corresponded versions of Claymore are placed.

epools.txt
Code:
POOL: eth-eu1.nanopool.org:9999, WALLET: /rig1/user@gmail.com, PSW: x, WORKER: , ESM: 0, ALLPOOLS: 0
POOL: eth-eu2.nanopool.org:9999, WALLET: /rig1/user@gmail.com, PSW: x, WORKER: , ESM: 0, ALLPOOLS: 0
POOL: eth-us-east1.nanopool.org:9999, WALLET: /rig1/user@gmail.com, PSW: x, WORKER: , ESM: 0, ALLPOOLS: 0
POOL: eth-us-west1.nanopool.org:9999, WALLET: /rig1/user@gmail.com, PSW: x, WORKER: , ESM: 0, ALLPOOLS: 0
POOL: eth-asia1.nanopool.org:9999, WALLET: /rig1/user@gmail.com, PSW: x, WORKER: , ESM: 0, ALLPOOLS: 0

reboot.bat
Code:
shutdown /r /t 5 /f

start-mining.bat
Code:
@echo off

rem ********************************
rem *  wallet:                     *
rem *    private                   *
rem *    btc-trade                 *
rem *  pool:                       *
rem *    ethermine                 *
rem *    nanopool                  *
rem ********************************

rem ---------- SETUP DATA ----------

set claymore_path=Claymore 10.6
set claymore_params=-mport -3333 -minspeed 187 -r 1 -tt 30 -ttli 63 -tstop 65 -tstart 40
set wallet=private
set pool=nanopool

rem --------------------------------

setx GPU_FORCE_64BIT_PTR 0 > nul
setx GPU_MAX_HEAP_SIZE 100 > nul
setx GPU_USE_SYNC_OBJECTS 1 > nul
setx GPU_MAX_ALLOC_PERCENT 100 > nul
setx GPU_SINGLE_ALLOC_PERCENT 100 > nul

timeout /t 15

cls

if "%wallet%" == "btc-trade" set wallet_address=0x00000dec3e7a3743b14651d8e49a4564ee200000
if "%wallet%" == "private"   set wallet_address=0x000007517a8eFD4104Ba3c482F0B89692dA00000

powershell -command "(gc epools.txt) -replace '', '%wallet_address%' | Out-File -Encoding ascii '%claymore_path%\epools.txt'"

copy /Y reboot.bat "%claymore_path%\reboot.bat" > nul

cd %claymore_path%

@echo on

@if "%pool%" == "ethermine" goto :ETHERMINE

:NANOPOOL

EthDcrMiner64.exe -epool eth-eu1.nanopool.org:9999 -ewal %wallet_address%/rig1/user@gmail.com -epsw x %claymore_params%

@goto :END

:ETHERMINE

@rem EthDcrMiner64.exe -epool eu1.ethermine.org:4444 -ewal %wallet_address%/rig1 -epsw x %claymore_params%
EthDcrMiner64.exe -epool ssl://eu1.ethermine.org:5555 -ewal %wallet_address%/rig1 -epsw x %claymore_params%

:END

@pause

Of course something should be changed and you do not need something, but it can help you how it can be done.