Skip to content

Commit 71b007a

Browse files
tweaks for new release
1 parent bc9cb13 commit 71b007a

File tree

6 files changed

+38
-34
lines changed

6 files changed

+38
-34
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# cmake global
22
cmake_minimum_required(VERSION 2.8.12)
33

4-
set(PROJECT_VERSION "2.1.8")
4+
set(PROJECT_VERSION "2.1.9")
55
if (${CMAKE_VERSION} VERSION_GREATER 3.0)
66
cmake_policy(SET CMP0042 OLD) # fix MACOSX_RPATH
77
cmake_policy(SET CMP0048 NEW) # allow VERSION argument in project()

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ This page describes the miner for **0xBitcoin**. For the regular ethereum miner
55

66
This is a fork of my MVis-ethminer program, which was a fork of Genoil's ethminer-0.9.41-genoil-1.x.x.
77

8-
* This miner is specifically designed for AMD GPUs, but seems to work well with NVidia devices as well.
8+
* This miner should work with any GPU that supports OpenCL, ie. pretty much all AMDs and most NVidia.
99
* Windows binaries can be downloaded from the [Releases](https://github.com/mining-visualizer/MVis-tokenminer/releases) page, or you can build from source (see below).
10-
* For Linux, the only option at present is to build from source. See the instructions below.
10+
* For Linux, the only option at present is to build from source. See the instructions below. (Note: there are currently a few compile errors you will have to deal with).
1111
* This miner supports both pool mining and solo mining. If you want to mine solo, you either need to run your own node, or use a public one like the ones Infura provides.
1212
* When in pool mining mode, a user configurable dev fee is in effect. It defaults to 2%. See the Donations section below for instructions to change this.
1313

1414

1515
### Installation
1616

1717
* Unzip the [download package](https://github.com/mining-visualizer/MVis-tokenminer/releases) anywhere you like.
18-
* Move `tokenminer.ini` to `C:\Users\[USER]\AppData\Local\tokenminer` on Windows, or `$HOME/.config/tokenminer` on Linux. If that folder path does not exist, you will need to create it manually.
19-
* Open up `tokenminer.ini` using any text editor.
18+
* Open up `tokenminer.ini` using any text editor and set the following configuration items:
2019
* For POOL MINING, the main thing you need to specify in the .INI file is your ETH account address to which rewards will be paid out. Look for the line that starts with `MinerAcct=`. You can also specify the pool mining address in the `[Node]` section, or you can do that on the command line (-N). See below for all command line options.
2120
* For SOLO MINING:
2221
* Input an ETH account and associated private key. (Sorry about making you enter it in plain text format. Make sure it is a 'throw away' account with only the bare minimum amount of money.)
2322
* You can specify the address and port of your node in the `.ini` file, or on the command line.
2423
* You can enable gas price bidding. (see comments in the file). Note that enabling this feature does not guarantee that you will win every bid. Network latency will sometimes result in failed transactions, even if you 'out-bid' the other transaction.
25-
* Windows Only: download and install **both** the [VC 2013 Redistributable](https://www.microsoft.com/en-ca/download/details.aspx?id=40784) and the [VC 2015 Redistributable](https://www.microsoft.com/en-ca/download/details.aspx?id=48145)
26-
* Double-click on the file `list-devices.bat` that is located in the tokenminer folder of the download package. Examine the screen output and verify your GPU's are recognized. Pay special attention to the PlatformID. If it is anything other than 0, you will need to edit the `start-mining.bat` file and change the `--opencl-platform <n>` argument.
24+
* You can leave the .INI file in the executable folder, or you can move it to `C:\Users\[USER]\AppData\Local\tokenminer` on Windows, or `$HOME/.config/tokenminer` on Linux. If that folder path does not exist, you will need to create it manually. If for some reason that file exists at both locations, the one in the executable folder will take precedence.
25+
* WINDOWS ONLY: download and install **both** the [VC 2013 Redistributable](https://www.microsoft.com/en-ca/download/details.aspx?id=40784) and the [VC 2015 Redistributable](https://www.microsoft.com/en-ca/download/details.aspx?id=48145)
26+
* Double-click on the file `list-devices.bat`. Examine the screen output and verify your GPU's are recognized. Pay special attention to the PlatformID. If it is anything other than 0, you will need to edit the `start-mining.bat` file and change the `--opencl-platform <n>` argument.
2727
* Start POOL MINING by double-clicking on `start-mining.bat`.
2828
* Start SOLO MINING with `tokenminer.exe -S -G`. This assumes you've specified the node address in the .INI file.
2929
* **COOLING**: Please note that MVis-tokenminer does not have any features to set fan speeds or regulate cooling, other than shutting down if things get too hot. Usually the AMD drivers do a pretty good job in that regard, but sometimes they don't. It is your responsibility to monitor your fan speeds and GPU temperatures. If the AMD drivers aren't setting fan speeds high enough, you may need to use a 3rd part product, like Speedfan or Afterburner.
@@ -64,9 +64,10 @@ Node configuration:
6464
--cl-extragpu-mem <n> Set the memory (in MB) you believe your GPU requires for stuff other than mining. default: 0
6565
6666
Miscellaneous Options:
67-
--config <FileSpec> - Full path to an INI file containing program options. Windows default: %LocalAppData%/tokenminer/tokenminer.ini
68-
Linux default: $HOME/.config/tokenminer/tokenminer.ini. If this option is specified, it must appear before
69-
all others.
67+
--config <FileSpec> - Full path to an INI file containing program options. Default location is 1) the executable folder, or
68+
if not there, then in 2) %LocalAppData%/tokenminer/tokenminer.ini (Windows) or
69+
$HOME/.config/tokenminer/tokenminer.ini (Linux). If this option is specified, it must appear
70+
before all others.
7071
7172
General Options:
7273
-V,--version Show the version and exit.

ethminer/MinerAux.h

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,21 @@ class MinerCLI
415415
LogS << "No miner type specfied. Please include either -C (CPU mining) or -G (OpenCL mining) on the command line";
416416
exit(-1);
417417
}
418+
419+
// list devices
420+
if (m_shouldListDevices)
421+
{
422+
if (m_minerType == MinerType::CL || m_minerType == MinerType::Mixed)
423+
EthashGPUMiner::listDevices();
424+
#if ETH_ETHASHCUDA
425+
if (m_minerType == MinerType::CUDA || m_minerType == MinerType::Mixed)
426+
EthashCUDAMiner::listDevices();
427+
#endif
428+
if (m_minerType == MinerType::CPU)
429+
LogS << "--list-devices should be combined with GPU mining flag (-G for OpenCL or -U for CUDA)";
430+
exit(0);
431+
}
432+
418433
string mAcct = ProgOpt::Get("0xBitcoin", "MinerAcct");
419434
LowerCase(mAcct);
420435
u256 mAcctNum;
@@ -458,20 +473,6 @@ class MinerCLI
458473
LogD << " ";
459474
LogD << "--- Program Start ---";
460475

461-
// list devices
462-
if (m_shouldListDevices)
463-
{
464-
if (m_minerType == MinerType::CL || m_minerType == MinerType::Mixed)
465-
EthashGPUMiner::listDevices();
466-
#if ETH_ETHASHCUDA
467-
if (m_minerType == MinerType::CUDA || m_minerType == MinerType::Mixed)
468-
EthashCUDAMiner::listDevices();
469-
#endif
470-
if (m_minerType == MinerType::CPU)
471-
LogS << "--list-devices should be combined with GPU mining flag (-G for OpenCL or -U for CUDA)";
472-
exit(0);
473-
}
474-
475476
if (m_opMode == OperationMode::None)
476477
{
477478
LogS << "Operation mode not specfied. Please include either -S (solo mining) or -P (pool mining) on the command line";
@@ -595,9 +596,10 @@ class MinerCLI
595596
<< " --cl-extragpu-mem <n> Set the memory (in MB) you believe your GPU requires for stuff other than mining. default: 0" << endl
596597
<< endl
597598
<< " Miscellaneous Options:" << endl
598-
<< " --config <FileSpec> - Full path to an INI file containing program options. Windows default: %LocalAppData%/tokenminer/tokenminer.ini " << endl
599-
<< " Linux default: $HOME/.config/tokenminer/tokenminer.ini. If this option is specified, it must appear before " << endl
600-
<< " all others." << endl
599+
<< " --config <FileSpec> - Full path to an INI file containing program options. Default location is 1) the executable folder, or " << endl
600+
<< " if not there, then in 2) %LocalAppData%/tokenminer/tokenminer.ini (Windows) or " << endl
601+
<< " $HOME/.config/tokenminer/tokenminer.ini (Linux). If this option is specified, it must appear " << endl
602+
<< " before all others. " << endl
601603
;
602604
} // streamHelp
603605

libethcore/EthashGPUMiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ bool EthashGPUMiner::configureGPU(
272272
)
273273
)
274274
{
275-
LogB << "No GPU device with sufficient memory was found. Can't GPU mine. Remove the -G argument";
275+
LogB << "No GPU device with sufficient memory was found. You may need to change the --opencl-platform argument to 1.";
276276
return false;
277277
}
278278
return true;

