1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

4169 Commits

Author SHA1 Message Date
Con Kolivas
bd652a623e Only allow the mining thread to be cancelled when it is not within driver code, making for cleaner shutdown and allowing us to pthread_join the miner threads on kill_work(). 2013-05-18 16:57:13 +10:00
Con Kolivas
f227515e38 Set pool->probed to true after an attempt to resolve the url via stratum code. 2013-05-18 13:09:01 +10:00
Con Kolivas
e128f90ef1 Merge branch 'master' of github.com:ckolivas/cgminer 2013-05-17 21:13:36 +10:00
kanoi
cea88268be Merge pull request #431 from kanoi/master
usb_applog separate amt display
2013-05-15 22:43:30 -07:00
Con Kolivas
0a15beb742 libusb_control_transfer 16 bit words are endian specific. 2013-05-16 12:39:18 +10:00
Kano
6493554acb usb_applog separate amt display 2013-05-15 17:39:25 +10:00
Con Kolivas
3336880e3b Show pool difficulty more verbosely if it changes via stratum. 2013-05-13 22:42:39 +10:00
Con Kolivas
4efe9ca82e Attribute whatever stats we can get on untracked stratum shares based on current pool diff. 2013-05-13 22:23:13 +10:00
Con Kolivas
3f24653f56 Provide a --lowmem option which does not cache shares on failed submission to prevent low memory hardware (eg Avalon) from crashing. 2013-05-13 22:10:01 +10:00
Con Kolivas
c4a8f47769 Merge pull request #429 from mhren/patch-1
Update util.c
2013-05-11 21:37:36 -07:00
mhren
c5bfc45233 Update util.c
Apple OS/X does not define MSG_NOSIGNAL.  Use SO_NOSIGPIPE instead
2013-05-11 23:32:57 -05:00
Con Kolivas
32c41bd03c Bump version to 3.1.1 2013-05-11 20:38:50 +10:00
Con Kolivas
3f0842f7bd Update NEWS. 2013-05-11 20:36:31 +10:00
Con Kolivas
1a7a87c2a6 Use a discrete device target for scrypt that dynamically changes to ensure we still report a work utility even if no shares are submitted such as in solo mining. 2013-05-11 20:29:48 +10:00
Con Kolivas
2fb6637b5a Make set_work_target a function to set a specified char as target for use elsewhere. 2013-05-11 19:51:43 +10:00
Con Kolivas
0b6ee62cc4 Further consolidate the hash regeneration between sha and scrypt doing it only once and always checking the share diff for both before submission. 2013-05-11 19:34:44 +10:00
Con Kolivas
9a76db8db9 Regenerate the hash before checking the share diff in hashtest(). 2013-05-11 17:04:49 +10:00
Con Kolivas
03f98e2617 Minor typo. 2013-05-11 16:56:19 +10:00
Con Kolivas
79dd9dfe13 Use a scantime of 30 seconds for scrypt if none is specified. 2013-05-11 16:50:53 +10:00
Con Kolivas
b196d4fa0c Support more shares to be returned for scrypt mining. 2013-05-11 16:19:02 +10:00
Con Kolivas
a923b7d3f0 Update the write config to properly record device entries and remove disabled option. 2013-05-11 15:25:42 +10:00
Con Kolivas
3972fe223b Show a different warning and loglevel for failure to resolve a URL on first or subsequent testing of stratum pool URLs. 2013-05-11 15:03:40 +10:00
Con Kolivas
ef3b0657dd Fix the problem of seting up termio of ttyUSB0 for icarus. the CSIZE
is the mask of CS2/4/8
From: navyxliu <navy.xliu@gmail.com>
2013-05-10 18:24:04 +10:00
Con Kolivas
2b8cbf61ca Revert wrong patch. 2013-05-09 22:07:11 +10:00
Con Kolivas
2645797fca Set all stratum sockets to nonblocking to avoid trying to use MSG_DONTWAIT on windows. 2013-05-09 22:04:33 +10:00
Con Kolivas
d89936a96c Fix warnings on win32 build. 2013-05-09 21:10:53 +10:00
ckolivas
832012f61d Only use MSG_NOSIGNAL for !win32 since it doesn't exist on windows. 2013-05-09 13:42:53 +10:00
ckolivas
6acfdbd661 Use MSG_NOSIGNAL on stratum send() 2013-05-09 13:36:34 +10:00
ckolivas
a7cbbc9fc3 Set TCP_NODELAY for !linux for raw sockets. 2013-05-09 12:08:42 +10:00
ckolivas
0676a1a885 Use TCP_NODELAY with raw sockets if !opt_delaynet 2013-05-09 12:00:28 +10:00
Kano
527fe05848 Merge branch 'usb' 2013-05-09 11:48:09 +10:00
Con Kolivas
68196588c9 Make raw sockets compile on windows 2013-05-09 11:39:09 +10:00
Con Kolivas
43bcccf868 Recheck select succeeds on EWOULDBLOCK for stratum. 2013-05-09 10:41:27 +10:00
Kano
05dd48ace1 usbutils/mmq fixed size usb_read default to wait for all data 2013-05-09 06:50:51 +10:00
Kano
f518f33674 usbutils optional (disabled by default) dev debug 2013-05-09 06:49:48 +10:00
Kano
e53040ca4d Add an ftdi usb read macro without newline 2013-05-09 06:47:41 +10:00
Con Kolivas
8e117050e3 Avalon usb interface should be 0. 2013-05-09 06:44:32 +10:00
Con Kolivas
4a39f03919 Add more debug for failure to USB init. 2013-05-09 06:43:56 +10:00
Con Kolivas
6e969e93e2 Recv() should all be non-blocking for raw sockets in stratum. 2013-05-08 22:52:18 +10:00
Con Kolivas
cf80fe4a63 Change verbosity and error for getaddrinfo warnings in setup stratum socket. 2013-05-08 22:41:28 +10:00
Con Kolivas
1a43cb0b17 Free servinfo after p is checked in setup stratum socket. 2013-05-08 22:11:01 +10:00
Con Kolivas
31aa4f6ceb Use raw sockets without curl for stratum communications. 2013-05-08 21:59:58 +10:00
Con Kolivas
657e64477b Sacrifice curl handle memory on stratum disconnects on all versions of libcurl to avoid curl corruption. 2013-05-08 06:28:07 +10:00
Con Kolivas
891f88b601 Don't use TCP_NODELAY if opt_delaynet is enabled with stratum. 2013-05-06 16:54:55 +10:00
Con Kolivas
69bdc6f988 Fix warnings in avalon driver. 2013-05-03 22:28:37 +10:00
Con Kolivas
fb249975ec Make FULLNONCE an ULL to fix a warning on 32 bit. 2013-05-03 22:24:11 +10:00
Kano
d3955b8951 ztx correct applog typing 2013-05-02 23:44:47 +10:00
Kano
54d5d26095 ocl correct applog typing 2013-05-02 23:41:51 +10:00
Kano
2ce2f8d8eb util correct applog typing 2013-05-02 23:36:04 +10:00
Kano
65af59b754 api correct applog typing 2013-05-02 23:34:14 +10:00