util.c

Branch


Log

Author Commit Date CI Message
Johnson-Fan 24c4689c 2018-11-01T18:00:24 Revert "Add SSP support for Avalon7" This reverts commit 19b6d29400f05b8652dd34f465837e30dbed9aa4. Conflicts: configure.ac driver-avalon7.h
Johnson-Fan 0b8adaab 2018-11-01T17:58:10 Revert "Only update stratum work to MM when new block was found" This reverts commit 90262c2342d1b99a71225340be0062c45bac20da.
Johnson-Fan deb1b77e 2018-11-01T17:57:53 Revert "Support clean jobs for different stratum pool" This reverts commit 7de9a9b86fefff65c370c01afc3e90c15109d286. Conflicts: util.c
Con Kolivas e670d4fa 2018-09-29T16:48:34 Merge pull request #721 from jameshilliard/bip34-serialization Fix BIP34 Serialization
James Hilliard db147ca9 2018-08-16T21:18:56 Merge s9 soc support
Con Kolivas 337b834f 2018-08-15T22:39:09 sem_timedwait needs to use CLOCK_REALTIME.
Con Kolivas 38a2b8ce 2018-08-15T22:35:39 Conditional timedwaits need to use CLOCK_REALTIME.
Con Kolivas e5913147 2018-08-15T15:42:49 Remove unused abstime.
Con Kolivas 2abc2657 2018-07-11T12:28:47 Cope with abs timeouts not working on some OSs, fixing a logic error on cgsem_mswait.
Con Kolivas c449eff8 2018-05-11T13:43:52 Use clock_gettime instead of gettimeofday to not be burnt by ntp changes.
Con Kolivas e7128f35 2018-04-30T17:02:01 Import Dragonmint T1 driver and version rolling AKA asicboost support.
Mikeqin c20ff313 2017-09-27T10:17:21 Fix warnings
James Hilliard 95ead336 2017-06-21T21:01:26 Fix BIP34 Serialization
Mikeqin 7de9a9b8 2017-05-20T08:28:41 Support clean jobs for different stratum pool Add --force-clean-jobs option. -1 means ignore the stratum update when clean_jobs is 0 0 means accept the stratum update when parse_notify was called. n means accept the stratum update after n seconds, n > 0.
Mikeqin 90262c23 2017-05-19T17:21:46 Only update stratum work to MM when new block was found * It only used in smart speed plus mode
Mikeqin 19b6d294 2016-11-08T18:02:04 Add SSP support for Avalon7
Con Kolivas 31047bd9 2017-05-03T21:23:43 Sleep if btcd isn't immediately available and try again when attempting to decode a coinbase.
Con Kolivas 879a7a56 2017-04-28T11:18:41 Add a --decode option that decodes a pool's coinbase transactions and exits.
Alexander I. Mogilny 6f01253b 2017-01-26T13:30:45 merge with cgminer rev 87e3da18638275d2b5adbd0ccd0a17225793bf8f code refactoring: - Con Colivas notes - whitespace nitts - unused parameters removed - compiler warnings removed
Con Kolivas 47397c82 2017-01-23T21:05:56 64
Con Kolivas f594c8e6 2017-01-23T21:05:14 Merge pull request #710 from jameshilliard/clean-swork Always clean swork when prev_hash changes
Con Kolivas e8becaae 2017-01-23T18:21:36 Increase header size.
Con Kolivas ec1ac289 2017-01-23T14:07:24 Windows build fixes.
Con Kolivas 45b41721 2017-01-23T11:18:30 We can only change diff once per notify so assume successive diffs are stacked for successive notifies.
James Hilliard c96a2b7c 2017-01-01T21:09:44 Always clean swork when prev_hash changes
James Hilliard a40cb506 2016-11-22T01:59:27 TIMER_ABSTIME is not available on osx
Mikeqin b3c0a3a6 2016-10-28T15:46:03 Add STRATUM_USER_AGENT macro for utils
Con Kolivas dc676221 2016-09-20T14:18:29 Fix various minor once-off memory leaks
elbandi eef7ce9d 2015-08-21T21:16:51 Apply immediately the first set_difficulty This is a workaround for pool, who send the first difficulty after notify
elbandi 0faff619 2015-06-18T13:36:20 store the next difficulty
Con Kolivas 868993df 2015-08-19T21:51:33 Fix error message for pools such as p2pool that use no nonce1 in their stratum templates
kanoi 2aea4d83 2015-08-15T10:32:13 Revert "store the next difficulty" This reverts commit 661088e6db6ba99b8de2a7b65bbc743bbfd994d4.
elbandi 661088e6 2015-06-18T13:36:20 store the next difficulty
Con Kolivas 04e7acf0 2015-06-12T10:28:30 Deprecate scan-time which is irrelevant with ASIC speed mining
kanoi f08c6d2e 2015-06-09T19:04:39 add pool block quality to api
Con Kolivas 3c431996 2015-04-25T15:28:23 Cope with reconnect being sent a port number as an integer or string
Con Kolivas 57de2ccd 2015-03-05T10:15:37 Check for attempts to copy to/from null in cg_memcpy
Con Kolivas 87142034 2015-03-05T10:09:59 Use cg_memcpy throughout cgminer.c and util.c
Con Kolivas d81595b9 2015-03-05T09:45:06 Align_len in all alloc helper calls
Con Kolivas 8d75ac97 2015-03-05T09:40:58 Use align_len in all alloc helpers
Con Kolivas 574f24b5 2015-03-05T09:24:06 Use the alloc helpers in util.c
Con Kolivas ced65896 2015-03-05T09:12:52 Add helper functions to various alloc functions that automatically check for failure
Con Kolivas b2624966 2015-02-03T16:42:12 Display notice if pool successfully negotiates stratum resume
Chris Ross e06e4848 2014-12-16T22:39:04 Basic ability to compile and run on FreeBSD 10. Only tested compilation with avalon, avalon2, bflsc, and icarus; only tested functionality of bflsc and icarus.
Con Kolivas feb5adaf 2014-11-04T16:04:08 Selectively yield on dropping a lock only on single CPU platforms
Con Kolivas 7106ffdb 2014-11-02T13:20:07 Implement support for pool ping and json integers of zero in getversion and ping
Con Kolivas 362bb75d 2014-11-02T12:09:29 Set the correct flag for close on exec for sockets
Con Kolivas 6dbbaeed 2014-11-02T11:20:09 Set CLOEXEC on sockets on linux
phantomcircuit 4a83f2c8 2014-10-20T02:27:12 correct suggest_difficulty json rpc call
Con Kolivas a1367607 2014-10-14T18:24:42 Implement generic inet_pton for windows
Con Kolivas 5dead599 2014-10-14T11:24:35 Merge branch 'temp' of https://github.com/Canaan-Creative/cgminer into Canaan-Creative-temp
archang 7c447395 2014-10-08T09:34:48 Support ipv6 multicast
Con Kolivas 37c6dfc4 2014-09-30T15:59:42 Implement support for mining.suggest_difficulty
archang a0fb48b0 2014-09-26T18:25:25 Remove the brackets when using v6 pool address
Con Kolivas 25304f0a 2014-09-07T20:03:45 Add custom strcasestr and use custom gnu type functions in bflsc
Con Kolivas 14a9e429 2014-09-07T19:34:20 Fix windows build of bflsc driver
Con Kolivas 70faaca9 2014-07-17T11:52:23 Only clear sockbuf if it's been allocated
Con Kolivas d3804639 2014-07-16T03:34:57 Deal with nanosecond overflow in both directions on both addition and subtration of timespecs
ckolivas 35299a7b 2014-07-08T15:32:25 Wrong fix
ckolivas 2ade9d59 2014-07-08T15:31:26 There is no point storing the hints addrinfo in struct pool
kanoi 6d495b0c 2014-07-08T19:22:15 mutex lock getaddrinfo
Con Kolivas 533ab490 2014-06-21T10:45:21 Clean up pool failure and failover code for stratum
Con Kolivas 0f5f29d1 2014-06-12T12:41:51 Allow zero length strings to be passed to valid_hex
Con Kolivas 453eaed4 2014-06-10T12:19:14 Use valid_ascii testing for job_id since it need not be hex only
Con Kolivas e1c50507 2014-06-10T11:36:22 Do some random sanity checking for stratum message parsing
Con Kolivas f6e53fb1 2014-05-31T12:38:54 Add a sanity checking memcpy function which checks for overflows
Con Kolivas 5a1f63ea 2014-05-19T13:41:15 Merge pull request #595 from Elbandi/idlebugfix Mark pool as idle if stratum restart is failed
Andras Elso 9aef36ad 2014-05-19T00:50:19 Mark pool as idle if stratum restart is failed
Con Kolivas 6469d3b6 2014-05-02T15:02:13 Make reconnection messages more explanatory
Kano 040b42c5 2014-05-02T14:15:20 Startum client.reconnect require matching URL
Elso Andras acb15bfc 2014-04-25T22:21:44 Fix idle bug, when redirected client can't auth
Con Kolivas 55e0ebe3 2014-04-14T21:25:40 Shuffle windows headers included
Con Kolivas 89447943 2014-04-14T19:51:28 Recalloc correct pointer
Con Kolivas 8f4b6028 2014-04-05T10:01:26 Provide helper function for recallocing memory
Con Kolivas c481f2c9 2014-04-02T23:09:48 Compact gbt solo extra data and store the length, allowing it to be variable, leaving room for a signature
Con Kolivas 41b0c398 2014-03-29T12:00:36 Minor correctness fix for unnecessary free
Con Kolivas e0c66a02 2014-03-29T11:54:46 Clean up various curl build issues
Kano c7d68866 2014-03-29T10:13:17 allow url based config files
Con Kolivas bea3c9e3 2014-03-18T22:51:18 Fix missing htobe16 on windows and meaningless >u32 string warning.
Con Kolivas 680a4755 2014-03-18T19:17:57 Fix ser_number for no remaining val byte.
Con Kolivas d6a5fd76 2014-03-18T16:13:00 Fix transaction processing for gbt solo.
Con Kolivas 5cc83a30 2014-03-18T12:01:28 Encode height using integer varint format.
Con Kolivas ff82f319 2014-03-17T11:30:38 Update solo coinbase regularly and submit as gbt work
Con Kolivas 8d5d971b 2014-03-16T23:53:35 Generate gbt solo work emulating stratum work construction.
Con Kolivas 73932de0 2014-03-16T23:03:17 Move swork.diff out of the stratum work section to be shared as sdiff.
Con Kolivas 6826525b 2014-03-16T22:37:06 Avoid allocing and freeing stratum strings that should be fixed length.
Con Kolivas a95e9e57 2014-03-16T22:21:49 Remove unnecessary header length calculation for stratum header binary and only binary convert the correct length of the header.
Con Kolivas 159587ba 2014-03-16T22:11:33 Share more fields between stratum and gbt
Con Kolivas 8f5a81eb 2014-03-16T21:53:42 Share coinbase_len variable b/w stratum and gbt and setup more gbt solo parameters.
Con Kolivas d0c4650d 2014-03-16T21:46:07 Generate a valid coinbase and set nonce2offset for gbt solo
Con Kolivas 69d2ee81 2014-03-15T23:37:47 Add helper functions for creating script signature templates and beging building template.
Con Kolivas 98b4216c 2014-03-11T23:27:36 Implement efficient merkle tree base from solo GBT information.
Con Kolivas 2e5c69bf 2014-03-02T13:08:02 Clean up parse_method
Con Kolivas e9f10244 2014-03-02T08:50:20 More gracefully break out of parse_notify on a corrupted hex string error, checking the return value of all hex2bin conversions and being consistent with using stack memory. Fix an unlocking error in cases of failure.
Con Kolivas 4887025a 2014-02-07T08:33:00 Only show one decimal place if pool diff is not an integer.
Con Kolivas 3adb8279 2014-02-02T08:37:01 Check for more interrupted conditions in util.c and handle them gracefully.
Con Kolivas e799a53a 2014-02-01T23:01:38 Handle interruptions to various select calls in util.c
Con Kolivas 4b9d03b5 2014-01-23T22:03:39 Merge branch 'master' of github.com:ckolivas/cgminer
Con Kolivas 295c1c74 2014-01-23T22:02:58 Clear pool work on a stratum reconnect message.
Kano d9440866 2014-01-18T09:36:51 Modify thread naming to make them easier to identify