Noel Maersk
a3f9b24c69
core: set default algorithm for when neither --algorithm nor --nfactor are provided.
11 years ago
Noel Maersk
c6a27709f8
core: use global algorithm structure instead of opt_nfactor.
...
Also squashed:
config: add log messages to set_algo() and set_nfactor().
algorithm: use set_algorithm_nfactor() when setting default nfactor in set_algorithm().
Otherwise algorithm->n defaults to 0.
P.S. Did I already mention how this could have been C++?..
11 years ago
Noel Maersk
a0c52bf67c
config: introduce set_nfactor() and use it to call set_algorithm_nfactor().
...
Had two bugs:
1. Will not compile due to unknown algorithm_t size.
2. nfactor is set to 0 (bad calling, fix later).
So squashed two commits:
1. algorithm: move algorithm_t definition to header.
2. config: if --nfactor is specified, properly set algorithm->nfactor.
11 years ago
Noel Maersk
92b7770212
config: add `--algorithm` option and documentation.
...
Doc in `doc/configuration.md` (has to be started sometime, no?).
Configuration function has to be lamely-named set_algo(), because
set_algorithm() is already declared in algorithm.h (prevent namespace
conflict).
algorithm has to be added as global variable due to the way the
callback is done (by CCAN/opt, which in itself is nice).
This can be cleaned up significantly by (at least) introducing a
global configuration struct, but there is no reason to do it now
just for this - better a wholesale manana.
11 years ago
phm
66f508d01f
Added support for AnimeCoin
11 years ago
Noel Maersk
ded4452316
ui: check for opt_incognito is Display settings menu.
11 years ago
Noel Maersk
9c0f912434
core: remove ifdef from opt_compact and opt_incognito declaration.
11 years ago
phm
8fe1b860c5
Added support for MyriadCoin groestl algorithm.
11 years ago
Noel Maersk
428061e416
pool: display URL instead of "Pool N" if no poolname provided.
...
This works since get_pool_name() in pool.c checks if an empty string is
provided, and uses the URL instead if so.
11 years ago
Noel Maersk
d58de45c0e
pool: use get_pool_name() where appropriate.
11 years ago
Noel Maersk
0a4f71882c
pool: use get_pool_user().
11 years ago
Noel Maersk
8e4fb3c554
pool: abstract get_pool_name()
...
The introduction of get_pool_name() warrants a separate function
so opt_incognito does not litter everywhere.
11 years ago
Noel Maersk
0d562ffbf5
core: use opt_incognito in a few more applog() places.
11 years ago
Noel Maersk
888fab437f
ui: <incognito> pool name in incognito mode, too.
...
Ah, what the heck. If it's a pool-related, we'll just ask.
11 years ago
Noel Maersk
a511266959
doc: minor fix for --help message on `--incognito`.
11 years ago
Noel Maersk
5a8f84b49b
ui: allow switching to incognito mode through ncurses interface.
11 years ago
Noel Maersk
d78f372712
core: undo some of previous two commits and andd conditionals to display user name as `<incognito>` instead.
...
Fix whitspace (squashed).
11 years ago
Noel Maersk
2561295e3d
log: do not set poolname in log in incognito mode.
11 years ago
Noel Maersk
f737992f41
core: introduce `--incognito` + minimal revision of `--compact`.
...
`--incognito` is for sharing output without disclosing login
information.
NCurses interface code, as stated before, is pretty lousy.
11 years ago
Zuikkis
2b9a588e25
Update sgminer.c & scrypt.c
...
Default opt_nfactor was 11 instead of 10, my typo.. :) Sorry.
scrypt_1024_1_1_256_sp renamed to scrypt_n_1_1_256_sp
11 years ago
phm
bc05151734
Corrected target in nonce test.
11 years ago
Teemu Suikki
73bb1504e9
Scrypt-nfactor support!
...
Added new configuration parameter "nfactor", which defaults to 10 (normal scrypt).
Use 11 for vertcoin.
Kernels modified accordingly.
11 years ago
phm
d9fc7ccb4e
Added support for QubitCoin
11 years ago
phm
c336a8399a
Added support for INKcoin.
11 years ago
Noel Maersk
a38f01c9a2
misc: explain gpu-threads comment FIXME.
11 years ago
phm
e92d5ebf6e
Added support for InkCoin
11 years ago
phm
60a0e00243
Added support for quarkcoin difficulty calculation.
11 years ago
Spencer Shimko
45a16f1ac2
Fixup --help on intensities.
...
Current help contains conflict statements regarding intensity
priorities.
Per commit d11df698d141988491494aa1f29c7d3595e9712b:
- rawintensity overrides both xintensity and intensity
- xintensity overrides intensity
11 years ago
phm
a17ec112f6
Added support for Quark mining.
11 years ago
phm
9585d2a8e6
Added support for DarkCoin kernel. Modified stats display to handle low difficulty values.
11 years ago
Con Kolivas
a825524325
We shouldn't block on no work situations directly from the getwork scheduler itself.
11 years ago
Con Kolivas
b9b3abe264
Make the pthread cond wait in the getwork scheduler a timed wait in case we miss a wakeup.
11 years ago
Con Kolivas
7134cd7050
Add debug output when get_work() is blocked for an extended period and add grace time to the device's last valid work to prevent false positives for device failure.
11 years ago
Con Kolivas
26c4be818a
Show device info in noffset nonce share above target message.
11 years ago
Con Kolivas
117c032b92
Slowly remove work even if it's not being used to keep the getwork counter incrementing even if work is not used and as a test that pools are still working.
11 years ago
Con Kolivas
5dad99caf6
Give device info with share above target message.
11 years ago
Con Kolivas
b5abf68938
Always show the stratum share lag time in debug mode.
11 years ago
Con Kolivas
9c59fe2c31
Add stratum share response lag time to verbose output if it's greater than 1 second.
11 years ago
Con Kolivas
7731806417
Add stratum share submission lag time to verbose information if it's over 1 second.
11 years ago
Con Kolivas
95ac0c4356
Export the flush_queue function for use by drivers.
11 years ago
Con Kolivas
ab805ec146
Remove wrong goto
11 years ago
Con Kolivas
d5d34f2168
Remove the unqueued work reference when we discard work from get queued as well.
11 years ago
Con Kolivas
ee7fb11cfb
Wake the global work scheduler when we remove a work item from the unqueued work pointer.
11 years ago
Con Kolivas
2cea7ce439
Discard work that is stale in the get_queued() function, returning NULL instead.
11 years ago
ckolivas
8592226ad2
Add a get and queue helper work function.
11 years ago
Con Kolivas
011512561a
Add a call to a driver specific zero stats function when zero stats is called to allow each driver to reset its own stats as well if desired.
11 years ago
Con Kolivas
dc767487e2
Fix displayed diff when solo mining at >2^32 diff.
11 years ago
Con Kolivas
c31de2601b
Store when the last getwork was retrieved and display it in the API summary.
11 years ago
ckolivas
d1e2bfaf7f
Make submit_tested_work return a bool about whether it meets the work target or not.
11 years ago
ckolivas
a58ef1b8c7
Provide a helper function for determining dev runtime and use it in the hashmeters used.
11 years ago