Jan Berdajs
f596631a07
adjust ncurses interface when we change mining_threads count
11 years ago
Jan Berdajs
6c5ce535d9
fix compiler warnings
11 years ago
Jan Berdajs
13cdc33809
pool-gpu-threads setting
11 years ago
Jan Berdajs
19fc4cc93c
remove gpu_threads which is identical to mining_threads. refactor mining threads init code
11 years ago
Jan Berdajs
24d0ce4884
all hail SPACE
11 years ago
Jan Berdajs
c4f2b78d65
per-pool gpu-engine, gpu-memclock and thread_concurrency
11 years ago
Jan Berdajs
06d8e1d1dc
extranonce - some cleanup and better description for pool setting
11 years ago
elbandi
91a26c46b7
Protect pool name with lock
...
Disconnect from pool, if auth is failed
handle mining.set_extranonce method
subscribe for mining.extranonce
Allow disable extranonce subscribe
Send subscribe request before auth
Change mining.set_extranonce method as stratum notification
Set extranonce.subscribe timeout to 2sec
Some tweaks for extranonce
Handle pool response, who send errors in invalid format
Move no-extranonce-subscribe parameter to a pool config
Include pool.h
Set the pool idle and switch pool, if need
Mark pool as idle if stratum restart is failed
Conflicts:
sgminer.c
11 years ago
Jan Berdajs
cac833e5c2
fix bug which can occur when switching from a very low diff algo (darkcoin) to a high diff algo (scrypt), which caused invalid nonces
11 years ago
Jan Berdajs
5b8adcd9a1
add todo comment if we ever fix the broken config parser
11 years ago
Jan Berdajs
efe1ebd7ae
Intensity can be set for each pool individually
11 years ago
Jan Berdajs
9d9f5b7586
Add MaxCoin support
11 years ago
Jan Berdajs
c0baf790f6
making new algorithms and other changes merged from sph-sgminer work with current version of sgminer
11 years ago
troky
22a3c5b6fe
Reverting 83d71da
. VS2010 fix.
11 years ago
Noel Maersk
ecfd497467
core: remove second-to-last remnants of hotplug.
...
If you grep hotplug, you'll find two more occurences as a function
argument, but it's unused.
11 years ago
elbandi
e32dcd7190
Mark pool as idle if stratum restart is failed
11 years ago
elbandi
98676763b9
Set the pool idle and switch pool, if need
11 years ago
Noel Maersk
5b054542db
config: Don't write commas if not needed, default to `opt_algorithm` when adding pool without one set explicitly.
11 years ago
sterlingpickens
83d71da225
Update sgminer.c
11 years ago
Elbandi
973dcefa8c
Use get_pool_name everywhere
11 years ago
Noel Maersk
3d7167ce2c
config: improve pool section writing.
...
Order so JSON's not broken, write `priority` and `algorithm`.
Closes #102 .
11 years ago
phm
67cf41a50c
Added support for MaruCoin
11 years ago
Noel Maersk
92c3b5eb48
api: set algorithm properly on addpool.
11 years ago
Noel Maersk
3c3a58475e
ui+api: ask for pool name/description/algorithm when adding pool from NCurses/API.
...
Closes #116 .
This is trivial and shouldn't be so hard: it required modifying
functions in both sgminer.c (for NCurses stuff) and api.c. There is
much code repetition, since the NCurses interface is hard-coded in.
Removing it would simplify things greatly.
11 years ago
troky
01e96606f0
Fixed (pool) algo selection.
11 years ago
Noel Maersk
da667d63e0
config: write pool name and description to config.
11 years ago
Noel Maersk
b3d483a035
core: revert two of the changes in Bllacky's pull request #187 .
...
`ndigits` is actually an int, used as a field width specifier in
snprintf().
s is an extensively-used pointer.
11 years ago
Bllacky
fe64ac99d6
Update sgminer.c
...
One small change to work well with previous ones.
Number of warnings now is 151, down from 157.
Still a long way to go. Most of the serious warnings are related to variables in miner.h, which is so intertwined with everything else that I fear of breaking something or making performance worse if I touch miner.h too much.
11 years ago
Bllacky
1dc8aabda9
Update sgminer.c
...
Minor changes to variable declaration.
Should reduce the number of warnings by about 5.
11 years ago
Noel Maersk
aa5f4c713b
config: add `const` qualifier to set_pool_{algorithm,nfactor}().
...
MSVS doesn't like implicit casting.
11 years ago
Noel Maersk
e7078a5e16
misc: clarify currentpool() comment.
11 years ago
Noel Maersk
f6616aa63b
config: allow specifying per-pool algorithm with `--algorithm` instead of `--pool-algorithm`.
...
This will probably only work with config file, though, since it relies
on json_array_index.
11 years ago
Noel Maersk
53a199a21d
config: use get_pool_name() in set_pool_algorithm() and set_pool_nfactor().
11 years ago
Noel Maersk
af879b1c77
core/misc: rename set_poolname() to set_pool_name().
11 years ago
Noel Maersk
3ddf6baad9
core: rename default_algorithm to opt_algorithm.
...
... So it's easier to find when refactoring the configuration system
later on.
11 years ago
Noel Maersk
b6218e20c1
config: rename --pool-priority to --priority, --coin to --description.
...
There are now get_current_pool() and current_pool(), which is confusing.
Moved them closer together, so it's at least obvious.
11 years ago
phm
7678db6801
Fixed problem with stratum support when mining FC, GRS and TWE. Added --difficulty-multiplier parameter for controlling stratum difficulty multiplier.
11 years ago
phm
474091c426
Added support for Twecoin
11 years ago
Jan Berdajs
cdb817bcbd
Change algorithm more robustly and faster, previous way was buggy
11 years ago
Jan Berdajs
c2131df6aa
add support for setting algorithm/nfactor for each pool separately, and fix bugged OpenCL thread cleanup (thread shutdown)
11 years ago
phm
0f88162c39
Added support for Sifcoin
11 years ago
Noel Maersk
a57f841570
Revert "fix for mingw-w64"
...
This reverts commit 32b13ccb46
.
Reported by Wolf0 (aka wolf9466) to not break MinGW 64-bit compilation
with GCC 4.8.2 (latest stable).
11 years ago
Noel Maersk
db0f7cf6f0
core: silence gcc warning about sprintf() use in add_pool() - this time for sure.
11 years ago
Noel Maersk
5896da18b1
core: remove total_users, total_passes, total_userpasses (no longer used).
...
Silence gcc warnings.
Need for these accounting vars removed a few commits ago by troky.
11 years ago
Noel Maersk
08ff1574df
config: write `algorithm` to config if not default.
...
Closes https://github.com/veox/sgminer/issues/175
11 years ago
Noel Maersk
8203fea539
config: move `--coin` in config table (alphabetically).
11 years ago
Noel Maersk
10ec7769c8
pool: don't pass unused argument to sprintf() in add_pool().
...
Silences gcc warning.
11 years ago
Noel Maersk
ac3d13880c
Revert "core: correctly parse boolean configuration values."
...
This reverts commit 8dd1c2d4af
.
Introduced a security bug: since CCAN/opt is used to parse the JSON
config (something it is not meant to do), it was possible to specify
the default of
"api-listen":false
in .conf and expect the API to be disabled. However, since CCAN/opt
does not check for parameters to OPT_WITHOUT_ARG, this got set to
true anyway, and enabled the API on a (possibly unfirewalled) network.
For this reason, configuration options are not named uniformly.
This should have been reverted as soon as it became known:
4c4b909be6
(Fri Feb 28)
Sorry for that.
11 years ago
troky
bcb78ed91b
Added --coin pool parameter.
11 years ago
troky
17f5e296a9
Fixed configuration/command line parsing.
11 years ago