1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 14:28:12 +00:00
Commit Graph

6474 Commits

Author SHA1 Message Date
troky
8198286597 Fixed MSVS build. 2014-06-05 23:11:29 +02:00
troky
2588394e32 Added null-termination for kernel build log. 2014-06-05 23:07:55 +02:00
Jan Berdajs
00d17d16fe fix segfault (watchdog thread declares threads sick and tries to restart them while they are already being restarted) 2014-06-05 22:57:20 +02:00
Noel Maersk
a5bec2b999 Merge branch 'dejavusec' into v5_0
Fixes for a few security vulnerabilities reported by Mick Ayzenberg
of DejaVu Security.
2014-06-05 23:08:38 +03:00
Noel Maersk
910c360899 stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(

Should the other hex2bin()'s be checked?

Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this.
2014-06-05 23:07:47 +03:00
Noel Maersk
4f387321ce misc: update AUTHORS.md, add CR to sgminer.c, minor style. 2014-06-05 23:07:14 +03:00
Noel Maersk
78cc408369 stratum: parse_reconnect(): treat pool-sent URL as untrusted.
Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for reminding
that this existed and highlighting the offender.

Also to Luke-jr for actually fixing this in bfgminer. :D
2014-06-05 23:07:08 +03:00
Luke Dashjr
b65574bef2 Stratum: extract_sockaddr: Truncate overlong addresses rather than stack overflow
Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for finding this!
2014-06-05 21:29:44 +03:00
Luke Dashjr
bac5831b35 Bugfix: initiate_stratum: Ensure extranonce2 size is not negative (which could lead to exploits later as too little memory gets allocated)
Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for finding this!
2014-06-05 21:20:25 +03:00
Jan Berdajs
f0e47ec8ec make sure reinit_device cannot happen while algo switching, which would probably result in segfault 2014-06-05 18:40:27 +02:00
Jan Berdajs
e58cd00db7 fix bug in thread_reportin (watchdog can detect getwork is false before thr->last is set), and a few cosmetic changes 2014-06-05 18:35:46 +02:00
troky
b8a1c1f660 MSVS compatibility update. 2014-06-05 10:20:43 +02:00
troky
68c54c226c Partially reverting e4a4efdb42 to keep MSVS compatibility. 2014-06-05 10:19:27 +02:00
Jan Berdajs
e4a4efdb42 fix some potential memory leaks, remove a few old unused functions 2014-06-05 00:13:43 +02:00
Jan Berdajs
87bbca6148 only change gpu engine, memclock, fans, if ADL is enabled 2014-06-05 00:13:34 +02:00
Jan Berdajs
dfaee21023 extract marucoin-modold (for old GPUs like Radeon HD 5xxx, e.g. 5850) as separate kernel and add support for it 2014-06-04 19:24:04 +02:00
Jan Berdajs
064d940ea2 manually merge changes to X11-mod/X13-mod kernels (lazybear) 2014-06-04 19:12:50 +02:00
Anatoly
8c48255802 Code cleanup
WATCHDOG_SICK_TIME increase reverted
Hardcode in get_work_blockdiff removed
2014-06-04 18:07:20 +02:00
Anatoly
99db17145f show-coindiff option added 2014-06-04 18:07:13 +02:00
Anatoly
8f10cbfac5 Total uptime length
Conflicts:
	sgminer.c
2014-06-04 18:07:12 +02:00
Anatoly
d89e53b3db Extend time to sick state 2014-06-04 18:07:07 +02:00
Jan Berdajs
ce3624fba6 add marucoin-mod (X13-mod) 2014-06-03 01:36:56 +02:00
Jan Berdajs
2ec09155e6 per-pool gpu-fan 2014-05-30 00:00:36 +02:00
Jan Berdajs
9ec87cfc1a fixes for MSVC2010 to build 2014-05-29 22:48:25 +02:00
Jan Berdajs
713cfb52c0 update visual studio project (add new files), update solution (was too new for VS2010 Express) 2014-05-29 22:43:53 +02:00
Jan Berdajs
33023de410 more documentation 2014-05-29 02:22:22 +02:00
Jan Berdajs
f596631a07 adjust ncurses interface when we change mining_threads count 2014-05-29 02:05:15 +02:00
Jan Berdajs
6c5ce535d9 fix compiler warnings 2014-05-29 01:34:29 +02:00
Jan Berdajs
13cdc33809 pool-gpu-threads setting 2014-05-29 00:52:07 +02:00
Jan Berdajs
19fc4cc93c remove gpu_threads which is identical to mining_threads. refactor mining threads init code 2014-05-29 00:07:32 +02:00
Jan Berdajs
24d0ce4884 all hail SPACE 2014-05-28 23:38:58 +02:00
Jan Berdajs
c4f2b78d65 per-pool gpu-engine, gpu-memclock and thread_concurrency 2014-05-28 23:19:04 +02:00
Jan Berdajs
06d8e1d1dc extranonce - some cleanup and better description for pool setting 2014-05-28 23:18:14 +02:00
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
2014-05-28 23:17:51 +02:00
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 2014-05-28 00:37:53 +02:00
troky
1bd9636602 Fixed found blocks calculation. 2014-05-27 11:41:17 +02:00
troky
b08782f0bf Merge pull request #214 from sterlingpickens/patch-1
initial_args warning
2014-05-27 08:52:59 +02:00
sterlingpickens
812efe4abc initial_args warning
Remove #ifdef WIN32 "static const char *" appears to be ok for all platforms.
2014-05-26 23:26:27 -07:00
sterlingpickens
246615f238 initial_args warning
Provide for WIN32 and non-WIN32 condition for initial_args malloc (compiler warning)
and remove redundant static.
2014-05-26 19:53:27 -07:00
Jan Berdajs
5b8adcd9a1 add todo comment if we ever fix the broken config parser 2014-05-27 04:21:41 +02:00
Jan Berdajs
0bbf5550a8 add docs about new pool-specific options, and note about the current bad config parser 2014-05-27 04:19:26 +02:00
Jan Berdajs
efe1ebd7ae Intensity can be set for each pool individually 2014-05-27 04:13:52 +02:00
Jan Berdajs
dca83c1112 Add improved Darkcoin (X11-mod) algorithm 2014-05-27 03:39:19 +02:00
Jan Berdajs
d12cda0589 refactor that will come handy soon 2014-05-27 02:02:58 +02:00
Jan Berdajs
9d9f5b7586 Add MaxCoin support 2014-05-27 01:12:30 +02:00
Jan Berdajs
c0baf790f6 making new algorithms and other changes merged from sph-sgminer work with current version of sgminer 2014-05-27 01:11:54 +02:00
Jan Berdajs
93e3a6d107 Merge branch 'master' into sph
Not working yet, need to upgrade algorithm_t

Conflicts:
	configure.ac
	driver-opencl.c
	miner.h
	ocl.c
	sgminer.c
	util.c
2014-05-24 21:22:04 +02:00
Noel Maersk
c46c913d1c doc: mention optional name/desc/algo for addpool. 2014-05-24 04:06:17 +03:00
Noel Maersk
49eae16e7a doc: NEWS.md typo. 2014-05-22 19:41:16 +03:00
Noel Maersk
76c462d0df Bump version to 4.2.1. 2014-05-22 19:37:08 +03:00