1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 06:18:06 +00:00
Commit Graph

3566 Commits

Author SHA1 Message Date
Con Kolivas
580607cf1c Update kernel file names signifying changes. 2013-03-02 17:17:52 +11:00
Con Kolivas
2c3a946cf9 Update a pool's last work time when the work is popped as well as staged. 2013-03-02 16:01:37 +11:00
Con Kolivas
5c32a47b96 Merge pull request #375 from luke-jr/bugfix_cfgwrite_fnleak
Free filename entry for writing config file when done with it
2013-03-01 14:29:20 -08:00
Con Kolivas
b4cac54a7e Keep stratum connections open for 2 minutes after the last work item was staged to allow stray shares to be submitted on pool switching. 2013-02-28 23:35:31 +11:00
Con Kolivas
3c949e5f6c Try to extract the sessionid associated with mining.notify on 3rd level array and submit it along with the userid to support mining resume, failing gracefully and restarting if the pool rejects it. 2013-02-25 10:43:48 +11:00
Con Kolivas
d9d5a1a0b6 Speed up watchdog interval and therefore display updates to 2 seconds. 2013-02-25 10:43:47 +11:00
Con Kolivas
5a3b374962 Update copyright dates. 2013-02-25 08:59:11 +11:00
Con Kolivas
3dcdb94921 Cope with misread sessionid on stratum for now. 2013-02-23 13:07:47 +11:00
Con Kolivas
b1ae45f782 Use constants from the array of __constants throughout the diablo kernel. 2013-02-22 22:17:56 +11:00
Con Kolivas
f72fa0389a Create a __constant array for use within diablo kernel. 2013-02-22 21:58:19 +11:00
Con Kolivas
d16d4928f7 Fix --benchmark generating valid work for cgminer. 2013-02-22 21:41:47 +11:00
ckolivas
6a0882f05b Use the sessionid as passed on stratum connect to attempt to resume a connection once and then clear it if it fails, to use a new connection. 2013-02-22 16:55:39 +11:00
ckolivas
68d691093c Move to storing the nonce1 in the work struct instead of the sessionid for the now defunct first draft mining.resume protocol. 2013-02-22 12:55:01 +11:00
Con Kolivas
7f595ca04b Use global constant arrays for all other constants used in scrypt kernel. 2013-02-21 22:11:36 +11:00
Con Kolivas
9b6a518acf Use global __constants for sha functions in scrypt kernel. 2013-02-21 21:51:49 +11:00
Con Kolivas
6bb942ffe5 Use constants for endian swap macros. 2013-02-21 21:34:48 +11:00
Con Kolivas
f08c3f766d Revise scrypt kernel copyright notice. 2013-02-21 21:17:19 +11:00
Con Kolivas
3d032ce615 Separate out additions in scrypt kernel. 2013-02-21 21:13:02 +11:00
Con Kolivas
64f2c065a6 Reuse some Vals[] variables that can be assigned to constants earlier in the poclbm kernel, making for fewer ops. 2013-02-21 12:05:26 +11:00
Con Kolivas
19725e7cdb Put all constants used in poclbm kernel into __const memory array to speed up concurrent reads on the wavefront. 2013-02-21 12:04:01 +11:00
Con Kolivas
a7859bb416 Merge pull request #386 from luke-jr/bugfix_20130215a
Bugfix: Missing pool_no parameter to applog for no-stratum-sessionid debug message
2013-02-16 03:52:06 -08:00
Con Kolivas
4fdd45af6b Merge pull request #387 from luke-jr/bugfix_20130215b
Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free
2013-02-16 03:51:33 -08:00
Luke Dashjr
0847d45867 Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free 2013-02-16 06:46:00 +00:00
Luke Dashjr
7473c3dc94 Bugfix: Missing pool_no parameter to applog for no-stratum-sessionid debug message 2013-02-16 05:06:38 +00:00
Con Kolivas
0b83313161 Fix tv_lastupdate being made into tv_end and update the hashmeter on cycle, not opt_log_interval. 2013-02-16 09:08:19 +11:00
Con Kolivas
0f7ab3670c Only continue submitting shares with mining.resume support on stratum when the session id matches. 2013-02-15 23:11:13 +11:00
Con Kolivas
be4705a003 Provide support for mining.resume with stratum, currently re-authorising after successful resumption pending finalising of the protocol process. 2013-02-15 23:05:29 +11:00
Con Kolivas
4cde791e9f Provide basic framework for restarting stratum depending on whether resume support exists or not. 2013-02-15 21:31:44 +11:00
Con Kolivas
c29df9760f Abstract out the setting up of the stratum curl socket. 2013-02-15 21:03:39 +11:00
Con Kolivas
16c7c983ae Free sessionid in clean_work and remove redundant setting of strings to NULL since the whole work struct is zeroed. 2013-02-15 20:27:07 +11:00
Con Kolivas
8fdf6d5c64 Only clear stratum shares mandatorily on stratum dropouts when the pool does not support resume. 2013-02-15 18:34:54 +11:00
Con Kolivas
f60637c3f9 Try resubmitting stratum shares every 5 seconds for up to 2 minutes if the pool session id exists and matches on failure to submit. 2013-02-15 17:48:13 +11:00
Con Kolivas
7e8019acdd Do as much outside of mutex locking of sshare_lock as possible. 2013-02-15 16:13:24 +11:00
Con Kolivas
7551b88d00 Remove last reference to struct work used outside the sshare_lock in submit_work_thread 2013-02-15 16:09:36 +11:00
Con Kolivas
ebb99e5a8d Unlock the sshare_lock in submit_work_thread when all references to work and sshare are complete. 2013-02-15 16:05:21 +11:00
Con Kolivas
1bf1f4a217 Add timestamps to stratum_share structs as they're generated and copy the stratum sessionid if it exists to stratum work generated. 2013-02-15 15:36:29 +11:00
Con Kolivas
c851f39598 Store session id for stratum if the pool supports it for future mining.resume support. 2013-02-15 14:46:30 +11:00
Con Kolivas
266d31271a Make the numbuf larger to accept larger scrypt parameters. 2013-02-10 15:07:49 +11:00
Con Kolivas
775a1abc06 Keep the unique id of each work item across copy_work to prevent multiple work items having the same id. 2013-02-10 13:28:06 +11:00
Con Kolivas
5f8d53b84a Change file modes. 2013-02-07 17:55:02 +11:00
Con Kolivas
47db8e99be Bump version to 2.10.5 2013-02-07 16:41:39 +11:00
Con Kolivas
b8e20d078e News update. 2013-02-07 16:40:31 +11:00
Con Kolivas
903c666326 Fix logic fail on partial writes with stratum send that was leading to corrupt message submissions. 2013-02-07 16:38:11 +11:00
Con Kolivas
3804850141 Do not consider every call to stratum_resumed a pool recovery unless it was actually idle. 2013-02-07 13:51:54 +11:00
Con Kolivas
73b7d7b0c9 Do not enable the pool disable on reject feature unless explicitly enabled with --disable-rejecting. 2013-02-05 21:47:26 +11:00
Kano
f52f02e9b7 Stratum disconnect shares - count total against stale 2013-02-05 21:34:39 +11:00
Con Kolivas
ffdcaed49d Use sanity checking to prevent a possible overflow with invalid data being given by the pool for difficulty as reported by luke-Jr. 2013-02-05 21:10:18 +11:00
Con Kolivas
81025611ac Check for calloc failure for completeness in gen_stratum_work. 2013-02-04 11:22:08 +11:00
Con Kolivas
d644fdf1f4 Cache the coinbase length to speed up stratum work generation. 2013-02-04 11:19:12 +11:00
Con Kolivas
0870ab7532 Cache the header length when generating stratum work to avoid calculating it on every work generation, and to only need one alloc+sprintf, speeding up work generation. 2013-02-04 11:06:05 +11:00