1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-01 18:55:36 +00:00
Commit Graph

6362 Commits

Author SHA1 Message Date
Noel Maersk
3ddf6baad9 core: rename default_algorithm to opt_algorithm.
... So it's easier to find when refactoring the configuration system
later on.
2014-04-07 22:09:05 +03:00
Noel Maersk
0793c96074 Merge remote-tracking branch 'mrbrdo/poolalgo' into poolalgo
Conflicts (resolved):
	ocl.h
	sgminer.c
2014-04-07 22:05:33 +03:00
Noel Maersk
336135f888 misc: Bump version to 4.1.242. 2014-04-07 21:19:46 +03:00
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.
2014-04-07 21:14:17 +03:00
phm
7678db6801 Fixed problem with stratum support when mining FC, GRS and TWE. Added --difficulty-multiplier parameter for controlling stratum difficulty multiplier. 2014-04-05 20:55:22 +02:00
phm
769c9f8036 Merge branch 'twecoin'
Conflicts:
	Makefile.am
	configure.ac
	driver-opencl.c
	miner.h
	ocl.c
	sgminer.c
	sph/Makefile.am
2014-04-05 17:41:42 +02:00
phm
474091c426 Added support for Twecoin 2014-04-05 17:27:59 +02:00
Noel Maersk
cc735db550 misc: don't violate reserved identifier naming convention.
Closes https://github.com/veox/sgminer/issues/177
2014-04-03 19:12:35 +03:00
Noel Maersk
cabb02f5d4 log: do not show pool difficulty changes on non-current pool.
Keep log spam down when using a lot of vardiff pools, or if a p2pool is
a fallback.
2014-04-02 23:35:03 +03:00
Noel Maersk
4c64a192f7 Merge pull request #181 from morenoh149/patch-1
added clarification for dependencies
2014-04-02 16:53:44 +03:00
Harry Moreno
3c5f0fa989 made debian apt-get a one-liner 2014-03-31 19:23:18 -07:00
Harry Moreno
74ec14664f added clarification for dependencies
Improved clarity of dependencies by adding example of how to install dependencies using apt-get. It was not clear whether `autoreconf -i` would install the dependencies or not. And how to install the dependencies if a user doesn't know how.
2014-03-31 19:05:49 -07:00
Jan Berdajs
cdb817bcbd Change algorithm more robustly and faster, previous way was buggy 2014-03-31 21:05:20 +02:00
Jan Berdajs
c2131df6aa add support for setting algorithm/nfactor for each pool separately, and fix bugged OpenCL thread cleanup (thread shutdown) 2014-03-31 21:05:20 +02:00
phm
a683f935a4 Merge branch 'sifcoin'
Conflicts:
	Makefile.am
	configure.ac
	driver-opencl.c
	miner.h
	ocl.c
	sgminer.c
2014-03-31 17:06:16 +02:00
phm
0f88162c39 Added support for Sifcoin 2014-03-31 17:02:06 +02:00
Noel Maersk
9a2b9286e2 misc: update NEWS.md with reference to mailing lists and duplicate entry removal. 2014-03-29 03:35:21 +02:00
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).
2014-03-29 03:04:30 +02:00
Noel Maersk
e1b944ea41 doc: update README.md with links to mailing lists. 2014-03-28 20:01:18 +02:00
Noel Maersk
2724091ed3 doc: minor README wording. 2014-03-28 18:07:16 +02:00
Noel Maersk
9e97ccd754 adl/misc: remove unused lpAdlDisplayInfo (silence GCC warning). 2014-03-28 17:38:26 +02:00
Noel Maersk
db0f7cf6f0 core: silence gcc warning about sprintf() use in add_pool() - this time for sure. 2014-03-28 17:21:10 +02:00
Noel Maersk
524833f684 adl/misc: remove unused iNumDisplays.
Silence gcc warning.

Added in a7bca56633 by Joe4782, but
never used.
2014-03-28 17:06:21 +02:00
Noel Maersk
5fd5e3b67d adl/misc: mention that the found adapters are logical. 2014-03-28 16:57:01 +02:00
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.
2014-03-28 16:30:11 +02:00
Noel Maersk
08ff1574df config: write algorithm to config if not default.
Closes https://github.com/veox/sgminer/issues/175
2014-03-28 16:28:15 +02:00
Noel Maersk
27e4515b9a opencl: move lookup-gap check for kernel zuikkis to after it is set from opt_lg.
Introduced by 89d641628b

