cgminer.c


Log

Author Commit Date CI Message
Paul Sheppard dad6c704 2012-11-06T09:46:05 Merge branch 'master' into error_counters
Con Kolivas dd671baa 2012-11-06T17:42:49 Get a fresh block template with GBT pools on switching to them.
Con Kolivas be82cc7f 2012-11-06T14:01:32 Reset work flags to prevent GBT shares from being submitted as stratum ones after switching.
Con Kolivas a47a7886 2012-11-06T11:39:25 Only retarget stratum shares to new pool diff if diff has dropped.
Con Kolivas 498882d8 2012-11-06T10:39:34 Remove resetting of probed variable when detecting GBT.
Con Kolivas 27ce497a 2012-11-06T09:50:36 Count lost stratum share submits and increase message priority to warning.
Con Kolivas 418d15de 2012-11-06T09:43:55 Only retrieve a new block template for GBT pools that are the current pool.
Paul Sheppard 69f341c5 2012-11-05T08:01:15 Remove errant counter.
Con Kolivas 75d0a45a 2012-11-05T23:47:44 Show which pool untracked share messages have come from.
Con Kolivas e0157208 2012-11-05T23:44:00 Add management for dead GBT pools.
Con Kolivas 9ebc321c 2012-11-05T23:34:58 Merge branch 'master' into gbt
Con Kolivas ffb8a29a 2012-11-05T23:25:36 Count lost shares with stratum as submit stale lost.
Con Kolivas 0465fef5 2012-11-05T23:22:36 Discard record of stratum shares sent and report lost shares on disconnection since they will never be reported back.
Con Kolivas 03140811 2012-11-05T22:12:27 Swab, don't just swap the bytes in the GBT target.
Con Kolivas 275bb9c0 2012-11-05T18:05:25 Change status window message for GBT connected pools versus LP.
Con Kolivas 1321cb0e 2012-11-05T17:57:33 Generate a gbt work item from longpoll when required to set new block and message appropriately.
Con Kolivas 10ea5fbf 2012-11-05T16:57:48 Use existing pool submit_old bool from gbt data.
Con Kolivas f71b4230 2012-11-05T16:48:19 Retrieve a new block template if more than 30 seconds has elapsed since the last one to keep the data current and test the pool is still alive.
Con Kolivas fc94e00f 2012-11-05T16:34:44 Update GBT longpollid every time we request a new longpoll.
Con Kolivas cc7c2745 2012-11-05T16:28:52 Manage appropriate response codes for share submission with GBT.
Con Kolivas 345e72e6 2012-11-05T16:17:04 Allow the longpoll thread to start with GBT and only set the longpollid once.
Con Kolivas 85f400bf 2012-11-05T15:57:47 Correct last few components of GBT block generation courtesy of Luke-jr.
Con Kolivas 14c436ee 2012-11-05T15:28:07 Use correct length for offsetting extra nonce and remaining data.
Paul Sheppard 9f74e650 2012-11-04T20:13:49 Tidy up device error counts
Con Kolivas a4e78be1 2012-11-05T14:56:57 Flip all 80 bytes in the flip function which was wrongly named flip256 for its purpose.
Con Kolivas 8bc677a6 2012-11-05T14:44:58 Calculate midstate for gbt work and remove now unused variable.
Con Kolivas 0ba5f0f9 2012-11-05T14:02:43 Use a standard function for flipping bytes.
Con Kolivas 734f3d1c 2012-11-05T11:49:22 Insert the extra nonce and remaining data in the correct position in the coinbase.
Con Kolivas 611c3164 2012-11-05T10:55:55 Remove txn size debugging and enlarge gbt block string to prevent overflow.
Con Kolivas bd384883 2012-11-05T08:39:33 Remove varint display debugging.
Con Kolivas cb6f0340 2012-11-05T08:27:20 Build varint correctly for share submission and sleep 5 seconds before retrying submit.
Con Kolivas 88b6f792 2012-11-04T18:01:09 Make gbt_coinbase large enough for submissions, swap bytes correctly to make a header from GBT and encode the number of transactions in share submission.
Con Kolivas 889ed239 2012-11-04T15:28:13 Store the fixed size entries as static variables in GBT in binary form, byteswapping as is required.
Con Kolivas cdc3c877 2012-11-04T14:58:24 32 bit hex encoded variables should be in LE with GBT.
Con Kolivas 2914a5ed 2012-11-04T12:18:59 Target and prevblockhash need to be reversed from GBT variables.
Con Kolivas 6b34faf8 2012-11-04T10:24:09 Construct block for submission when using GBT.
Con Kolivas 59087a5d 2012-11-04T08:59:00 Use same string for debug as for submission and make string larger to cope with future GBT messages.
Con Kolivas 914e88bb 2012-11-04T08:46:58 Skip trying to decipher LP url if we have GBT support.
Con Kolivas c5c5fb82 2012-11-04T08:35:50 Store all the transaction hashes in pool->txn_hashes instead of separating txn0 and correct generation of merkle root, fixing memory overwrites.
Con Kolivas 5acb182e 2012-11-04T02:07:45 Hook into various places to generate GBT work where appropriate.
Con Kolivas 875ca0fc 2012-11-04T01:07:01 Create extra work fields when generating GBT work.
Con Kolivas 2bfb293f 2012-11-04T00:52:50 Generate header from correct hashing generation of the merkle root for GBT.
Con Kolivas cbc246ea 2012-11-03T19:45:37 Generate the merkle root for gbt work generation.
Con Kolivas 8d0f7482 2012-11-03T13:27:41 Create a store of the transactions with GBT in the minimum size form required to generate work items with a varied coinbase.
Con Kolivas 4a72a157 2012-11-01T22:34:08 Create a function that generates a GBT coinbase from the existing pool variables.
Con Kolivas 813e814f 2012-11-01T16:56:54 Extract and store the various variables GBT uses when decoding gbt work.
Con Kolivas 432b2636 2012-11-01T15:41:32 Check for invalid json result in work_decode.
Con Kolivas 56b16953 2012-11-01T15:40:07 Decode work in separate functions for getwork vs gbt.
Con Kolivas 26e01150 2012-11-01T15:36:22 Check for the coinbase/append mutable in GBT support to decide whether to use it or not.
Con Kolivas d10699d4 2012-11-01T14:24:55 Add a gbt mutex within the pool struct for protecting the gbt values.
Con Kolivas 8afc1f65 2012-11-01T14:05:25 Convert work decode function to prepare for decoding block templates.
Con Kolivas 1c456d4f 2012-11-01T13:53:12 Check for GBT support on first probing the pool and convert to using the GBT request as the rpc request for that pool.
Con Kolivas f4cc59f2 2012-11-01T13:06:34 Make the rpc request used with getwork a pool variable to allow it to be converted to/from gbt requests.
Con Kolivas 7e17af69 2012-10-29T21:48:59 Merge pull request #322 from luke-jr/bugfix_stratum_tmpwork Bugfix: Initialize temporary stratum work
Con Kolivas e19c5d9d 2012-10-29T21:28:15 Set sshare id and swork_id within the sshare mutex to avoid multiple share submits with the same id.
Luke Dashjr 280486a7 2012-10-29T07:14:29 Bugfix: Initialize temporary stratum work Without this, work.mandatory might have been true skipping block change handling code This caused newfound shares to be considered stale always, and bitforce devices to constantly restart work
Con Kolivas d92609e6 2012-10-28T19:58:35 Fail on select() failing in stratum thread without needing to attempt recv_line.
Con Kolivas 843fa339 2012-10-29T16:35:54 Add share to stratum database before sending it again in case we get a response from the pool before it's added.
Con Kolivas d28a844f 2012-10-29T12:33:25 Shorten the stratum timeout on read to 90 seconds to detect unresponsive pool.
Con Kolivas c086ef80 2012-10-29T12:23:58 Display best share difficulty on exit.
Con Kolivas 6f4c47eb 2012-10-29T11:58:58 Make stratum socket fail more robust on windows by disabling the send buffer. Reuse the same curl handle forcing a new connection instead of risking derefencing. Add information about submission failure to stratum send.
Con Kolivas cafe9aac 2012-10-28T14:42:54 Only add stratum share to database if we succeeded in submitting it, with a debug output saying it succeeded.
Con Kolivas d9276557 2012-10-27T23:20:10 Show only the URL in the status bar to avoid long prefixes making for extra long lines.
Con Kolivas 2e56706c 2012-10-27T23:06:37 Display compact status in menu and update README to reflect current menu entries.
Con Kolivas d97e19f1 2012-10-27T22:55:47 Add a compact display mode that does not list per device statistics in the status window.
Con Kolivas 784a41c8 2012-10-27T22:17:30 Add blank spaces after best share displayed.
Con Kolivas d85b60c0 2012-10-27T17:28:42 Round a few static string arrays up to 4 byte boundaries for ARM.
Con Kolivas 7bca8a0a 2012-10-27T17:27:06 Display best share diff for scrypt as well.
Con Kolivas 27aa82aa 2012-10-27T17:21:22 Show the best diff share as "best share" and add info to the README.
Con Kolivas a6cb920a 2012-10-27T16:49:00 Display the best diff share submitted so far.
Con Kolivas f7b79e34 2012-10-27T12:33:46 Redundant check.
Con Kolivas 68c881fd 2012-10-23T20:17:10 Handle crash exceptions by trying to restart cgminer unless the --no-restart option is used.
Con Kolivas 9ccc418a 2012-10-22T23:12:06 Switch queued count when choosing a different pool from a failed stratum pool in getwork thread.
Con Kolivas 334a9db4 2012-10-22T23:08:38 Put a mandatory 5s wait between reattempting a getwork on failure to avoid hammering requests.
Con Kolivas 17251795 2012-10-17T14:09:15 Merge pull request #319 from kanoi/mmq MMQ new initialisation (that works) and clocking control
ckolivas 3fce32f4 2012-10-17T10:33:22 Use 3 significant digits when suffix string is used and values are >1000.
Kano fc14b2ee 2012-10-17T09:56:42 MMQ new initialisation (that works) and clocking control
Con Kolivas 2aa5163b 2012-10-16T22:04:05 Cope with dval being zero in suffix_string and display a single decimal place when significant digits is not specified but the value is greater than 1000.
Con Kolivas 54d2999d 2012-10-16T21:20:02 Pad out the suffix string function with zeroes on the right.
Con Kolivas 99adf397 2012-10-16T19:47:31 Failure to calloc in bin2hex is a fatal failure always so just check for that failure within the function and abort, simplifying the rest of the code.
ckolivas 5fcc8612 2012-10-16T14:56:50 Clear the pool idle flag in stratum when it comes back to life.
Con Kolivas 7adb7a30 2012-10-15T23:10:24 Display correct share hash and share difficulty with scrypt mining.
Con Kolivas 57aac504 2012-10-15T17:29:33 Show work target diff for scrypt mining.
Con Kolivas d4f8a0b2 2012-10-15T10:29:44 Round target difficulties down to be in keeping with the rounding of detected share difficulties.
Con Kolivas bd377f76 2012-10-14T03:35:01 Align static arrays to 4 byte boundaries to appease ARM builds for stratum.
Con Kolivas 13676ef1 2012-10-12T18:00:14 Left align values that are suffix_string generated.
Con Kolivas f22fe761 2012-10-12T17:36:48 Share_diff should not be converting the work data to hex.
Con Kolivas 7c7e5116 2012-10-12T14:53:16 Disable stratum detection with scrypt.
Con Kolivas c3bdb359 2012-10-12T14:52:14 Use the suffix string function when displaying device hashrates.
Con Kolivas 660a0ffe 2012-10-12T14:46:55 Correct variables used in get_statline
Con Kolivas a10e3294 2012-10-12T14:41:13 Be consistent with the get_statline function.
Con Kolivas 911b1788 2012-10-12T14:40:02 Use the suffix string function for displaying hashrate with 4 significant digits.
Con Kolivas 420fdf32 2012-10-12T14:17:29 Display the actual share diff next to the pool required diff, using a suffix creation function to prevent values of >1000 being shown in their entirety.
Con Kolivas d211f8e0 2012-10-11T19:52:40 Create a fix-protocol option which prevents cgminer from switching to stratum if it's detected.
Con Kolivas 5ed6e9d5 2012-10-11T19:31:24 Simplify target generation code.
ckolivas ca962ee5 2012-10-11T10:46:45 Use a 64 bit unsigned integer on the diff target to generate the hex target.
Con Kolivas ef6ad423 2012-10-10T23:46:49 Only copy the stratum url to the rpc url if an rpc url does not exist.
Con Kolivas 974f65c6 2012-10-10T23:22:24 Ignore the value of stratum_active on calling initiate_stratum and assume we're always trying to reinitiate it, and set the active flag to false in that function.
Con Kolivas 07605fad 2012-10-10T23:07:33 stratum auth can be unset if we fail to authorise on subsequent calls to auth_stratum which undoes the requirement of setting it in one place so set it in pool_active.
Con Kolivas 80d43557 2012-10-08T22:59:50 Remove free that could segfault.