Commit Graph

781 Commits

Author SHA1 Message Date
Con Kolivas
97b03d016f Make all file opens close on exec to prevent leaving files open on existing and possible future execves 2014-08-24 19:21:16 +10:00
Con Kolivas
d0faecad64 Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-08-24 15:55:31 +10:00
Con Kolivas
8ca6d871e8 The secondary user id is unique only per user instance so move field there and reuse, fixing preauth scenario 2014-08-24 15:55:19 +10:00
ckolivas
38db91bf74 Use a pthread conditional to wake the workqueue in ckdb with a 420ms timeout instead of polling every 4ms 2014-08-24 15:19:47 +10:00
Con Kolivas
cfa9824b08 Convert uses of json_pack to JSON_CPACK in the generator 2014-08-24 14:42:24 +10:00
Con Kolivas
159a6b2e7c Convert uses of json_pack in the stratifier to the JSON_CPACK helper 2014-08-24 14:38:37 +10:00
Con Kolivas
67f6a0148c Provide a macro helper for json_pack that checks the return value and describes what the error is and where it came from 2014-08-24 14:38:08 +10:00
Con Kolivas
f26273f34f Attempt failover when bitcoind socket is invalidated 2014-08-24 13:18:47 +10:00
Con Kolivas
3a66955ae6 Add a preauth field for authorisations 2014-08-23 19:21:12 +10:00
Con Kolivas
7661f4206b Don't try to submit a block locally in proxy mode if we're missing transactions 2014-08-23 18:42:20 +10:00
Con Kolivas
5f6b5e0abb Allow a btcd to be used to submit blocks to locally in proxy mode to help perpetuate block solves more rapidly 2014-08-23 18:01:45 +10:00
Con Kolivas
2a03942cbc Automatically authorise clients if a client with the same username has already been authorised while ckdb is offline and queue the auth message to be sent when ckdb comes back online 2014-08-23 16:58:12 +10:00
kanoi
64c7a27466 php - add a payout description 2014-08-23 02:04:14 +10:00
kanoi
5fda351d37 ckdb - remove stupid gcc warning 2014-08-22 23:25:51 +10:00
kanoi
6e3b17b5b9 ckdb - remove gcc warnings 2014-08-22 23:22:03 +10:00
kanoi
0217a4c3c4 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-08-22 23:15:21 +10:00
kanoi
86c902b2f8 ckdb - add a UTC timestamp to the end of the New block message 2014-08-22 23:15:02 +10:00
kanoi
792a4c7808 ckdb - sharesummary confirmation check with -y (no db changes) 2014-08-22 23:01:21 +10:00
Con Kolivas
a0cf598c83 Inline the only caller of noutf8_iterate 2014-08-22 15:13:49 +10:00
Con Kolivas
f794f4afab Add not no utf8 flag to json we know will only contain ascii 2014-08-22 14:40:56 +10:00
Con Kolivas
1dfc48698b Provide a way to dump json when it is known there is no utf8 in it 2014-08-22 14:33:44 +10:00
Con Kolivas
6a224caf1f Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-08-22 10:54:32 +10:00
Con Kolivas
4d9dc10206 Use realloc in strbuffer_append_bytes 2014-08-22 10:34:57 +10:00
kanoi
2e39830d98 php - typo 2014-08-21 19:26:24 +10:00
kanoi
b8a2eef73b php - put back removed rate 2014-08-21 19:19:50 +10:00
kanoi
5cbbad7ac6 php - format stats numbers 2014-08-21 19:17:51 +10:00
kanoi
f8725a3a69 ckdb/php - add 5m hashrate to allusers and use it 2014-08-21 18:16:01 +10:00
kanoi
8e2d94baf6 php - clarify the pool user stats hash rate 2014-08-21 17:49:13 +10:00
kanoi
dea3640846 php - add restricted ckdb stats 2014-08-21 15:53:34 +10:00
kanoi
b883f02977 php - add an 's' 2014-08-21 14:52:58 +10:00
kanoi
fbdfb06074 php - add a blank payout help page 2014-08-21 14:50:27 +10:00
kanoi
1a23e26876 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-08-21 13:51:22 +10:00
kanoi
ec1dc12332 ckdb - update username pattern and docs 2014-08-21 13:50:03 +10:00
Con Kolivas
31221dd0b4 Clamp max diff in proxy mode to the current upstream pool's diff 2014-08-21 13:27:29 +10:00
Con Kolivas
5ef0829c74 Don't bother counting share diff until it matches the client set diff and don't reproduce the diff change job id test already performed when determining diff in parse_submit 2014-08-21 12:26:19 +10:00
Con Kolivas
03ba50a3e2 Workbase_id should be updated even in proxy mode or diff will only change once 2014-08-21 12:14:28 +10:00
Con Kolivas
a95c259839 Clamp optimal diff after all calculations are made and store min and start diff as long integers 2014-08-21 11:17:19 +10:00
Con Kolivas
90782542f8 Change attempted block submission to 99%+ only 2014-08-21 10:53:39 +10:00
kanoi
f15273ca53 ckdb - add some examples in the socket doc 2014-08-21 09:10:14 +10:00
kanoi
f36b2763bc ckdb - remove a wakeup semaphore and replace with a short sleep 2014-08-20 21:22:26 +10:00
kanoi
a12d67fdef ckdb - name the threads 2014-08-20 20:48:41 +10:00
kanoi
d56a878682 ckdb - remove extra unnecessary lock 2014-08-20 20:09:23 +10:00
kanoi
e45ef004ef ckdb - non locking ckdb log - since it's not that critical 2014-08-20 19:53:13 +10:00
kanoi
a686579cd1 ckdb - respect global loglevel 2014-08-20 17:40:08 +10:00
kanoi
0a862aa78e php - update the registered message - no email yet 2014-08-20 15:02:57 +10:00
kanoi
be0f04fad6 php - clean page index ... for now 2014-08-20 14:23:55 +10:00
kanoi
d28c2314e7 ckdb - comment on the socket command format in the code 2014-08-20 13:44:18 +10:00
kanoi
dea48455b6 php - add commas and remove unneeded decimals 2014-08-20 05:30:20 +10:00
kanoi
1c66abb0a9 ckdb - add round share count to 'homepage' and php 2014-08-20 05:14:35 +10:00
kanoi
2b47ce872b ckdb - update some internal TODO documentation 2014-08-20 02:59:33 +10:00