cgminer.c


Log

Author Commit Date CI Message
Con Kolivas e8a1c9eb 2013-09-07T15:41:07 Increase the time for the waiting for work message to be given to be greater than that required for a pool swap in the scheduler which is set to 5s.
Con Kolivas ea4a1ff9 2013-09-07T15:36:48 Change message in status when using a balanced pool strategy to notify if there's a stratum pool as well.
Con Kolivas 77b3b185 2013-09-07T15:29:18 Add quota support to configuration files.
Con Kolivas ea7b2a7d 2013-09-07T12:14:16 Rotate pools on all failures to set a pool in select_pool.
Con Kolivas 7c19984f 2013-09-07T12:12:24 Use quotas for load-balance pool strategy.
Con Kolivas 0121b75a 2013-09-07T11:33:07 Provide a mechanism for setting a pool quota to be used by load-balance.
Con Kolivas 770556cd 2013-09-07T09:39:03 Use the --socks-proxy option with stratum, changing it to defaulting to socks5 and give appropriate message should it fail to connect.
Con Kolivas 8ede407d 2013-09-05T23:10:19 Make extract_sockaddr set variables passed to it rather than pool struct members.
Con Kolivas 5bf9856a 2013-09-03T11:38:58 take_queued_work_bymidstate should use a write lock.
Kano 76185ede 2013-09-01T00:23:26 API mcast add a description option with miner.php
Con Kolivas 1d5d28d7 2013-08-31T21:36:15 Skip dissecting opt->names in parse_config if it doesn't exist.
ckolivas 0f42fd3f 2013-08-29T11:10:13 Remove unused HAVE_LISBUSB macro and use USE_USBUTILS everywhere.
Con Kolivas 572df102 2013-08-27T20:29:47 Provide a funcion that looks up queued work by midstate and then removes it from the device hash database.
Con Kolivas ab917082 2013-08-25T10:53:06 Only count submitted nonces as diff1shares if they're valid.
Kano febcc53d 2013-08-23T16:34:42 Update the API Multicast documentation
Kano 14ac6fa5 2013-08-22T09:27:49 Initial API Multicast response v0.1 to find cgminer APIs
Con Kolivas b9aa5b65 2013-08-21T20:31:10 Check for cnx_needed on each loop through wait_lp_current.
Con Kolivas 919a836f 2013-08-21T20:29:46 Return positive for cnx_needed when no_work is true.
Con Kolivas 7dbe4bbe 2013-08-21T20:12:00 Stratum is used more often so test for it first.
Con Kolivas a52ec336 2013-08-21T20:09:17 Reorder support names alphabetically.
ckolivas 77f9400c 2013-08-21T12:15:40 Only display the no pool work message once if there are multiple waiters in hash_pop
ckolivas 20de9226 2013-08-21T11:21:13 Provide a message and set a bool when no work is available from any pools and when it resumes again.
ckolivas 0e43084c 2013-08-21T11:05:21 We don't want to continue into the hash_pop function if the getq is frozen.
ckolivas cbea0a53 2013-08-21T10:56:31 Only report threads in and out in queued work devices across a get work since the rest happens asynchronously and the get work is what the device might be waiting on.
ckolivas b12badc9 2013-08-21T10:47:32 Thread reportin and out can be static non inline.
Con Kolivas ee2a5ae8 2013-08-20T20:46:09 TimeBeginPeriod and TimeEndPeriod do not add significant overhead when run the entire time for cgminer so avoid trying to maintain balanced numbers of them for specific time calls to simplify code.
Con Kolivas eeac9d81 2013-08-20T19:23:49 Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements.
Con Kolivas 78d78b10 2013-08-19T19:10:41 Import Aaron D. Gifford's fast sha256 implementation.
Con Kolivas a61e41a0 2013-08-19T15:58:22 Check for thr->work_restart in restart_wait.
Con Kolivas 98e338cc 2013-08-14T22:59:57 Provide a variant of find_work_bymidstate that returns a clone of the found work.
Con Kolivas e95ad047 2013-08-13T22:44:22 Nonce2 stratum submission is not working with nonce2 lengths >4, revert the buggy __bin2hex function and use bin2hex.
Con Kolivas 1d614599 2013-08-13T14:35:35 Add room for the null byte at the end of the nonce2 string on stratum share submission and zero the allocated ram.
Con Kolivas c8aac741 2013-08-13T06:09:42 Only perform the bin2hex on nonce2 data if it's required for stratum submission, thereby removing the last conversion of that type from stratum work generation.
Con Kolivas 87ae66c7 2013-08-13T05:49:32 Create a work data template when receiving stratum notification, allowing a simple memcpy of the merkle root avoiding more hex2bin conversions on each work generation.
Con Kolivas 34bc106d 2013-08-13T04:57:04 Export the workpadding char in miner.h
Con Kolivas 46b6b07a 2013-08-12T16:02:20 Avoid a potential overflow should a pool specify a large nonce2 length with stratum.
Con Kolivas 0379123b 2013-08-12T15:23:35 Avoid one more hex2bin in gen stratum work.
Con Kolivas 11bcf2b3 2013-08-12T11:40:17 Rename work gbt_coinbase to coinbase to be in line with pool variable name.
Con Kolivas 5237bf35 2013-08-12T11:36:28 Perform merkle bin hex2bin on stratum notify to avoid doing it on each work generation.
Con Kolivas 8bc469e9 2013-08-12T11:16:46 Reuse just the one pool coinbase variable in stratum, avoiding more string functions and storage in gen_stratum_work on each work generation.
Con Kolivas 8c8ef6ff 2013-08-12T10:58:43 Rename pool gbt_coinbase variable to coinbase to combine it with the stratum coinbase data.
Con Kolivas c542e47a 2013-08-12T10:49:38 Use a nonce2 offset variable for both gbt and stratum to consolidate requirements on work generation.
Con Kolivas fb94dfa0 2013-08-12T01:15:22 Cache as much of the gbt coinbase as possible to avoid doing unnecessary hex2bin conversion on every work generation with gbt.
Con Kolivas a1052188 2013-08-12T00:27:22 We should be using a cg_wlock initially in generating stratum and gbt work before downgrading the lock.
Con Kolivas b423fe9d 2013-08-11T14:06:17 Cache the hex2bin of pool nonce1 in stratum, avoiding hex2bin on each work generation.
Con Kolivas fef649df 2013-08-11T13:47:46 Cache the binary generation of coinbase1 and 2 on stratum, avoiding a hex2bin of coinbase1 and 2 on each work generation.
Con Kolivas 580b77b7 2013-08-09T21:52:54 Fix warning.
Con Kolivas 106e461f 2013-08-09T16:57:16 Recreate curses windows on windows when a device is hotplugged to allow window resizing without crashing.
Con Kolivas 2b171f7f 2013-08-09T15:12:57 Limit intensity range according to whether scrypt is in use or not.
Con Kolivas cb6d62de 2013-08-09T06:48:59 Do not allow benchmark mode to be used with scrypt.
Con Kolivas d71e9f91 2013-08-09T06:43:25 Add a --bflsc-overheat command which allows you to set the throttling temperature for BFLSC devices or disable it.
Con Kolivas 812852cc 2013-08-09T06:31:57 Move bflsc defines to a header file.
kanoi 8dc09356 2013-08-05T01:18:51 Merge pull request #467 from someone42/master Support for BitBurner boards
Olivier Langlois c31ff572 2013-07-29T23:53:20 remove unnecessary memcpy The next operation is flipping the merkleroot on the same destination. Signed-off-by: Olivier Langlois <olivier@olivierlanglois.net>
Chris Chua dc4ca0de 2013-07-30T00:15:45 using more concise description
Chris Chua b0f4d55b 2013-07-29T21:39:29 changes to Avalon driver for BitBurner boards
Kano a8c974f5 2013-07-18T08:51:08 set device_drv function noops when first add_cgpu
Kano a9e10988 2013-07-06T22:08:17 force type checking on curses
Kano 74d71cce 2013-07-06T20:47:49 cgminer - size check all sprintf
Kano ad1572f7 2013-07-06T20:17:17 size check get_datestamp/get_timestamp and remove unused cgpu->init
Kano 385a70be 2013-07-06T19:15:59 make all statline overflow safe
Kano df05174e 2013-07-05T18:26:18 WU only needs +2 width
Con Kolivas 42d96ee7 2013-07-02T20:41:44 Convert the decay_time function into one that truly creates an exponentially decaying average over opt_log_interval.
Con Kolivas 065b6a5e 2013-07-01T15:38:15 Provide an --avalon-freq command line to give a valid range of frequencies for avalon in auto mode.
Con Kolivas f142a4de 2013-07-01T10:41:22 Allow the avalon fanspeed range to be passed as parameter on the command line, default to 20-100%
Con Kolivas 1b81ecf9 2013-06-30T15:51:46 Just display A: and R: for difficulty accepted and rejected to preserve screen real estate and decrease decimal places for WU.
Kano a94b7be3 2013-06-29T08:41:22 correct device DR: and remove global U:
Kano 800dc249 2013-06-29T01:43:18 Update all screen A/R to instead use DA/DR and device U to WU
Con Kolivas e811c4dc 2013-06-26T00:15:04 Add an avalon-auto option which enables dynamic overclocking based on hardware error rate for maximum effective hashrate.
Con Kolivas 9b45daba 2013-06-25T19:39:42 Add an --avalon-cutoff feature which puts the avalon idle should it reach this temperature, defaulting to 60, re-enabling it when it gets to target temperature.
Con Kolivas 661a448a 2013-06-24T12:46:26 Fix build warning.
Con Kolivas 1fca632f 2013-06-24T11:04:02 Add an --avalon-temp option to allow a user specified target temperature.
Con Kolivas 2ab7dac2 2013-06-23T17:03:59 Demote the invalid nonce warning to log info.
Con Kolivas 94e636a9 2013-06-21T17:02:13 Only update hashmeter if we have done hashes or haven't updated longer than the log interval, fixing a us/ms error.
Con Kolivas ccfa8935 2013-06-19T13:20:25 Increase watchdog sick time to longer than it takes for a pool to be detected dead.
Kano e300e502 2013-06-19T11:59:28 disable curses device resize that crashes on windows
Con Kolivas e0c4d35b 2013-06-18T20:59:45 Multiplier fail for microseconds vs milliseconds when updating hashmeter in hash_queued_work.
Con Kolivas 6eb7f622 2013-06-18T20:30:48 Only make threads report in/out across the actual driver code and update their status on reporting out as well as in.
Con Kolivas 7014bd6b 2013-06-17T21:20:36 Difficulty should be unconditionally byteswapped, not swapped to big endian.
Kano 7eba9634 2013-06-15T22:03:56 remove varargs from logging/quit/in general as much as possible
Con Kolivas 6789c96f 2013-06-15T01:37:00 Off by one error in device count for display.
Con Kolivas 994c0245 2013-06-15T01:31:37 Don't display devices beyond the most_devices count in the curses status.
Con Kolivas cd9ff7f6 2013-06-15T01:28:00 Only display as many device rows as the maximum live existed at any time.
Kano 7ad9132b 2013-06-15T01:02:27 usb lock out use cg locks
Kano ad30d41f 2013-06-14T23:48:03 usb lock out transfers during open/close
Con Kolivas 42891f07 2013-06-13T16:59:06 Merge pull request #444 from zenwheel/master Compile UNIX conditionals on Mac OS X
ckolivas 465ca142 2013-06-14T09:57:05 Only show efficiency in pool information for pools that don't support local work generation.
ckolivas 9aeed2f9 2013-06-14T09:56:22 Create a pool_localgen bool function for testing when a pool can generate work locally.
Scott Jann 16587dd7 2013-06-13T18:50:50 compile unix code on Mac OS X fixes not finding the config file in $HOME
Kano 84ffcbc5 2013-06-14T01:09:50 Use mining start time for device MH/U calculations
Con Kolivas 24398bde 2013-06-09T16:38:57 cgsem_post after creating the thread info
ckolivas 9b2e517f 2013-06-09T12:20:04 Use cgsem structures instead of the flaky pings in the work queue to start mining threads and remove the unused thr_info_freeze function.
ckolivas b59c3380 2013-06-06T13:08:00 Implement cgminer specific cgsem semaphores to imitate unnamed semaphore behaviour on osx which does not support them.
Con Kolivas dd578876 2013-06-04T21:49:28 Fix build for !curses
Con Kolivas 03305afb 2013-06-03T16:49:15 Remove start device limitation on log window size to allow it to get larger with hotplugged devices.
Con Kolivas fc95c191 2013-06-03T16:38:40 Switch logsize after hotplugging a device.
Con Kolivas cc9223f0 2013-06-03T16:37:56 Change switch_compact function name to switch_logsize to be used for other changes.
Con Kolivas 514491bd 2013-06-03T16:01:20 Only adjust cursor positions with curses locked.
Kano 12045aae 2013-06-03T12:26:50 devs display - fix GPU duplicate bug
Con Kolivas 5f2c4f13 2013-06-03T11:28:18 Do not hotplug enable a device if devices have been specified and the hotplug device falls outside this range.