Commit Graph

381 Commits

Author SHA1 Message Date
Con Kolivas
333d05fb3a Create a json sending wrapper for ckdb and fix int64 usage in packed json 2014-06-17 08:36:15 +10:00
Con Kolivas
47f10cbf22 Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-06-17 00:50:39 +10:00
Con Kolivas
62f9f7b300 Do basic authorisation, duplicating the required 2nd UID 2014-06-17 00:50:02 +10:00
kanoi
2acf1d527c ckdb - add missing poolinstance to workinfo_add 2014-06-17 00:43:09 +10:00
kanoi
cbb0cb9ae2 ckdb - correct param count for workinfo_add 2014-06-17 00:36:50 +10:00
kanoi
d406fc3b5e Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-06-17 00:29:01 +10:00
kanoi
569cca8a53 ckdb - id only added to reply in listener() 2014-06-17 00:27:36 +10:00
Con Kolivas
9111c4fdf9 Send stats to ckdb 2014-06-17 00:23:33 +10:00
Con Kolivas
83eb0821ed Send workinfo sharelog 2014-06-17 00:22:05 +10:00
Con Kolivas
bd4716ca4f Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-06-17 00:12:50 +10:00
Con Kolivas
1debfd1f45 Send auth and share messages to ckdb 2014-06-17 00:12:31 +10:00
kanoi
e8740d6eaa Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-06-17 00:04:10 +10:00
kanoi
03b6244a61 initid - force bash 2014-06-17 00:03:41 +10:00
Con Kolivas
73599ea10d Add a function for sending a message to ckdb and getting its response 2014-06-16 23:45:58 +10:00
Con Kolivas
a910decebd Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-06-16 23:33:47 +10:00
Con Kolivas
5f5ef3c712 Parse and store the socket directory and name for ckdb 2014-06-16 23:33:33 +10:00
kanoi
144d389a8d Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-06-16 23:31:42 +10:00
kanoi
76e43f1130 ckdb - allow json real and string array 2014-06-16 23:29:30 +10:00
Con Kolivas
c6c5c4f486 Add reward to the workinfo database dump 2014-06-16 23:01:16 +10:00
Con Kolivas
73b25d8917 Fix parameters to match messages we will send to ckdb 2014-06-16 22:46:12 +10:00
kanoi
de86a49dec ckdb - handle auths/workers 2014-06-16 18:17:48 +10:00
Con Kolivas
6f099e43af Fix missing error code 2014-06-15 12:32:41 +10:00
Con Kolivas
4119cfd21e Prepare json fields for exporting stats to ckdb and convert existing temporary displayed logging to json 2014-06-15 11:16:01 +10:00
kanoi
515923ead1 ckdb adjust initial id defaults and correct table sizes 2014-06-14 20:42:18 +10:00
kanoi
561b18a63b ckdb.c correct pgsql modification 2014-06-14 20:26:23 +10:00
kanoi
906cf6fc09 ckdb table changes/additions 2014-06-14 20:23:22 +10:00
Con Kolivas
be92057fa7 Write the errno to the share json 2014-06-14 17:04:18 +10:00
Con Kolivas
7ff39bf07e Use an enum for various errors and reject reasons for shares and put their strings in libckpool 2014-06-14 16:55:21 +10:00
Con Kolivas
14f37c2e09 Avoid undefined error on share submission after error 2014-06-14 12:12:45 +10:00
Con Kolivas
1ab6280eac Don't try to empty a closed socket 2014-06-14 11:08:16 +10:00
Con Kolivas
258c7b0b9c Prepare share error json for database submission as well 2014-06-14 11:07:25 +10:00
Con Kolivas
bb83f99a44 Convert workinfo id to int64_t to be compatible with database logging and add fields to the json that will be logged 2014-06-14 10:44:37 +10:00
ckolivas
7034fc22cf Add fields to share logging 2014-06-14 09:30:11 +10:00
ckolivas
637f50aac7 Remove unused code commented out 2014-06-14 09:14:48 +10:00
Con Kolivas
d96b111653 Send a message from the generator to the connector to tell it when it can accept or should reject incoming connections 2014-06-13 22:51:34 +10:00
Con Kolivas
50efbcba5f Fix various warnings 2014-06-13 21:49:48 +10:00
Con Kolivas
ebb932691a Allow group id to be set for unix sockets with -g command line parameter 2014-06-13 21:43:43 +10:00
Con Kolivas
94bff9c3ab Fix build for ubuntu 2014-06-13 19:59:24 +10:00
kanoi
762fe5ebaf ckdb v0.0 2014-06-13 19:32:37 +10:00
kanoi
c6d9e0b8b3 php for web server 2014-06-13 19:00:09 +10:00
kanoi
f83bd09ae7 html folder for web server 2014-06-13 18:58:53 +10:00
kanoi
a107b18381 pgsql definition and script for adding ids to idcontrol 2014-06-13 18:56:22 +10:00
Con Kolivas
3cfe315b05 Fix locking error and remove entries from jp linked lists 2014-06-13 17:19:05 +10:00
ckolivas
783f527795 Fix initial notify response 2014-06-13 16:40:00 +10:00
Con Kolivas
7055f3b5d5 Create separate threads for processing share and authorisation submissions since they will be waiting for dtabase responses 2014-06-13 15:18:30 +10:00
Con Kolivas
0ed07950e2 Create the basic authorise request keys we'll send to the database 2014-06-12 23:52:10 +10:00
Con Kolivas
4907824168 id_val should be a duplicated json object 2014-06-12 23:12:52 +10:00
Con Kolivas
fa8b0b0b6f Unnecessary sleep now 2014-06-12 23:05:48 +10:00
Con Kolivas
badfb12da2 Do not try to send messages from the main signal handler to the children processes since they'll detect main disappearing and do not try to pthread join a dead thread 2014-06-12 22:14:52 +10:00
Con Kolivas
221825782b Check for a dead main process in the generator loop 2014-06-12 21:54:44 +10:00