215 Commits (33e195511cb076a1f513022f5fde38245d3763a4)

Author SHA1 Message Date
ckolivas 2d56e4fa04 Init the proxy share mutex 10 years ago
ckolivas 33f40ed3cf Use 64 bits for share id in proxy 10 years ago
Con Kolivas eacb000ad9 Elaborate on killing proxy message 10 years ago
Con Kolivas 43d1336321 Increment proxy count only after new proxy is set up 10 years ago
Con Kolivas a7ed36931f Fix proxy reconnect potentially trying to switch proxies before the instance is fully set up and bypass old instances that have issued a reconnect 10 years ago
Con Kolivas ab4a9fc1a0 Cope with client.reconnect listing port as a string instead of integer 10 years ago
Con Kolivas 5c18e7e0f8 Use JSON_EOL in generator 10 years ago
Con Kolivas ac05feeebc Fix potential socket leak in gen_loop 10 years ago
Con Kolivas 649ad7953f Fix potential socket leak in gen_loop 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 c33ae04ad8 Handle mining.ping in proxy mode 10 years ago
Con Kolivas 3ddef2d66f Privatise all the connector specific data 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 7b2de72f54 Cope with calling send_notify before any notify exists by returning no message 10 years ago
Con Kolivas 7ffe4fbe18 Allow proxying to nonce2 size 3 pools with a warning 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 5a9eb76488 Use the Close handler in the generator 10 years ago
Con Kolivas 22c9d7c393 Wait up to 10 minutes for a response in proxy mode for p2pool which does not send an update regularly 10 years ago
Con Kolivas d526eb8a76 Mask out (null) as a valid result in json_result 10 years ago
Con Kolivas 8e34ff377b Make necessary changes to ckproxy to support large coinbases and null length enonce1 for p2pool support 10 years ago
Con Kolivas 73ca6c2e45 No need for 64 bit ids in the proxy jobs 10 years ago
Con Kolivas b36e4cec3c Make sure jobids align between generator and stratifier in proxy mode 10 years ago
Con Kolivas 47519286a4 Use a global notify id counter in proxy mode to avoid clashes 10 years ago
Con Kolivas 5ca5cae084 Only drop proxy connections when we're killing an existing server and start rejecting before dropping further connections 10 years ago
Con Kolivas 6880b9f03d Implement fallback in proxy mode and keep existing connection when testing if servers or proxies are alive 10 years ago
Con Kolivas d46609275e Implement fallback to higher priority server by using a ckmsgq to inform a server watchdog thread of what the current server is and testing if they're alive no more than every 5 seconds 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 ab5d03ece0 Abstract out testing if a proxy is alive for future fallback code 10 years ago
Con Kolivas d021692a21 Abstract out the testing of whether a server is alive to be used for future fallback code 10 years ago
Con Kolivas ab67bb2432 Only keep existing downstream connections in proxy mode when attaching an upstream pool successfully in resume mode 10 years ago
Con Kolivas 30142899b7 Provide console message when successfully resuming to a server in proxy mode 10 years ago
Con Kolivas e342f768ee Add message on successful failover to backup bitcoind 10 years ago
Con Kolivas 5a697b7c66 Add a command to validate addresses with the generator 10 years ago
Con Kolivas fd7c115431 Drop all clients and reject incoming connections when we fail to talk to the upstream pool in proxy mode 10 years ago
Con Kolivas cfa9824b08 Convert uses of json_pack to JSON_CPACK in the generator 10 years ago
Con Kolivas f26273f34f Attempt failover when bitcoind socket is invalidated 10 years ago
Con Kolivas 7661f4206b Don't try to submit a block locally in proxy mode if we're missing transactions 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 f794f4afab Add not no utf8 flag to json we know will only contain ascii 10 years ago
Con Kolivas 00f08eed05 Make client id use the passthrough id as high bits of a 64bit version of the client id to determine the intrinsic stratum client versus the connected client 10 years ago
Con Kolivas b1ae420fd3 Pass through message to relevant processes with separate threads in passthrough mode 10 years ago
Con Kolivas 6f12bd51a2 Process mining.passthrough as a subclass of proxy and set up handling of clients in preparation for passthrough routing 10 years ago
Con Kolivas c5eb3c75af Allocate the gbt data from within live_server 10 years ago
Con Kolivas d15d19bf3a si should only be dealloced on shutdown 10 years ago
Con Kolivas a40bbda19b Don't leak memory on server reconnect 10 years ago
Con Kolivas ad75ab49d5 Avoid userpass deref 10 years ago
Con Kolivas fd45d582d4 Add messages for when each process is ready 10 years ago
Con Kolivas baacb6ed54 Convert the generator to use cmdmatch 10 years ago
ckolivas 2edb2a074d Don't check for EINTR in generator as well 11 years ago