433 Commits (73cc2eb40591aa02c69fbd798ffffe4d384f3708)

Author SHA1 Message Date
Con Kolivas ad4e959a80 Clamp suggest diff to pool mindiff directive 10 years ago
Con Kolivas 9dae34e3fa Make update_base calls asynchronous to not hold up stratum loop messages and ping miners if we get no base to keep them mining 10 years ago
Con Kolivas c0aba3449f Add support for job_id being in the params for get_transactions while maintaining backward support for job_id being embedded in the method. Convert get_txnhashes to using only params for the job_id. 10 years ago
Con Kolivas d6955d3345 Remove lower limit on suggest-diff since it is usually only set on initial client connect 10 years ago
ckolivas cab3e94ada Allow reconnect to take a :url,port extension to specify where to reconnect to 10 years ago
Con Kolivas 17bb17f233 Try sanitising too short nonce2 submissions as well as too long by appending 0s 10 years ago
Con Kolivas eabc96c5e1 Failure to update subscribe should not be terminal 10 years ago
Con Kolivas 88471cabc9 Implement support for the more logical positioning of diff within suggest_difficulty parameters instead of the method itself while maintaining support for the original reference documented form 10 years ago
Con Kolivas 4a4e12a7ad Fix nonce2 sanitisation 10 years ago
Con Kolivas 71cdbfa560 Create a list of solved blocks, passing the hash to and from the generator to ensure we flag the correct block and workinfo 10 years ago
Con Kolivas 1176d71211 Decrease the loglevel of failing to find workers' diff to set 10 years ago
Con Kolivas 5532de0f1b Implement a stratum reconnect function 10 years ago
Con Kolivas a33dfd066a There is no need to place the clamp on lowering diff with suggest_diff since it is predomoninantly used at miner startup and we can rapidly adapt should it be too low anyway 10 years ago
kanoi 7d59f98624 stratifier - process the heartbeat json 10 years ago
Con Kolivas c8a330dbd8 We should be doing a cmdmatch not a full string match for heartbeat commands 10 years ago
Con Kolivas 4d69bd2423 Wrong test on result_val 10 years ago
Con Kolivas e8179cd951 Drop log level for failed auth json decode failure 10 years ago
Con Kolivas fcfc06e77b More logic fail 10 years ago
Con Kolivas 5fd152c370 Reverse logic 10 years ago
Con Kolivas f3254ea170 Check for addrauth as well in send_recv_auth 10 years ago
Con Kolivas 574d028d95 Parse the ckdb heartbeat response for setting worker mindiff 10 years ago
Con Kolivas 6a72525b8b Search for authorise in response instead of auth to match query 10 years ago
Con Kolivas 27ac4e23ef Parse the difficultydefault entry returned from authorise 10 years ago
Con Kolivas 3288b15622 Parse new auth command from ckdb 10 years ago
Con Kolivas 03878efb0e The stats on idle miners were being decayed with the wrong time interval so would appear to drop to almost zero on any idle period 10 years ago
Con Kolivas b08f4bcb69 Drop clients lazily when the proxy is full 10 years ago
Con Kolivas 1b45079802 Keep track of clients that submit a run of continuous rejects and send them a diff update if they do it for longer than 1 minute and then lazily drop them if it goes beyond 2 minutes 10 years ago
Con Kolivas 1f68a5a98b Use the Close handler in the stratifier 10 years ago
Con Kolivas 070a1a3b3e Cache reused bias calculations 10 years ago
Con Kolivas 6acb482e7a Bias workers as well as users 10 years ago
Con Kolivas 6ba4cf50a5 There is no need to bias 60 second times, and we should bias worker stats 10 years ago
Con Kolivas 1e175d851c Missing valid but not submitted count for proxy 10 years ago
Con Kolivas 53641a9c24 Prevent wb dereference in parse_submit 10 years ago
Con Kolivas 600e6923fc Count only accepted and stale rejects in diff calculation 10 years ago
Con Kolivas 0f7daecac4 Stats on 1st reject were being missed 10 years ago
Con Kolivas 255bab88fe Add a maximum diff option 10 years ago
Con Kolivas 857462e16a Simplify the complicated sequential locking to pure choice of write or read in the stratifer 10 years ago
Con Kolivas 55ff1389ee Make ckpool built without ckdb support imply standalone and remove ckdb options when build support is disabled 10 years ago
Con Kolivas 49e465c8d5 Remove unnecessary extra step in disconnected_sessionid_exists 10 years ago
Con Kolivas 00fc686bbf use a union for the split nonce2 values instead of open coding a pointer version 10 years ago
Con Kolivas ba506f6262 Fix more 64bit print modifiers 10 years ago
Con Kolivas 82c7f24614 Add support for setting worker diff and mining.suggest_difficulty parsing 10 years ago
Con Kolivas fff2028591 Avoid uninit buf 10 years ago
Con Kolivas 87336835f6 Log combined per worker stats in a workers subdirectory 10 years ago
Con Kolivas f54aa412b1 Create a linked list of each worker per user and decay per worker shares separately 10 years ago
Con Kolivas dd6a576935 Remove the linked list of dead clients and maintain a linked list of all workers by user, and store stats per combined workername 10 years ago
Con Kolivas 991877134a Send a heartbeat every second to ckdb to allow ckdb to send information not specifically requested while maintaining ckpool msg-response relationship. Do not send heartbeats if there are messages queued already for when ckdb is offline/busy. 10 years ago
Con Kolivas 17c2276e33 Ensure we have serialised access to ckdb by using a mutex on submit/receives for auths since other responses are mostly ignored 10 years ago
Con Kolivas e441e65c53 Ping miners regularly in proxy mode to ensure they don't disconnect when diff is too high for them and they receive no update 10 years ago
Con Kolivas eeba52e716 Remove enonce1 debugging 10 years ago