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
Con Kolivas
3323f9f9bf
Generically increase the queue if we are mining on a pool without local work generation each time we run out of work.
11 years ago
Con Kolivas
5167962840
Change new block detection message since longpoll is rarely relevant today.
11 years ago
Con Kolivas
1ad3285f56
Use unused line at the top of the log window which often gets stuck unchanging.
11 years ago
Con Kolivas
cc2aa215a8
Clear pool work on a stratum reconnect message.
11 years ago
Kano
faf63ec036
Modify thread naming to make them easier to identify
11 years ago
Noel Maersk
87102ecd07
pool: additional debug logging for stratum pools.
...
Might help in trying to resove issue 88.
11 years ago
Noel Maersk
dab1d35efd
log: add LOG_INFO message about suspended stratum to stratum_rthread().
...
Also a minor style/syntax fix while searching for why pools don't
restart if gone "dead". A pool is considered "dead" if pool->idle
is true.
11 years ago
Noel Maersk
c09a5b4406
core: remove num_processors (unused).
11 years ago
Noel Maersk
3f5485ae43
misc: clarify comments in switch_pools().
11 years ago
Noel Maersk
8043af5ec7
core: write gpu-threads to config when using ncurses menu.
11 years ago
Noel Maersk
b5b20c19f6
core: make errors on reading experimental options from config less scary.
...
The config file is written poorly: first off, not all available options
are written (they have to be written manually, since there's no struct
enumeration); then, default values are not commented out.
11 years ago
Noel Maersk
8dd1c2d4af
core: correctly parse boolean configuration values.
...
Also, with style.
11 years ago
Noel Maersk
0e8ec8d060
pools: Allow disabling pool even if it's the last one enabled.
...
Pool state machine is incomplete, and enabled_pools is not increased if
pool state is not explicitly set to "enabled" in config. However,
there is no reason why the user should not be allowed to disable
all pools.
enabled_pools is a bookkeeping variable, and bookkeeping is cumbersome.
Rather than trying to fix this regression, get rid of another place
where enabled_pools is used.
Closes https://github.com/veox/sgminer/issues/75
11 years ago
Noel Maersk
3f34049302
core: change default scantime/expiry to 7/28 (back to 1:4 ratio).
...
Previous defaults (before 10/30) were optimised for Bitcoin that has
a much higher average block time. Optimise for Litecoin (currently
largest scrypt network.)
Not pushing it further down so as not to scare people with dropping
hashrates.
Thanks to MissedOutOnBTC @ freenode for testing.
Closes https://github.com/veox/sgminer/issues/22
11 years ago
Noel Maersk
f2f2bcedc7
build: use git version if available.
...
Borrowed from Arch Linux pacman:
https://projects.archlinux.org/pacman.git/tree/
11 years ago
Noel Maersk
52e9df8d78
help: temp-target and temp-overheat had identical descriptions that do not describe what they actually do.
...
Closes https://github.com/veox/sgminer/issues/65
11 years ago
Brandon Tuomela
bda1070259
kernel: add psw kernel.
11 years ago
Noel Maersk
c23522036d
ui: Don't display pool list N times if N pools are set hidden in config.
...
Also, add some comments do #endif's.
11 years ago
Noel Maersk
9f99474e69
pools: Revert back to "Pool N" default pool name, and use json_array_index to set it.
...
Closes https://github.com/veox/sgminer/issues/51
Using j_a_i allows us to get rid of accounting vars like total_poolnames,
and pool names don't get mixed up if they're not specified for some pools.
It would still be desirable to show the URL as a pool name if poolname is not
set.
11 years ago
Noel Maersk
ed61c38ec8
build/mingw: style fixup after tonobitc merge.
...
Use `#defined(...)` instead of `#defined ...`.
Remove comments about issues - anyone removing those lines can check blame
to see why they were added.
Add tonobitc to AUTHORS.md.
11 years ago
tonobitc
32b13ccb46
fix for mingw-w64
11 years ago
tonobitc
d56d4ced64
include winsock2.h to resolve ws2tcpip.h conflict
11 years ago
Noel Maersk
e123cc20c3
kernel: search in `pwd`/kernel/ for kernels.
...
Closes https://github.com/veox/sgminer/issues/49 .
11 years ago
Noel Maersk
d203dddabb
ui: remove mention of cgminer in "Settings" menu.
11 years ago
Noel Maersk
108ac24e2a
core: check for GPU_* environment variables unconditionally.
11 years ago
Noel Maersk
d7c8d1d300
core: change scantime/expiry to 10/30 from 30/120.
11 years ago
Noel Maersk
64fc8324b8
pools: initial implementation of pool state machines.
...
moved enable_pool(), disable_pool() and other functions related to
state. These could probably be factored out altogether.
Pool state default is now "enabled" - it was previosly "disabled",
but there was an unconditional function call to enable all pools
in main() previously. It was factored out by joe's earlier commits,
so not visible in this one.
11 years ago
Noel Maersk
048c82b9b2
pools: rename 'pool->enabled' to 'pool->state'.
11 years ago
Noel Maersk
22b78e91f6
tui: Refactor status line printing.
...
Default pool name is now URL and port instead of "Pool N" (which
is confusing).
Status line displays user-defined name.
11 years ago
Joe4782
b1eb2ab8f8
Implemented the 'remove-pool' config option for json file pools
11 years ago
Joe4782
817ed55b6a
Pool management option now shows pool name when available
11 years ago
Joe4782
1d81196238
Added a 'disable-pool' option to the json configuration, to allow pools to be started up disabled
11 years ago
gacheson
1eacb3f1c2
Fixes for "--pools" flag and fatal JSON error
11 years ago
Joe4782
712385160b
Added the stratum port to the status print
11 years ago
Noel Maersk
de08e71ea2
core: write xintensity and rawintensity to config, add vectors back as a hidden option; a little whitespace for readability.
11 years ago
Noel Maersk
dda62843fd
core: Add -v as an shorthand for --verbose.
11 years ago
Noel Maersk
5f795be64a
core: use kernel name defines now that version date is not in the filenames.
...
Ideally, even this should not be needed, and specifying a kernel name string
should search for the appropriate file in kernel-path.
11 years ago