Skip to content

Commit d5e3465

Browse files
committed
2 parents 7fa0dff + f18cca8 commit d5e3465

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ This is a fork of my MVis-ethminer program, which was a fork of Genoil's ethmine
1515
### Installation
1616

1717
* Unzip the [download package](https://github.com/mining-visualizer/MVis-tokenminer/releases) anywhere you like.
18-
* Move `tokenminer.ini` to `%LocalAppData%/tokenminer` on Windows, or `$HOME/.config/tokenminer` on Linux. If that folder path does not exist, you will need to create it manually.
19-
* 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. You can also specify the pool mining address, or you can do that on the command line (-N)
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.
20+
* 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.
2021
* For SOLO MINING:
2122
* 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.)
2223
* You can specify the address and port of your node in the `.ini` file, or on the command line.
2324
* 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.
2425
* 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)
2526
* Linux Only: Open the text file INSTALL-LINUX and follow the directions contained therein.
26-
* Run `tokenminer.exe --list-devices -G`. Verify your GPU's are recognized. Pay special attention to the PlatformID. If it is anything other than 0, you will need to add `--opencl-platform <n>` to your command line.
27+
* Open a command prompt in the folder containing tokenminer.exe and type `tokenminer.exe --list-devices -G`. Verify your GPU's are recognized. Pay special attention to the PlatformID. If it is anything other than 0, you will need to add `--opencl-platform <n>` to your command line.
2728
* Start POOL MINING with `tokenminer.exe -P -G`. This assumes you've specified the pool mining address in the .INI file. You could also specify the mining pool on the command line. For instance, `tokenminer.exe -P -G -N http://your_mining_pool.com:8586` (all one line)
2829
* Start SOLO MINING with `tokenminer.exe -S -G`. This assumes you've specified the node address in the .INI file.
2930

ethminer/FarmClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class FarmClient : public jsonrpc::Client
202202
m_lastSolution.restart();
203203
t.nonce = m_txNonce;
204204
t.receiveAddress = toAddress(m_tokenContract);
205-
t.gas = u256(130000);
205+
t.gas = u256(200000);
206206
ProgOpt::Load("");
207207
m_startGas = atoi(ProgOpt::Get("0xBitcoin", "GasPrice").c_str());
208208
m_maxGas = atoi(ProgOpt::Get("0xBitcoin", "MaxGasPrice").c_str());

ethminer/MinerAux.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,21 +820,20 @@ class MinerCLI
820820
if (_challenge != challenge)
821821
{
822822
// when queried for the most recent challenge, infura nodes will occasionally respond with the
823-
// previous one. this only applies to solo mining, but doesn't hurt to do it for pool mining.
823+
// previous one. this only applies to solo mining. when pool mining, always use what the pool gives us.
824824
bool seenBefore = false;
825825
for (bytes c : recentChallenges)
826826
seenBefore = (seenBefore || (c == _challenge));
827-
if (!seenBefore)
827+
if (!seenBefore || m_opMode == OperationMode::Pool)
828828
{
829829
recentChallenges.push_front(_challenge);
830830
if (recentChallenges.size() > 5)
831831
recentChallenges.pop_back();
832832
challenge = _challenge;
833833
target = _target;
834-
LogS << "New challenge : " << toHex(_challenge).substr(0, 8);
834+
LogB << "New challenge : " << toHex(_challenge).substr(0, 8);
835835
f.setWork_token(challenge, target);
836836
workRPC.setChallenge(challenge);
837-
838837
}
839838
}
840839
if (_target != target)

0 commit comments

Comments
 (0)