Commit Graph

1101 Commits

Author SHA1 Message Date
Con Kolivas
2d6d982bb1 Add buf offset to disconnect message and reset flags on looping 2014-10-03 01:01:31 +10:00
Con Kolivas
a493539a75 Only add strerro if errno != 0 2014-10-03 00:54:21 +10:00
Con Kolivas
17d1455267 Add more info to disconnects 2014-10-03 00:52:09 +10:00
Con Kolivas
255bab88fe Add a maximum diff option 2014-10-03 00:07:43 +10:00
Con Kolivas
857462e16a Simplify the complicated sequential locking to pure choice of write or read in the stratifer 2014-10-02 23:20:06 +10:00
Con Kolivas
55ff1389ee Make ckpool built without ckdb support imply standalone and remove ckdb options when build support is disabled 2014-10-02 20:30:16 +10:00
kanoi
8a9c652065 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-10-02 11:30:41 +10:00
kanoi
0abbed2cf6 ckdb - move remaining data code into ckdb_data 2014-10-02 11:24:31 +10:00
kanoi
ea8ee0d376 ckdb - fix warnings from code break up 2014-10-02 11:03:40 +10:00
Con Kolivas
49e465c8d5 Remove unnecessary extra step in disconnected_sessionid_exists 2014-10-02 02:24:18 +10:00
Con Kolivas
82be9e2cea Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-10-01 23:52:11 +10:00
Con Kolivas
00fc686bbf use a union for the split nonce2 values instead of open coding a pointer version 2014-10-01 23:51:15 +10:00
kanoi
1f16e05f1d Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-10-01 23:11:37 +10:00
kanoi
50b90b4046 ckdb - break up into parts 2014-10-01 23:09:29 +10:00
Con Kolivas
10777b6f25 Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-10-01 23:03:58 +10:00
Con Kolivas
ba506f6262 Fix more 64bit print modifiers 2014-10-01 23:03:35 +10:00
kanoi
8376ccffb4 php - remove old 'lastblock's 2014-09-30 23:24:41 +10:00
kanoi
cc47b062ce Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-09-30 21:56:04 +10:00
kanoi
64db53c390 ckdb/php - add worker diff management 2014-09-30 21:55:23 +10:00
kanoi
287b75b7c4 ckdb - remove some web duplicate messages from the console 2014-09-30 19:39:33 +10:00
Con Kolivas
4d230435db Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-09-30 16:00:59 +10:00
Con Kolivas
82c7f24614 Add support for setting worker diff and mining.suggest_difficulty parsing 2014-09-30 15:49:26 +10:00
kanoi
d2d219cf81 ckdb - add 24hr to workers stats 2014-09-30 10:55:13 +10:00
Con Kolivas
fff2028591 Avoid uninit buf 2014-09-29 21:40:23 +10:00
Con Kolivas
87336835f6 Log combined per worker stats in a workers subdirectory 2014-09-29 21:35:47 +10:00
Con Kolivas
f54aa412b1 Create a linked list of each worker per user and decay per worker shares separately 2014-09-29 21:22:28 +10:00
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 2014-09-29 21:01:15 +10:00
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. 2014-09-29 17:30:15 +10:00
Con Kolivas
8a0d0667e3 Check for initialised ckmsgq when checking if the queue is empty 2014-09-29 17:25:52 +10:00
Con Kolivas
90f5936956 Add a helper function to detect when a ckmsgq is empty 2014-09-29 17:21:54 +10:00
Con Kolivas
ff2ee66e77 Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-09-29 16:16:44 +10:00
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 2014-09-29 16:16:29 +10:00
Con Kolivas
e4f1a87050 Add a helper function for pthread_mutex_timedlock 2014-09-29 16:01:48 +10:00
kanoi
a285628a49 ckdb - allow a heartbeat from the pool and give a generic reply 2014-09-29 11:43:07 +10:00
kanoi
e44de0112b ckdb/php - add some block stats to workers 2014-09-28 22:54:26 +10:00
kanoi
87219bd7e2 ckdb - allow optional fields to report errors 2014-09-28 22:00:06 +10:00
Con Kolivas
67a3dbc0c3 Merged in ticaleen/ckpool (pull request #5)
For mutisign
2014-09-27 17:22:37 +10:00
li xin
28a42cd1ef Merged in ticaleen/bitcoinc-edited-online-with-bitbucket-1411800219113 (pull request #1)
bitcoin.c edited online with Bitbucket
2014-09-27 14:44:12 +08:00
li xin
5021a3d40f bitcoin.c edited online with Bitbucket 2014-09-27 06:43:46 +00:00
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 2014-09-26 21:20:35 +10:00
Con Kolivas
eeba52e716 Remove enonce1 debugging 2014-09-26 11:31:28 +10:00
Con Kolivas
8c44df96cb Ignore reject floods on initial connect 2014-09-26 11:28:38 +10:00
Con Kolivas
c4506c7e47 Round away from zero when choosing optimal diff 2014-09-26 11:20:49 +10:00
Con Kolivas
3d6601d20c Maximise the nonce2 size in proxy mode and ensure we don't clash enonce1 instances, rejecting clients when there is no more space available 2014-09-26 09:57:54 +10:00
Con Kolivas
b44a347e97 Add console warning on restart 2014-09-25 22:59:05 +10:00
Con Kolivas
b99efe8071 Give listener response to restart request 2014-09-25 22:58:10 +10:00
Con Kolivas
22c9d7c393 Wait up to 10 minutes for a response in proxy mode for p2pool which does not send an update regularly 2014-09-25 22:51:17 +10:00
Con Kolivas
36436b0c4c Use singly linked list only for dead clients and don't keep disconnected instances in proxy mode 2014-09-25 22:47:40 +10:00
Con Kolivas
79c99c4daf Must check against upstream diff before submitting 2014-09-23 09:18:28 +10:00
Con Kolivas
d928c154ee Submit only valid and stale shares upstream in proxy mode and add logging about submits in verbose mode 2014-09-23 09:15:12 +10:00