Post
Topic
Board Mining (Altcoins)
Re: PhoenixMiner 2.9e: fastest Ethereum/Ethash miner with lowest devfee (Windows)
by
pinamalina
on 05/05/2018, 14:11:00 UTC
Not looking for the failover purpose, instead I'm looking to split up the total mining durations into two chunks, 1) mining using first wallet address & when 60 mins is reached flip over to the wallet 2 and mine for x time and back. Sort of like a dev fee idea. Or there maybe a better way to achieve the same thing?

anyone expert in terms of batch file configuration? I'm attempting to use the following windows cmd commands to switch between different wallet address using one single batch file. However it seems to me that once the first phoenix process has started, the timeout command following is no longer working. Any suggestions as to why?

:wallet1
echo Starting Mining Process
setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100

PhoenixMiner.exe -pool us2.ethermine.org:4444 -pool2 us1.ethermine.org:14444 -wal -gpus 1234567 -pass x -logfile *
timeout /t 60 <---stopped here>
taskkill /im PhoenixMiner.exe /f /t
goto wallet2

:wallet2
echo Starting Mining Process
setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100

PhoenixMiner.exe -pool us2.ethermine.org:4444 -pool2 us1.ethermine.org:14444 -wal -gpus 1234567 -pass x -logfile *
timeout /t 60
taskkill /im PhoenixMiner.exe /f /t
goto wallet1

you just need one bat file for a failover....

PhoenixMiner.exe -pool us2.ethermine.org:4444 -pool2 us1.ethermine.org:14444 -wal -wal2 -gpus 1234567 -pass x -pass2 x -logfile *



-pool2   Failover ethash pool address. Same as -pool but for the failover pool
  -wal2 Failover ethash wallet (if missing -wal will be used for the failover pool too)
  -pass2 Failover ethash password (if missing -pass will be used for the failover pool too)
  -worker2 Failover ethash worker name (if missing -worker will be used for the failover pool too)
  -proto2 Failover ethash stratum protocol (if missing -proto will be used for the failover pool too)
  -coin2 Failover devfee Ethash coin (if missing -coin will be used for the failover pool too)
  -stales2 Submit stales to the failover pool: 1 - yes (default), 0 - no

If you have more gpus the optimal way mining into two wallets is to run two instances of PhoenixMiner splitting half gpus to first instance and the second half to second instance.
By hourly restarting the miner you are loosing mining time and damaging the hw due to temperature drop during the switch.

In order to do what you intended to do with the batch approach you need to create a new proces using start comand.

Example:

Code:
start "Launch PH" /D "c:\phoenixminer" phoenixminer.exe config.txt


Example:

Code:
start "Launch PH" /D "c:\phoenixminer" phoenixminer.exe config.txt
Hi, you can explain this a little more detailed what you mean by it or something we can try.

The more elegant solution would be to simply mine to first wallet and then transfer half of the mined coins to the second wallet.
The batch solution if you insist:

Code:
setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100

:wallet1
echo Starting Mining Process for first wallet
:: Update the "C:\Mining\PhoenixMiner" with the actual full path of your miner location
start "Phoenix Miner for Wallet #1" /D "C:\Mining\PhoenixMiner" PhoenixMiner.exe -pool us2.ethermine.org:4444 -pool2 us1.ethermine.org:14444 -wal -gpus 1234567 -pass x -logfile *
timeout /t 60
taskkill /im PhoenixMiner.exe /f /t
goto wallet2

:wallet2
echo Starting Mining Process for second wallet

:: Update the "C:\Mining\PhoenixMiner" with the actual full path of your miner location
start "Phoenix Miner for Wallet #2" /D "C:\Mining\PhoenixMiner" PhoenixMiner.exe -pool us2.ethermine.org:4444 -pool2 us1.ethermine.org:14444 -wal -gpus 1234567 -pass x -logfile *
timeout /t 60
taskkill /im PhoenixMiner.exe /f /t
goto wallet1