Commit Graph

  • 4cd432475d Decrease the parent's recruit count after sending the stratifier the new subscribe so it can get an accurate headroom count before requesting more proxies. Con Kolivas 2017-01-03 12:59:54 +1100
  • 7bc783111b Prevent transaction refcount from falling inappropriately rapidly causing early removal from the txn table. Con Kolivas 2017-01-03 11:41:17 +1100
  • f3f8924ce6 Drop any parent clients explicitly in the stratifier from the connector, tagging any subclients to be dropped lazily. Con Kolivas 2017-01-03 11:02:15 +1100
  • 5aa4b2bd10 Fix passthrough breakage, keeping passthrough parent client reference around, flagged as such. Con Kolivas 2017-01-03 10:45:47 +1100
  • 890ed35bd9 Make trusted stratifier wait for connector to connect to upstream pool and retry indefinitely instead of failing on first connect. Con Kolivas 2017-01-02 21:32:16 +1100
  • 701c6cae17 Send transactions after informing connector to acknowledge new remote trusted server. Con Kolivas 2017-01-02 15:46:01 +1100
  • 18066a528f Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2017-01-02 15:11:40 +1100
  • 3f299fc6cd Send remote blockdata to all other remote servers to be submitted locally, fixing remote workinfo id. Con Kolivas 2017-01-02 15:09:21 +1100
  • dcfb734ec6 Send upstream blocks to remote servers to be submitted locally. Con Kolivas 2017-01-02 14:43:19 +1100
  • 5606c864d9 Propagate and submit all new transactions across upstream and remote servers making for similar transaction selection across servers and allowing future local block submissions. Con Kolivas 2017-01-02 13:12:14 +1100
  • 78ba375ae5 Send all transactions to new remote trusted servers. Con Kolivas 2017-01-02 12:31:39 +1100
  • e307bd584a Hold lock only as necessary in add_node_txns, preventing one recursive lock in submit_transaction. Con Kolivas 2017-01-02 12:21:20 +1100
  • bd367364c1 Propagate workinfos to all remote trusted servers to be able to submit all blocks at all remote servers. Con Kolivas 2017-01-02 12:04:27 +1100
  • fe94172f2e Strip remote field that won't be used or are recrated upstream. Con Kolivas 2017-01-02 11:05:58 +1100
  • 036c291283 ckdb/sql - increase the size of coinbase2 since core segwit changes before activation require a much larger coinbase kanoi 2017-01-01 14:32:00 +1100
  • cf93f8f480 ckdb - remove useless compiler warnings kanoi 2017-01-01 14:12:52 +1100
  • 7f5df515d2 ckdb - demote CKPQConn ERR to NOTICE - it's only for finding lost connections if they are happening kanoi 2017-01-01 13:59:00 +1100
  • 7d4c99b647 Send all log messages to console while console logger hasn't been set up. ckolivas 2017-01-01 11:24:06 +1100
  • c8af7e3a91 Submit remotely found blocks locally at the master pool in addition to sending their details to ckdb. Con Kolivas 2016-12-30 14:29:45 +1100
  • 59bc62153d Free log buffer as well. Con Kolivas 2016-12-27 15:12:44 +1100
  • 1ad50bb1d8 Make console logging use ckmsgq for logging to be a non-blocking function. Con Kolivas 2016-12-27 15:11:12 +1100
  • b81db03ac7 Close stratifier umsg socket in single place. Con Kolivas 2016-12-27 14:21:01 +1100
  • 52fc524f07 Remove remaining users of send_procmsg from ckpool.c Con Kolivas 2016-12-27 12:22:37 +1100
  • 5faa21ffba Remove use of send_recv_proc entirely between threads. Con Kolivas 2016-12-27 12:02:58 +1100
  • 7677ee71e2 Add message to console for known stale share being submitted as possible block solve. Con Kolivas 2016-12-27 10:56:47 +1100
  • 0aebd0256f Submit blocks and retrieve responses directly between stratifier and generator. Con Kolivas 2016-12-27 10:45:03 +1100
  • 72e2763594 Use a common start ping mechanism between threads. Con Kolivas 2016-12-27 10:19:19 +1100
  • 44af2dcbb7 There is no need to test for cs dereferencing since it cannot. Con Kolivas 2016-12-26 22:37:14 +1100
  • 854a5710fc Remove now unused generator message priority. Con Kolivas 2016-12-26 22:17:29 +1100
  • 00026e277a Test address directly by calling generator from stratifier without messaging. Con Kolivas 2016-12-26 22:13:56 +1100
  • 6af2c10103 Call the generator directly from the stratifier for getbest calls instead of via messaging. Con Kolivas 2016-12-26 22:03:55 +1100
  • 97b83028ae Use a single ckmsgq for all calls to update_base, avoiding recruiting threads for each call and guaranteeing serialised calls. Con Kolivas 2016-12-26 21:38:32 +1100
  • 5980b6d381 Make genbase calls to generator happen directly from stratifier instead of via unix sockets. Con Kolivas 2016-12-26 21:16:13 +1100
  • 1688b4f5d7 Remove use of send_recv_proc internally from ckpool.c Con Kolivas 2016-12-26 20:16:27 +1100
  • 3dfe179605 Deprecate send_proc by adding messages to other proc instances directly to their message queues for now. Con Kolivas 2016-12-25 22:11:47 +1100
  • c81213a2b8 Rename poolinstance to master pool on all remote messages. Con Kolivas 2016-12-25 20:28:00 +1100
  • b7b2f1943e Use the primary function name that calls generate_workinfo in the ckdb field. Con Kolivas 2016-12-25 20:25:32 +1100
  • c3c288ed06 Rename pool instance in workerstats to match primary pool (for now?) Con Kolivas 2016-12-25 11:43:40 +1100
  • e9f7074483 Upstream workerstats from remote trusted servers. Con Kolivas 2016-12-25 11:21:53 +1100
  • 22d54032c3 Remap workinfo ids on way in, not out of remotes. Con Kolivas 2016-12-25 10:25:17 +1100
  • 30c86b5c25 Make remote mode mandatory standalone. Con Kolivas 2016-12-24 12:14:21 +1100
  • 2066bf199d Remove various unused variables. Con Kolivas 2016-12-24 11:52:52 +1100
  • 05a470a8d3 Remap workinfo id for remote submitted blocks as well. Con Kolivas 2016-12-24 11:50:34 +1100
  • 8d1ab74851 Only update sockaddr and port if they've changed. in extract_sockaddr Con Kolivas 2016-12-24 11:41:29 +1100
  • 347fb6b20e Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2016-12-24 11:36:41 +1100
  • c6812b67ec Only give remote block message on console once. Con Kolivas 2016-12-24 11:36:12 +1100
  • 011581457c ckdb - allow json beakdown's last field to be an intransient number kanoi 2016-12-24 11:31:21 +1100
  • fb64b572b0 Upstream block submit before it's confirmed as well in remote trusted mode. Con Kolivas 2016-12-24 10:47:14 +1100
  • 512ed7543b Use the same workinfo generation code for remote and local workinfos. Con Kolivas 2016-12-24 10:05:55 +1100
  • 6fd92bea69 Remove method from remote workinfo before submitting to ckdb. Con Kolivas 2016-12-24 09:41:49 +1100
  • 51ab4af26f Send remote workinfos to ckdb. Con Kolivas 2016-12-24 09:27:42 +1100
  • 5a0c648b59 Upstream block solve information on remote trusted servers to be added to ckdb. Con Kolivas 2016-12-23 14:30:02 +1100
  • aa121dbce2 Upstream, parse and send to ckdb trusted remote server share errors. Con Kolivas 2016-12-23 14:04:04 +1100
  • 1eb058a0e6 Use a separate hashlist and mapped id for remote workinfos and remap it when receiving a share, submitting it to ckdb. Con Kolivas 2016-12-23 13:35:42 +1100
  • 96a3283020 Submit remote parsed shares to ckdb. Con Kolivas 2016-12-23 11:47:36 +1100
  • a5f6a8ca32 Reuse add_node_txn instead of a separate parse_remote_txn to avoid submitting transactions if we've already seen them. Con Kolivas 2016-12-23 10:26:15 +1100
  • 17d9c837d1 Parse and act upon upstream auth responses in trusted mode. Con Kolivas 2016-12-23 10:06:04 +1100
  • eab4762c34 Rename remote trusted server's bool to trusted. Con Kolivas 2016-12-23 08:40:14 +1100
  • 718c2dcadf Loop when getting EAI_AGAIN error with getaddrinfo. Con Kolivas 2016-12-23 08:37:21 +1100
  • 5bf2d387ec Forward auths to upstream pool in remote trusted mode, with a view to checking responses and using that instead of local auth. Con Kolivas 2016-12-22 19:28:33 +1100
  • 05c1074d1b Add console message when remote trusted server disconnects, displaying IP for disconnected passthroughs as well as id. Con Kolivas 2016-12-22 14:37:50 +1100
  • e011d17321 Upstream messages directly from stratifier to connector in trusted mode. Con Kolivas 2016-12-22 14:31:46 +1100
  • 7bc07d6c07 Set ip and port to NULL in _btc_io to cope with reused free in extract_sockaddr Con Kolivas 2016-12-20 19:53:41 +1100
  • d543888404 Send workinfos from remote trusted nodes upstream, giving them a new local id to maintain sequential workinfo ids for ckdb compatibility. Con Kolivas 2016-12-20 18:36:16 +1100
  • d9e5cf03f1 Send transactions up and downstream in trusted mode to be submitted to the local btcd. Con Kolivas 2016-12-20 16:19:53 +1100
  • 2201258b2b Make sure we close sockets to subproxies when deleting them. Con Kolivas 2016-12-13 13:36:10 +1100
  • c7d8b774db Avoid dereference crash on startup with instantly connecting miners. Con Kolivas 2016-12-13 12:07:43 +1100
  • b98ac8a2f0 Change starting session id on each startup. Con Kolivas 2016-12-13 12:01:14 +1100
  • e9a856cf97 Fix uptime Con Kolivas 2016-12-12 19:03:31 +1100
  • 2ec6736f99 Calculate hashrate in diff shares per second per proxy by the generator and return it with proxystats. Con Kolivas 2016-12-12 16:33:14 +1100
  • f2a3ee90c7 Implement get_uptime in stratifier. Con Kolivas 2016-12-12 15:14:28 +1100
  • 510e130490 Handle epoll hangups in userproxy_recv even if epollin is set, but after reading any data available, and do not skip processing if proxy is not marked alive yet. Con Kolivas 2016-12-03 14:35:22 +1100
  • 193d0f22e8 Use the best userproxy headroom only to determine if we need to recruit more subproxies. Con Kolivas 2016-12-02 16:26:25 +1100
  • 559867ab9d Avoid potential dereference in recruit_best_userproxy Con Kolivas 2016-12-02 15:49:47 +1100
  • 9963536076 Fix memleak in reap_proxies for parent proxy not emptying its subproxy hashtable. Con Kolivas 2016-12-02 15:13:21 +1100
  • 8beeb27d94 Fix memory leaks in generator parsing of commands. Con Kolivas 2016-12-02 14:50:28 +1100
  • 4108456ff4 Fix memory leaks on failed api messages. Con Kolivas 2016-12-02 14:38:15 +1100
  • 9f31d21f5e Fix memleak in parse_delproxy. Con Kolivas 2016-12-02 14:26:42 +1100
  • dc9440108e Fix a memory leak with extract_sockaddr called repeatedly. Con Kolivas 2016-12-02 14:13:02 +1100
  • 710e316577 Clear proxy workbases on freeing the proxy. Con Kolivas 2016-12-02 14:00:01 +1100
  • 3471b299c0 Delete any shares in a proxy's share hashtable on freeing it. Con Kolivas 2016-12-02 13:50:12 +1100
  • 3dfe7b95e3 Fix potential memleak when stratum_add_send is unable to send to a queue. Con Kolivas 2016-12-02 13:46:29 +1100
  • 411076fb96 Fix minor memleak in submit_share Con Kolivas 2016-12-02 13:31:12 +1100
  • 93f0c27fd5 Add locking for redirector share management. Con Kolivas 2016-11-26 11:39:42 +1100
  • ea6125dde7 Return the json response if there is one in a http response code failed instead of the http error. Con Kolivas 2016-11-26 09:42:29 +1100
  • 891faa0b93 Drop messages going to dead proxies. Con Kolivas 2016-11-25 15:51:22 +1100
  • 71ae516d1e Make submittxn message responses log as notice level only. Con Kolivas 2016-11-24 10:38:14 +1100
  • f77458fa33 Remove inefficient up and downstreaming of blocks in trusted mode. Con Kolivas 2016-11-24 09:00:17 +1100
  • fed222c6c6 Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2016-11-24 08:29:09 +1100
  • 177b816535 php - colour the monthly block count using luck limits: 0.9 to 1.1 kanoi 2016-10-28 08:41:56 +1100
  • 15901996b1 php - allow an option login check function kanoi 2016-10-25 17:15:38 +1100
  • 50b43a7cf7 php - allow directly disabling web logins kanoi 2016-10-24 14:03:27 +1100
  • 9e86ce8805 ckdb - fix lost db connections - and some incomplete pause code kanoi 2016-10-20 21:32:52 +1100
  • 8b3f5d3225 php - block information kanoi 2016-10-18 16:09:23 +1100
  • d793da51c7 php - some monthly block stats kanoi 2016-10-18 11:20:33 +1100
  • 202ff78f11 ckdb - track the number of db connections kanoi 2016-10-17 21:07:29 +1100
  • 7cedce99d0 ckdb - allow creating a store inside a list lock kanoi 2016-10-16 22:34:33 +1100
  • 373f9b01df ckdb - extend the limit on seq found messages kanoi 2016-10-16 11:48:27 +1100
  • d2dc727061 ckdb - add to cmd_query transfer stats kanoi 2016-10-15 13:27:29 +1100
  • 17d0e1afdc ckdb - fix inconsequential mem leaks in cmd_query and add defined out transfer debugging kanoi 2016-10-15 12:48:30 +1100