cgminer.c


Log

Author Commit Date CI Message
Con Kolivas b4450bb8 2012-10-04T09:17:28 Parse the reject reason where possible from stratum share submission.
Con Kolivas 512d2440 2012-10-04T08:52:56 Pass json error value to share result function to be able to parse reject reason in stratum.
Con Kolivas 9698858a 2012-10-03T18:19:31 Remove the sshare hash entry if we failed to send it.
Con Kolivas 284b786d 2012-10-03T11:18:08 Check the stratum pool difference has not changed compared to the work diff when testing whether a share meets the target or not and retarget if necessary.
Con Kolivas ac0c813f 2012-10-03T10:33:11 Bit error in target calculation for stratum.
Con Kolivas 310239b8 2012-10-03T10:20:54 Revert "Parse reject reason from the stratum json error code if there is one." This reverts commit c6a3d065fa6c19191af3709fc5b138faf0c0fafb. Segfaults. Needs work.
Con Kolivas 3d982dfb 2012-10-03T09:49:01 Set work_block in gen_stratum_work for when work is reused to avoid thinking it's all stale.
Con Kolivas 74c11945 2012-10-03T09:42:20 Offset the current block detection to the prev block hash.
Con Kolivas c6a3d065 2012-10-03T08:55:02 Parse reject reason from the stratum json error code if there is one.
Con Kolivas 9e0e6150 2012-10-03T01:14:35 We should be testing for id_val, not id in parse stratum response.
Con Kolivas fdaabf59 2012-10-03T00:35:08 Make target on stratum scale to any size by clearing sequential bits according to diff.
Con Kolivas a8a8ed62 2012-10-02T16:01:32 Correct target calculation in gen_stratum_work.
Con Kolivas 925d0192 2012-10-02T14:12:34 If a share result has an error code but still has an id, it is likely a reject, not an error.
Con Kolivas 1b7aa48c 2012-10-02T11:46:48 Initiate stratum the first time in pool_active only, allowing us to switch to it on getting a failed getwork and detecting the presence of stratum on the url at that time.
Con Kolivas 210bc9be 2012-10-02T10:02:25 If no stratum url is set by the end of the detect stratum routine, copy the sockaddr url.
Con Kolivas 78aafcec 2012-10-02T09:26:18 Make all buffers slightly larger to prevent overflow.
Con Kolivas df91df35 2012-10-02T02:03:52 Userpass needs to be copied to user and pass earlier to allow stratum authorisation to work with it.
Con Kolivas 2941febd 2012-10-02T00:00:55 Store a sockaddr url of the stripped url used in determining sockaddr to not confuse it with the stratum url and fix build warnings.
Con Kolivas 2ccb6d78 2012-10-01T23:19:34 Decrease the queued count with stratum work once it's staged as well.
Con Kolivas 601d1aca 2012-10-01T23:15:50 Allow the stratum retry to initiate and auth stratum in pool_alive to make sure the stratum thread is started.
Con Kolivas 4a7ce9dd 2012-10-01T22:21:43 Avoid duplicating pool->rpc_url and setting pool->stratum_url twice to itself.
Con Kolivas eaf7ed0d 2012-10-01T22:13:20 Detect if a getwork based pool has the X-Stratum header on startup, and if so, switch to the stratum based pool.
Con Kolivas b495a51b 2012-10-01T18:50:32 Comment update.
Con Kolivas 2aacd89a 2012-10-01T18:46:33 Minor message change.
Con Kolivas 90b18937 2012-10-01T18:43:24 Create a work item from a "clean" request from stratum allowing the new block to be detected and the appropriate block change message to be given.
Con Kolivas b97a33a5 2012-10-01T14:44:44 Use statically allocated stratum strings in struct work to cope with the inability to safely deallocate dynamically allocated ram.
Con Kolivas e93f679a 2012-09-30T23:44:27 Use the current pool when deciding whether to reuse work from a stratum source rather than the work's previous pool.
Con Kolivas 6174c806 2012-09-30T23:36:05 Copy the stratum url to the rpc url to avoid none being set.
Con Kolivas b5617734 2012-09-30T23:10:43 Provide locking around stratum send operations to avoid races.
Con Kolivas 8baac0d6 2012-09-30T23:03:45 Submit shares from stratum through the abstracted submit share function detecting what message they belong to and showing the data from the associated work, and then deleting it from the hash.
Con Kolivas 2de95151 2012-09-30T20:24:24 Abstract out share submit as a function to be useable by stratum.
Con Kolivas 739cba28 2012-09-30T19:19:46 Rename parse_stratum to parse_method as it is only for stratum messages that contain methods.
Con Kolivas b871f69f 2012-09-30T19:13:50 Display stratum as mechanism in status line when current pool is running it.
Con Kolivas 6593b893 2012-09-30T16:47:06 Correct nonce submitted with share.
Con Kolivas 41acd23d 2012-09-29T23:59:55 Extranonce2 should be added before coinbase2.
Con Kolivas fb987fd2 2012-09-29T19:15:58 We should be hashing the binary coinbase, not the hex one.
Con Kolivas 61360952 2012-09-29T17:44:19 Fix endianness of nonce submitted for stratum.
Con Kolivas fab9ff3c 2012-09-29T16:10:44 Revert "Free stratum buffers added to the work struct when freeing work ram." This reverts commit 13fdff6531a6586dadebff913d85252577fb5bb7. Not always allocated... needs some more thought.
Con Kolivas 7415d7aa 2012-09-29T16:10:13 Begin implementing a hash database of submissions and attempt sending results.
Con Kolivas 13fdff65 2012-09-29T15:13:18 Free stratum buffers added to the work struct when freeing work ram.
Con Kolivas aa93fa33 2012-09-29T15:02:23 Copy parameters from stratum work required for share submission.
Con Kolivas 4a297594 2012-09-29T14:48:34 Set lagging flag on first adding a pool to prevent pool slow warning at startup.
Con Kolivas 73d61ca4 2012-09-29T14:25:21 Fix work->target being a 32 byte binary in gen_stratum_work.
Con Kolivas ac47f7f3 2012-09-29T14:16:16 Store and display stripped url in its own variable.
Con Kolivas 3db6fb4f 2012-09-29T13:07:00 Create machinery to divert work requests to stratum.
Con Kolivas 636f4b14 2012-09-29T11:38:52 Generate the work target in gen_stratum_work, setting default diff to 1 in case it is not yet set.
Con Kolivas 2e9ade14 2012-09-29T11:12:59 Generate work data, midstate and hash1 in gen_stratum_work.
Con Kolivas e1468cc5 2012-09-29T11:02:25 Generate header created from stratum structures in gen_stratum_work.
Con Kolivas 5c74be59 2012-09-29T10:30:56 Generate merkle root hash in gen_stratum_work.
Con Kolivas 1f6fe551 2012-09-29T02:16:22 Generate the coinbase for generation of stratum based work.
Con Kolivas 54ab28fd 2012-09-29T00:38:09 Provide rudimentary support for stratum clean work command in the stratum thread.
Con Kolivas 04551445 2012-09-29T00:23:27 Cope with pools being removed in the stratum thread.
Con Kolivas 0f1f2a62 2012-09-28T18:04:28 Use the pool sock value directly in the stratum thread in case it changes after reconnecting.
Con Kolivas 56255a0c 2012-09-28T18:01:33 Create a stratum thread per pool that has stratum that monitors the socket and serves received data.
Con Kolivas a6f1a622 2012-09-28T04:35:16 Create helper functions for checking when a socket is ready to read on and receive a single line at a time. Begin stratum authorisation process.
Con Kolivas 30b665f0 2012-09-27T13:01:12 Test specifically for stratum being active in pool_active.
Con Kolivas f6f43500 2012-09-27T09:06:56 Detect stratum in common place when adding urls, and use a bool to tell us when it's active.
Con Kolivas a1b17229 2012-09-26T15:23:01 Initiate stratum and grab first json result.
Con Kolivas 58873c1d 2012-09-25T20:23:59 Get detailed addressinfo from the parsed URL for future raw socket usage when possible. IPV4 only for now.
Con Kolivas ee3b7865 2012-09-25T05:46:07 Prepare for getaddrinfo call.
Con Kolivas 823a710a 2012-09-24T14:08:35 Display share difficulty on log with a shortened hash display on submission.
Kano 7c32562d 2012-09-24T11:34:50 API stats add some pool getwork difficulty stats
Con Kolivas fd28d9f4 2012-09-24T09:03:27 Ignore any pings pushed to the worker threads if the thread is still paused to prevent it being enabled and disabled repeatedly.
Con Kolivas 57a73dce 2012-09-24T08:30:07 Test for sequential getwork failures on a pool that might actually be up but failing to deliver work as we may end up hammering it repeatedly by mistake.
Kano a6bf276f 2012-09-19T01:14:43 API - Add last share difficulty for devices and pool
Kano 89b6989f 2012-09-19T00:54:55 Store and report Accepted,Rejected,Stale difficulty in the summary and API
Kano 7ede5a59 2012-09-18T14:30:46 WorkTime - display prevblock for scrypt
Kano 923b9e0d 2012-09-18T11:19:57 Calculate work difficulty for each getwork and display with WorkTime debug
Kano 796f3906 2012-09-16T07:57:43 WorkTime - multiple nonce per work and identify the work source
Kano bd3c98aa 2012-09-15T14:04:57 Optional WorkTime details with each Accepted/Rejected work item
Kano 99f0607f 2012-09-12T23:26:43 API add display of and setting queue,scantime,expiry
Kano e649aa39 2012-09-12T20:10:00 HW: dont submit bad shares
Kano fced503e 2012-09-12T19:45:49 save individual pool proxy settings to config
Kano 0ac35054 2012-09-12T19:32:37 --default-config - allow command line to define the default configuration file for loading and saving
Kano cef9731f 2012-09-12T07:44:00 CURL support for individual proxy per pool and all proxy types
Kano 307d8da0 2012-09-04T15:57:11 HW: error counter auto for all devices - ztex code not fixed
Kano fd2034ce 2012-09-04T00:56:35 Merge branch 'main'
Kano 4023872b 2012-09-01T23:51:51 count device diff1 shares
Kano 568b0fed 2012-09-01T18:21:08 API allow full debug settings control
Con Kolivas 57c3b12f 2012-08-31T12:01:44 Sort the blocks database in reverse order, allowing us to remove the first block without iterating over them. Output the block number to debug.
Con Kolivas f97bf2e2 2012-08-28T20:16:50 Keep the local block number in the blocks structs stored and sort them by number to guarantee we delete the oldest when ageing the block struct entries.
Con Kolivas b7687588 2012-08-27T10:15:48 Test for lagging once more in queue_request to enable work to leak to backup pools.
Con Kolivas 579c1299 2012-08-27T10:10:50 There is no need to try to switch pools in select_pool since the current pool is actually not affected by the choice of pool to get work from.
Con Kolivas 4a210d4e 2012-08-27T10:02:53 Only clear the pool lagging flag if we're staging work faster than we're using it.
Con Kolivas d1683f75 2012-08-27T09:55:19 needed flag is currently always false in queue_request. Remove it for now.
Con Kolivas 1b7db5bc 2012-08-27T09:47:55 thr is always NULL going into queue_request now.
Con Kolivas 0e0093e6 2012-08-24T01:23:54 Select pool regardless of whether we're lagging or not, and don't queue another request in switch pool to avoid infinite recursion.
Con Kolivas 7992e5f3 2012-08-24T00:41:14 Carry the needed bool over the work command queue.
Con Kolivas 37fa7d36 2012-08-24T00:35:26 Move the decision to queue further work upstream before threads are spawned based on fine grained per-pool stats and increment the queued count immediately.
Con Kolivas 618b3e8b 2012-08-23T23:50:38 Track queued and staged per pool once again for future use.
Con Kolivas 4ca288e8 2012-08-23T16:55:14 Limit queued_getworks to double the expected queued maximum rather than factoring in number of pools.
Con Kolivas ad902695 2012-08-23T16:33:24 Minimise the number of getwork threads we generate.
Con Kolivas 0feb679b 2012-08-23T12:19:23 Only keep the last 6 blocks in the uthash database to keep memory usage constant. Storing more is unhelpful anyway.
Con Kolivas b74b54d9 2012-08-23T11:09:09 Check we haven't staged work while waiting for a curl entry before proceeding.
Con Kolivas 61df3013 2012-08-22T23:03:17 Ignore the submit_fail flag when deciding whether to recruit more curls or not since we have upper bounds on how many curls can be recruited, this test is redundant and can lead to problems.
ckolivas edd9b816 2012-08-22T10:07:20 Do not add time to dynamic opencl calculations over a getwork.
Con Kolivas 9de3a264 2012-08-21T22:51:34 Increase max curls to number of mining threads + queue * 2, accounting for up and downstream comms.
Con Kolivas 3ab5dba6 2012-08-21T22:50:09 Queue enough requests to get started.
Con Kolivas 3ebe8e8c 2012-08-21T22:09:11 Revert "Scale maximum number of curls up according to work submission rate." This reverts commit 1dff48e7595d4b407e6b31ecc5278455858157ea. Did not increase staged work even though it decreased queues.
Con Kolivas 3ceb57b8 2012-08-21T21:54:33 There is no point trying to clone_work in get_work() any more since we clone on every get_work_thread where possible.