release/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ IF ERRORLEVEL 1 GOTO ERROR
1717

1818

1919
REM Copy tokenminer.ini and Readme file
20-
copy "..\tokenminer.ini" stage
20+
copy "..\tokenminer.ini" stage\tokenminer
2121
copy "..\Readme.md" stage
2222

2323
REM Copy binaries

tokenminer.ini

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@
1717
; Host=https://mainnet.infura.io/your_api_key
1818
; RPCPort=8545
1919

20-
Host=
21-
RPCPort=
20+
; Host=
21+
; RPCPort=
2222

2323
;--------------------------------------------------------
2424
[Node2]
2525

2626
; Secondary (failover) node/mining pool, if you have one. Default is disabled.
27-
;Host=http://your_failover_mining_pool.com
28-
;RPCPort=8586
27+
28+
; Host=http://your_failover_mining_pool.com
29+
; RPCPort=8586
2930

3031
;--------------------------------------------------------
3132
[0xBitcoin]
@@ -45,7 +46,7 @@ AcctPK=................................................................
4546
; Desired average minutes between shares. Defaults to 2. Miner will
4647
; auto-adjust difficulty based on your hash rate. You can also specify
4748
; 'Pool' to use the difficulty assigned by your mining pool.
48-
MinutesPerShare=
49+
; MinutesPerShare=2
4950

5051
; The remaining settings in this section apply only to SOLO MINING:
5152

0 commit comments

Comments
 (0)