cgminer.c


Log

Author Commit Date CI Message
Con Kolivas 1a7a87c2 2013-05-11T20:29:48 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.
Con Kolivas 2fb6637b 2013-05-11T19:51:43 Make set_work_target a function to set a specified char as target for use elsewhere.
Con Kolivas 0b6ee62c 2013-05-11T19:34:44 Further consolidate the hash regeneration between sha and scrypt doing it only once and always checking the share diff for both before submission.
Con Kolivas 9a76db8d 2013-05-11T17:04:49 Regenerate the hash before checking the share diff in hashtest().
Con Kolivas 79dd9dfe 2013-05-11T16:50:53 Use a scantime of 30 seconds for scrypt if none is specified.
Con Kolivas a923b7d3 2013-05-11T15:25:42 Update the write config to properly record device entries and remove disabled option.
Kano 6cef9f42 2013-05-02T23:32:42 cgminer correct applog typing
Kano 8f08a327 2013-05-02T22:50:25 applog - force type checking
Con Kolivas 8b2118b1 2013-04-28T22:00:39 Clean up summary slightly better on exit.
Con Kolivas 3d835fc3 2013-04-22T19:28:50 Fix build and distdir.
Con Kolivas f4b27907 2013-04-22T14:35:43 Remove all CPU mining code.
Con Kolivas 856aa49c 2013-04-22T10:59:55 Use copy_time helper throughout cgminer.c
Con Kolivas d2abaa83 2013-04-22T10:49:10 Provide wrappers for commonly used timer routines with API stats.
Con Kolivas 170a4aeb 2013-04-22T10:00:34 Avoid one cgtime call in sole_hash_work.
Con Kolivas 4597c0a1 2013-04-22T09:35:48 Provide endian_flipX functions to avoid special casing big endian in cgminer.c
Con Kolivas 8d81f1d2 2013-04-22T09:28:06 Provide a flip128 helper to simplify big endian flipping.
Con Kolivas c351f8d8 2013-04-22T09:23:13 Use flip helpers to simplify code for calculation of midstate.
Con Kolivas f50ae468 2013-04-22T09:08:51 Use flip32 function instead of open coding it in gen_stratum_work.
Con Kolivas bb964b4b 2013-04-21T19:08:30 Replace gettimeofday usage in cgminer.c with cgtime
ckolivas 5315838d 2013-04-19T09:19:05 Restart threads on the rare chance we found the block ourselves.
Con Kolivas a3bbe0e1 2013-04-18T18:19:35 Set last device valid work on adding device.
Con Kolivas 3fa4a9f5 2013-04-18T17:58:58 Increment last device valid work count in submit_nonce to cover scrypt.
Con Kolivas c1ff90a7 2013-04-18T15:07:32 Do testing for HW errors on submit nonce for both scrypt and sha.
Con Kolivas 6b714dd4 2013-04-18T14:47:46 Increment hardware error count from the one site.
Con Kolivas a6250fbb 2013-04-18T12:26:32 Rename scrypt regenhash function for consistency.
Con Kolivas daea9c95 2013-04-18T12:11:41 Add new best share info to verbose logging.
Con Kolivas 1a7fc4e9 2013-04-18T10:47:02 Add notice for when network diff is changed.
Con Kolivas b4bc5e2b 2013-04-16T22:57:55 Check for work restart after disable in the hash queued work loop since it may be a long time before we re-enable a device.
Con Kolivas d41d210b 2013-04-15T23:01:08 Set device_diff for queued work or there will be no diff1 share count.
Con Kolivas 67ebf45c 2013-04-15T11:44:19 Avoid applog under cg_wlock.
Con Kolivas 8d22ca1a 2013-04-15T11:42:16 Put spacing around locking code for clarity.
Con Kolivas 3209c113 2013-04-15T11:34:21 Avoid applog under pool_lock.
Con Kolivas 51fbcfed 2013-04-15T11:25:48 Avoid more recursive locks.
Con Kolivas b948669a 2013-04-15T11:13:48 Avoid applog while ch_lock is held.
Con Kolivas 29f0ac77 2013-04-15T10:30:12 Avoid recursive locks in fill_queue.
Con Kolivas c17a175e 2013-04-10T18:39:50 Merge branches 'avalon-dev' and 'master' of github.com:ckolivas/cgminer
Con Kolivas 64ec0662 2013-04-10T01:31:32 Merge pull request #417 from kanoi/bflsc cgminer.c -S help to only say Icarus + usbutils more stats for bflsc
ckolivas 6400088f 2013-04-10T10:59:38 Fix warning on 32bit.
ckolivas 7231f7f9 2013-04-10T10:59:38 Fix warning on 32bit.
Con Kolivas 220eb858 2013-04-08T21:26:10 Rationalise and simplify the share diff and block solve detection to a common site.
Con Kolivas 5c7a32fd 2013-04-08T21:26:10 Rationalise and simplify the share diff and block solve detection to a common site.
Con Kolivas d86f7b77 2013-04-07T01:46:16 Fix warning with no curses built in.
Con Kolivas e9b6ff8f 2013-04-07T01:46:16 Fix warning with no curses built in.
Con Kolivas 7783ab56 2013-04-06T13:01:42 Only get extra work in fill_queue if we don't have any unqueued work in the list.
Con Kolivas 97bad1ee 2013-04-06T13:01:42 Only get extra work in fill_queue if we don't have any unqueued work in the list.
Kano 8959f8d0 2013-04-05T20:06:03 cgminer.c -S help to only say Icarus
Con Kolivas 18023022 2013-04-05T18:31:20 Rneame avalon_api to avalon_drv.
Con Kolivas 71bae003 2013-04-05T14:52:07 First draft of port of avalon driver to new cgminer queued infrastructure.
Con Kolivas e9a65bba 2013-04-05T11:18:08 Only update hashrate calculation with the log interval.
Con Kolivas 97a91723 2013-04-05T11:01:20 Update the total_tv_end only when we show the log to prevent failure to update logs.
James Z.M. Gao c9ae7150 2013-04-04T22:59:10 Compile CPU mining for win32 and win64
Con Kolivas 5f567345 2013-04-03T02:13:05 Merge branch 'master' of github.com:ckolivas/cgminer
Con Kolivas b3e734e7 2013-04-03T02:12:00 Show share hash as little endian as needed.
Con Kolivas 76712c15 2013-04-01T15:53:43 Merge pull request #414 from kanoi/bflsc work queues - remove new but unnecessary functions + generic work structure flags for BFLSC (and usable by other drivers if needed)
Kano ea327f7b 2013-04-01T13:10:15 work queues - remove new but unnecessary functions
Con Kolivas ea4cf57d 2013-03-31T15:25:46 Merge pull request #413 from kanoi/bflsc find_work() to find work in devices work queue + usbutils extra message requirements + functions for handling work queues
Con Kolivas e95813c8 2013-04-01T09:22:58 Make hashmeter frequency for hash_queued_work match sole_work.
Kano 131e2004 2013-04-01T00:35:50 functions for handling work queues
Kano b3ae0f16 2013-03-31T21:54:32 find_work() to find work in devices work queue
Con Kolivas 6c418f45 2013-03-21T15:11:38 Remove increasingly irrelevant discarded work from status lines.
Con Kolivas 886df16d 2013-03-21T15:06:14 Remove increasingly irrelevant queued and efficiency values from status and move WU to status line.
Con Kolivas 1a19729a 2013-03-21T14:56:44 Allow cgminer to start if usb hotplug is enabled but no devices yet exist.
Con Kolivas 1ed86dec 2013-03-18T14:36:10 If the hashmeter is less than the log interval and being updated by the watchdog, don't update the hashrate.
Con Kolivas 072ffbba 2013-03-17T16:28:29 Update the hashmeter at most 5 times per second.
Con Kolivas 13e19de4 2013-03-17T10:15:24 Calculate work utility for devices that support target diffs of greater than 1, and update scrypt code to use it.
Con Kolivas d7d630b8 2013-03-16T08:56:37 Set default GPU threads to 1 for scrypt.
Con Kolivas 21a36f48 2013-03-16T00:04:30 Connect backup stratum pools if the primary pool cannot deliver work.
Con Kolivas e10a7041 2013-03-15T00:23:05 Merge pull request #406 from kanoi/bflsc USB device list - convert some common error numbers to messages + nDevs required for -n with usb
Con Kolivas 8d27ecf9 2013-03-15T17:57:36 Merge branch 'master' of github.com:ckolivas/cgminer
Con Kolivas 5a2c2a7a 2013-03-15T17:56:55 Update the hashmeter once per second but only display the extra logs every opt_log_inteval.
Kano 28f515e9 2013-03-15T06:22:22 nDevs required for -n with usb
Kano b21747b9 2013-03-15T00:02:17 USB modify -n and --usb-dump to only show known devices or use new --usb-list-all option to see all
Con Kolivas e9a9a515 2013-03-14T04:48:35 Merge pull request #404 from kanoi/bflsc cgminer -n to include a USB device list
Con Kolivas b6e3d5b4 2013-03-14T22:34:53 Make pool adding while running asynchronous, using the pool test thread functionality.
Kano 1c04d140 2013-03-13T23:24:34 cgminer -n to include a USB device list
Con Kolivas ffc8681f 2013-03-12T18:07:17 Merge pull request #403 from kanoi/bflsc USB add --usb options to limit USB device selection v0.1 + --usb-dump display brief dump if value = 0
Con Kolivas b5b3ca49 2013-03-12T22:44:41 Convert gbt_lock to a cg_lock.
Con Kolivas b8ed231f 2013-03-12T22:40:23 Add intermediate variants of cglocks that can be up or downgraded to read or write locks and use them for stratum work generation.
Con Kolivas 26ddd1fd 2013-03-12T22:31:45 Move the stratum and GBT data to be protected under a new cg_lock data_lock.
Con Kolivas fd87825b 2013-03-12T22:17:08 Convert the ch_lock to cg_lock.
Con Kolivas 0bbaaa97 2013-03-12T22:07:06 Convert the control_lock to a cg_lock.
Con Kolivas 74164a3a 2013-03-12T22:00:44 Remove unused qd_lock.
Kano 6d629d68 2013-03-11T11:52:05 do usb_initialise() after the started message so we see it
Kano 3f50e878 2013-03-11T10:58:28 USB add --usb options to limit USB device selection v0.1
Con Kolivas 5412323e 2013-03-09T15:12:41 Fix memory leak with share submission on GPU work structures as discovered by twobitcoins.
Kano f24fab3f 2013-03-09T11:47:36 Show pool number in switch message
Con Kolivas e0196a33 2013-03-09T11:33:50 Don't start testing any pools with the watchpool thread if any of the test threads are still active.
Con Kolivas 81c02123 2013-03-09T09:56:36 Set pool died on failed testing to allow idle flag and time to be set.
Con Kolivas 6c77e9a8 2013-03-09T09:39:19 Perform pool_resus on all pools that are found alive with the test pool threads.
Con Kolivas d932a36c 2013-03-09T09:34:01 Use pool_unworkable in select_balanced as well.
Con Kolivas 90a1114a 2013-03-09T09:31:40 Differentiate pool_unusable from pool_unworkable.
Con Kolivas 3b84131f 2013-03-09T09:07:20 Keep a connection open on higher priority stratum pools to fail back to them.
Con Kolivas f3ce5777 2013-03-09T08:51:51 Rename threads according to what pool they're associated with as well.
Con Kolivas 9b34d821 2013-03-09T08:10:57 Set the wrong bool in pool_active
Con Kolivas de289443 2013-03-08T20:52:54 Revert "Rollback breakage to 81567e515707891837f52bc3aac7d5916dfff5a2" This reverts commit a8863995dee7bcd089e1aa9a3b86cd5c749d0d65. This should work now...
ckolivas 8c878075 2013-03-08T15:32:10 Start the stratum thread only if we successfully init and authorise it, otherwise unset the init flag.
ckolivas e746ed64 2013-03-08T15:18:10 Make the initialisation of the stratum thread more robust allowing the watchpool thread safe access to it after the stratum thread is started.
Con Kolivas d7c4be30 2013-03-07T21:41:01 Only set stratum auth once to prevent multiple threads being started.
Con Kolivas 3db4d6f0 2013-03-07T21:07:15 Display select return value on select fail in stratum thread.
Con Kolivas a8863995 2013-03-07T19:00:47 Rollback breakage to 81567e515707891837f52bc3aac7d5916dfff5a2