67 Commits (62117bb38004fca58543ff930d1910d17a42a773)

Author SHA1 Message Date
Con Kolivas 1df924e73d Provide an option to daemonise ckpool 10 years ago
Con Kolivas 00f9cf297d Hand over multiple sockets if we can 10 years ago
Con Kolivas 5dd076cfbe Allow serverurl to take an array of entries for future binding to multiple interfaces/ports 10 years ago
Con Kolivas 00fa820c3b Make the json_get functions return boolean for success or failure 10 years ago
Con Kolivas 61300493e7 Empty buffers of servers and proxy when killing them 10 years ago
Con Kolivas fe7f015ec6 Empty buffers of servers and proxy when killing them 10 years ago
Con Kolivas 0709058b25 Allow nonce1 and nonce2 lengths to be specified separately 10 years ago
Con Kolivas ab91682e22 Add support for custom extranonce1 lengths 10 years ago
Con Kolivas fe15f9384d Privatise all global variables within the generator to allow multiple ckpools in the future 10 years ago
Con Kolivas 995fce28c1 Make it possible to create many threads associated with a ckmsgq 10 years ago
ckolivas dd3a4a121a Revert "Do not overlap writes to unix sockets" 10 years ago
ckolivas 6f77624613 Do not overlap writes to unix sockets 10 years ago
ckolivas 620d613d1a Add a maxclients directive that stops accepting clients when there are too many 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 255bab88fe Add a maximum diff option 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 90f5936956 Add a helper function to detect when a ckmsgq is empty 10 years ago
Con Kolivas 5c52cc65c7 Add an optional field notify per btcd that tells ckpool not to pool for block changes 10 years ago
Con Kolivas 22ef55be05 Update donation address and encode default 0.5% donation into coinbase 10 years ago
Con Kolivas 5f6b5e0abb Allow a btcd to be used to submit blocks to locally in proxy mode to help perpetuate block solves more rapidly 10 years ago
Con Kolivas a95c259839 Clamp optimal diff after all calculations are made and store min and start diff as long integers 10 years ago
Con Kolivas c4fae526fd Make share logging optional and off by default 10 years ago
Con Kolivas c11b2c11f3 Log ckdb messages before adding them to the queue of messages to send to it to ensure messages continue to be logged as generated even if they're queued to be sent to ckdb 10 years ago
Con Kolivas c371f9da91 Add command line parameter to set passthrough mode 10 years ago
Con Kolivas 92c67ab289 Provide a restart command which does a handover to an new binary with the same arguments 10 years ago
Con Kolivas 61bc8628f3 Implement a handover option which allows ckpool to inherit the socket from a running instance before shutting it down keeping miners talking to the existing connection 10 years ago
Con Kolivas a832b64006 Fix getfd function to really send a full struct msghdr returning a new fd to copy sockets across processes 10 years ago
Con Kolivas fc1d956f37 Make a per-process logger allowing logging to be line buffered yet asynchronous 10 years ago
Con Kolivas dd056cd030 Provide an option to run ckpool standalone without ckdb 11 years ago
ckolivas e8c47e29fa Move generic ckmsgq functions to ckpool.c to allow ckp to be included 11 years ago
Con Kolivas 645b94c949 Log all ckdb requests to the rotating ckdb log 11 years ago
Con Kolivas 333d05fb3a Create a json sending wrapper for ckdb and fix int64 usage in packed json 11 years ago
Con Kolivas 1debfd1f45 Send auth and share messages to ckdb 11 years ago
Con Kolivas 73599ea10d Add a function for sending a message to ckdb and getting its response 11 years ago
Con Kolivas 5f5ef3c712 Parse and store the socket directory and name for ckdb 11 years ago
Con Kolivas ebb932691a Allow group id to be set for unix sockets with -g command line parameter 11 years ago
Con Kolivas b57ffe23d6 Use one buffer for connsok line receives without relying on MSG_PEEK and abort appropriately when recv() returns 0 11 years ago
Con Kolivas 6a3a333031 connsock_t is a ckpool only struct 11 years ago
Con Kolivas b77e481c7e Use a weak logmsg function within libckpool allowing it to be included standalone without touching ckpool code 11 years ago
Con Kolivas bc78acceca Move the functions that require ckpool specific variable types out of libckpool 11 years ago
Con Kolivas 86e70edfbc Make all child processes ping the parent process at regular intervals and then die if it has disappeared. Do not attempt to send unix messages to dead processes and abort instantly on socket EINTR 11 years ago
Con Kolivas 8073936b46 Check for incorrect return value on asprintf 11 years ago
Con Kolivas d90b4ffddd Check return value of asprintf 11 years ago
Con Kolivas bfec616da3 Create new proxy entries on the fly with the client reconnect command and switch to it 11 years ago
Con Kolivas e959ba39a4 Iterate over the configured btcds, finding the first working one; failover to be added later 11 years ago
Con Kolivas 40807602c9 Fix macro variable name clashing and crash on logging prior to logfile being set 11 years ago
Con Kolivas b4e6aef470 Log all output to a logfile, display all warnings, and use locking to prevent overlapped messages 11 years ago
Con Kolivas f48558d2b5 Detach child processes from the tty leaving only the main process to talk to it and exit all processes in a consistent way with more information on termination 11 years ago
Con Kolivas 7c98ab5c1d Store structures for all possible upstream servers to allow us to choose an alive one for now with a view to enable switching 11 years ago