Closes https://github.com/veox/sgminer/issues/172
2014-03-28 00:24:43 +02:00
Noel Maersk
377266a264 misc: update NEWS.md (with what was added in #168). 2014-03-27 18:15:11 +02:00
Noel Maersk
8203fea539 config: move --coin in config table (alphabetically). 2014-03-27 17:58:16 +02:00
Noel Maersk
e7ca7fabba Merge pull request #168 from troky/testing
--pool-priority, --coin and fix for #80
2014-03-27 17:51:01 +02:00
Noel Maersk
bc9b313e9c opencl: check if gpus.kernelname has to be free()'d before setting.
In this case it doesn't, since the function is only used for config
parsing (I hope). Add the check to prevent a memory leak, just in
case this changes in the future.

TODO: Option parsing functions should really be moved elsewhere and
renamed appropriately, like set_opt_kernel() or config_set_kernel(),
if config parsing is to remain as-is. It will probably change
drastically, so leaving as-is for now.
2014-03-27 17:37:18 +02:00
Noel Maersk
18d9c648ba opencl: update comment on generated binary file name. 2014-03-27 16:52:56 +02:00
Noel Maersk
10ec7769c8 pool: don't pass unused argument to sprintf() in add_pool().
Silences gcc warning.
2014-03-26 18:41:18 +02:00
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.
2014-03-26 18:34:49 +02:00
troky
bcb78ed91b Added --coin pool parameter. 2014-03-26 11:10:41 +01:00
troky
17f5e296a9 Fixed configuration/command line parsing. 2014-03-26 10:46:17 +01:00
troky
8db53026cb Added --pool-priority 2014-03-25 20:37:45 +01:00
Noel Maersk
1f7b7ef26e stratum: move log warning under opt_disable_client_reconnect clause. 2014-03-24 15:25:31 +02:00
Martin Danielsen
01b3f70b63 A new --no-client-reconnect command that disables the 'client.reconnect' function.
It looks like there's an exploit that abuses said command, but it is still not clear exactly how.

There's also an additional message when the reconnect happens: "WARNING: POTENTIAL CLIENT.EXPLOIT!", but it requires you to be actively monitoring your log to catch it, and in which case you already get a "Reconnect requested from Pool 0 to 127.0.0.1" message.

Note that disabling 'client.reconnect' might affect some pools that rely on the feature, like pools that you lease your rig to.

Oh and this is dry-coded. :)
2014-03-24 15:12:40 +02:00
Noel Maersk
aa471a2dfd api: remove unused SCRYPTSTR.
Gets rid of compiler warning.
2014-03-23 15:14:18 +02:00
Noel Maersk
e02f111dca opencl: reuse strbuf in initCl, get rid of poorly-named numbuf. 2014-03-23 15:12:06 +02:00
Noel Maersk
89d641628b log: warn on using kernel zuikkis with lookup-gap != 2. 2014-03-23 15:09:43 +02:00
Noel Maersk
7a3a510216 log: mention non-user-settable kernel parameters in "Initialising kernel" notice.
Should help in the future for people who try to mix patched and unpatched
BFI devices.
2014-03-23 15:04:15 +02:00
Noel Maersk
0d8977774f opencl: correctly test if no kernel name was specified in config.
Closes second bug squashed into https://github.com/veox/sgminer/issues/123
report.
2014-03-23 14:58:08 +02:00
phm
983eae1142 Merge branch 'groestlcoin'
Conflicts:
	Makefile.am
	configure.ac
	driver-opencl.c
	miner.h
	ocl.c
	sgminer.c
2014-03-22 23:58:10 +01:00
phm
764d8706b4 Added support for GroestlCoin. 2014-03-22 23:50:21 +01:00
phm
21d928b543 Fixed problem with invalid stratum difficulty for Quark, AnimeCoin and QubitCoin. 2014-03-22 14:16:49 +01:00
Noel Maersk
1b3df7cbc9 doc: add note on incognito mode in doc/BUGS.md. 2014-03-21 03:02:22 +02:00
Noel Maersk
29cbd1f052 doc: make the title of your issue report informative. 2014-03-21 02:59:36 +02:00
Noel Maersk
57fce98a2f Merge pull request #159 from troky/api-ext
Added pool name to API "pools" command
2014-03-21 02:52:41 +02:00