Skip to content

Commit 7fcee87

Browse files
don't force miner eth account to lower case
1 parent 5b8d627 commit 7fcee87

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ MinerAcct=0x1234512345123451234512345123451234512345
3232
* You can also specify the pool mining address on the command line (-N). See below for all command line options.
3333
* If your mining pool supports the **stratum protocol**, change the `RPCPort=8586` line to `StratumPort=9192`. Consult with your mining pool for the actual port # to use.
3434
* For **Solo Mining**:
35-
* 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.)
35+
* Input an ETH account and associated private key.
3636
* You can specify the address and port of your node in the `.ini` file, or on the command line.
3737
* 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.
3838
* 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.
@@ -143,11 +143,11 @@ AcctPK=................................................................
143143
; Currently, no mining pools support self-assigned difficulty.
144144
MinutesPerShare=Pool
145145
146-
; The remaining settings in this section apply only to SOLO MINING:
147-
148146
; 0xBitcoin contract address. normally you will not change this.
149147
TokenContract=0xb6ed7644c69416d67b522e20bc294a9a9b405b31
150148
149+
; THE REMAINING SETTINGS IN THIS SECTION APPLY ONLY TO SOLO MINING:
150+
151151
; when your miner finds a solution, transactions will be submitted with this
152152
; amount of gas (gwei). You can change this setting 'on the fly' (without having
153153
; to restart the miner). All other setting changes require the miner to be restarted.
@@ -212,7 +212,7 @@ cmake -G "Visual Studio 12 2013 Win64" ..
212212

213213
### Building on Ubuntu
214214

215-
Ubuntu 16.04, OpenCL only (**for AMD cards**)
215+
This has only been verified to work with Ubuntu 16.04. OpenCL only (**for AMD cards**)
216216

217217
```bash
218218
sudo apt-get update

ethminer/MinerAux.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,6 @@ class MinerCLI
424424
}
425425

426426
m_userAcct = ProgOpt::Get("0xBitcoin", "MinerAcct");
427-
LowerCase(m_userAcct);
428427
u256 mAcctNum;
429428
try
430429
{
@@ -727,7 +726,7 @@ class MinerCLI
727726
}
728727
if (_opMode == OperationMode::Solo)
729728
{
730-
LogXY(1, y) << "Block #: " << f.currentBlock << " | Block time: " << elapsedSeconds(lastBlockTime)
729+
LogXY(1, y) << "Block #: " << f.currentBlock << " | Difficulty: " << _difficulty << " | Block time: " << elapsedSeconds(lastBlockTime)
731730
<< " | Solutions: " << f.getSolutionStats().getAccepts() << " | Tokens: " << tokenBalance << " ";
732731
}
733732
else
@@ -912,7 +911,10 @@ class MinerCLI
912911
calcFinalTarget(f, _target, difficulty);
913912
}
914913
else
914+
{
915915
workRPC.getWorkSolo(_challenge, _target);
916+
difficulty = diffFromTarget(_target);
917+
}
916918

917919
lastGetWork.restart();
918920

tokenminer.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ RPCPort=8586
3333

3434
; POOL MINING: Your ETH account, to which payouts will be made. THE PRIVATE
3535
; KEY IS NOT REQUIRED. Note the acct should start with 0x.
36+
;
3637
; SOLO MINING: Your ETH account and private key. Note the PK does NOT start
3738
; with 0x. Mining rewards will be deposited to this account. Transaction
3839
; fees will be DRAWN from this account. Make sure you have enough funds!!

0 commit comments

Comments
 (0)