Commit Graph

  • fce08f5468 Fix testnet diff James Hilliard 2017-06-21 21:37:01 -0500
  • 4718cea30a Pack txns that are found when rechecking into the txn_array which will be used by wb_merkle_bin_txns. Con Kolivas 2017-06-16 16:20:48 +1000
  • 7102bf56bf All updated txns from rebuild_txns are remote. Con Kolivas 2017-06-16 14:25:19 +1000
  • 641682f57e Count workbases as incomplete even if they're currently in use. Con Kolivas 2017-06-16 14:23:10 +1000
  • 7a1e907fa7 Rename json_set_object to json_steal_object to make it clear what the function does and nullify the original pointer preventing use after free. Con Kolivas 2017-06-16 11:49:22 +1000
  • b6215001cf Add clear line to console_log only if stderr is going to console. Con Kolivas 2017-06-04 16:22:50 +1000
  • cef9981d72 Fix leak in append_proxy_line. Con Kolivas 2017-05-27 11:00:57 +1000
  • 1a3674526d Add comment regarding use of read_socket_line in generator and !cs. Con Kolivas 2017-05-23 12:31:18 +1000
  • d0da28c326 Handle invalidated connsock being sent to read_socket_line. Con Kolivas 2017-05-23 12:13:58 +1000
  • e8fc982cdf Discretely pack proxy send subscribe entries to aid debugging. Con Kolivas 2017-05-23 11:30:36 +1000
  • 9c38101951 Don't allow non-ascii characters in proxy configs, exiting if a global config proxy has them. Con Kolivas 2017-05-23 11:04:42 +1000
  • e0d0a42595 Don't disable proxies with scrambled json. Con Kolivas 2017-05-19 00:41:03 +1000
  • 1c5bfd9206 Do not disable userproxies that fail to maintain communication during authorisation without having attempted to auth. Con Kolivas 2017-05-15 11:03:51 +1000
  • a54067f18a Show baseurl in proxy stats for when it differs after reconnect Con Kolivas 2016-09-23 15:36:19 +1000
  • 5d02bdfb9a Fix leak in parse_worker_diffs. ckolivas 2017-05-28 08:39:17 +1000
  • caf1b97d52 Don't update time in stratum loop. Con Kolivas 2017-05-16 08:43:27 +1000
  • ad63088be8 Check for current workbase as well. Con Kolivas 2017-05-16 08:33:33 +1000
  • e96111476a Skip updates if we're getting stacked low priority updates. Con Kolivas 2017-05-16 08:08:35 +1000
  • 94c98dc0f1 Fix missing username generation in read_userstats for workerstats. Con Kolivas 2017-05-13 18:35:53 +1000
  • 8e1adda1da Disable ckdb by default. Con Kolivas 2017-05-13 18:31:21 +1000
  • 5143122b82 Remove hard coded ckdb limits. Con Kolivas 2017-02-28 17:37:55 +1100
  • a67444a0dc Disable ckdbq thread creation in standalone mode. Con Kolivas 2017-05-13 12:50:26 +1000
  • e8fae8a0ef Add transaction and remote workbase data to stratifier stats. Con Kolivas 2017-05-07 13:31:19 +1000
  • 42258bb78e Decrease refcount remote to 20. Con Kolivas 2017-05-07 13:21:38 +1000
  • 4a1435636a Fix tiny leak. Con Kolivas 2017-05-07 11:24:11 +1000
  • e0d3a7df60 Remove unnecessary use of gbt as private data in socket instance. Con Kolivas 2017-05-07 11:20:50 +1000
  • a1ad3dc57f Free data in rare found situation. Con Kolivas 2017-05-07 10:43:03 +1000
  • 78023e16e3 Silence warnings. Con Kolivas 2017-05-07 09:41:47 +1000
  • 962351034d Update time after processing transactions which can be delayed. Con Kolivas 2017-05-06 22:40:33 +1000
  • 96e145df67 Fix memleak in gen_gbtbase. Con Kolivas 2017-05-06 22:29:06 +1000
  • dd512e674a Check and submit transactions only remote transactions. Con Kolivas 2017-05-05 10:13:35 +1000
  • 11cf360d9b Remove now unnecessary intermediate steps converting gbtbase to workbase by making them one. Con Kolivas 2017-05-05 09:50:19 +1000
  • 700d3accac Update transactions after sending out stratum updates. Con Kolivas 2017-05-03 23:37:02 +1000
  • 4049860ca8 Fix uprio not being sent to updateq Con Kolivas 2017-04-18 21:36:36 +1000
  • 8a66c4811b Call precious block on all submitted blocks. Con Kolivas 2017-04-29 10:50:06 +1000
  • 6ce8b5eef7 Use only 3 significant digits for sps display. Con Kolivas 2017-04-21 12:45:57 +1000
  • ed5468b44b Clean up jansson 2.6-2.10 update. Con Kolivas 2017-04-21 12:40:13 +1000
  • d8558c19b4 Ckpool changes to jansson 2.10 Con Kolivas 2017-04-21 11:36:53 +1000
  • 96a1bb3615 Add jansson 2.10 to source. Con Kolivas 2017-04-21 11:25:57 +1000
  • 1777d00d30 Load all existing worker stats on startup. Con Kolivas 2017-04-17 13:57:22 +1000
  • 44a0c12f4c Load all userstats at startup. Con Kolivas 2017-04-17 13:00:46 +1000
  • 33b26291b0 Only log user and workers that are authorised. Con Kolivas 2017-04-17 12:14:06 +1000
  • f7fc0ce859 Readd removed workbases to the remote workbase list outside of the HASH_ITER loop we originally removed them from in check_incomplete_wbs. Con Kolivas 2017-04-02 05:19:12 +1000
  • 03bd1bf50d Fix minor leak in get_txn. Con Kolivas 2017-03-28 14:41:40 +1100
  • b809d94a71 Duplicate remote message val for use by ckdb, avoiding double free. Con Kolivas 2017-03-20 20:12:55 +1100
  • e9bf9e5a80 Add sanity checking for values sent to srecv_process. Con Kolivas 2017-03-20 18:56:34 +1100
  • 03a4233120 Don't remove workinfoid for other remotes. Con Kolivas 2017-03-18 16:49:49 +1100
  • 7bbd1250e0 Set workinfoid to mapped id for ckdb. Con Kolivas 2017-03-18 16:46:30 +1100
  • 6700c0fae0 Make userproxy_recv take same precautions with hangups while reading as proxy_recv. Con Kolivas 2017-02-21 17:20:18 +1100
  • 12a134c66b Check for !ret set before checking errno as it may not be set and cached from a previous error. Con Kolivas 2017-02-21 17:05:52 +1100
  • d6a190b014 Set message to false after parsing. Con Kolivas 2017-02-21 16:41:53 +1100
  • eb9c7ffd5a Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2017-02-21 16:10:38 +1100
  • 6587ac2817 Process all hangups after all messages in proxy_recv. Con Kolivas 2017-02-21 16:10:06 +1100
  • 482a8c7d67 Check for existing transactions from the local bitcoind when adding them to our hashlist and submit them only if they're not known about. ckolivas 2017-02-08 16:03:41 +1100
  • a772d388f4 Unset wbincomplete sooner to minimise duplicate passes through check_incomplete_wbs ckolivas 2017-02-08 14:45:58 +1100
  • 3d2c9efcd7 No messages should be postponed any more to increase chance of local block submission and smooth out packet sizes. Con Kolivas 2017-02-06 10:19:19 +1100
  • be33c087b9 Propagate workinfo and blocks to all connected nodes as well allowing complex mixed remote server and node infrastructures. Con Kolivas 2017-02-02 16:47:11 +1100
  • 2b821bf70e Propagate enough information to allow nodes to be attached to remote servers. Con Kolivas 2017-02-02 12:52:28 +1100
  • 137f0b7842 Use a virtualid to reference subclients in remote servers to be able to speak to the upstream pool, allowing them to work with passthroughs. Con Kolivas 2017-01-31 19:46:11 +1100
  • 063170f4c9 Reset best shares on accepted remote block submit as well. Con Kolivas 2017-01-31 15:53:01 +1100
  • 5ca1781355 Include client id in the key for remote workbases to avoid collisions from multiple remote servers. Con Kolivas 2017-01-26 14:04:04 +1100
  • db671316da Age any older workbases rather than just one in add_base by dropping and picking up lock again, and check correct workbase for a readcount. Con Kolivas 2017-01-26 12:35:33 +1100
  • eb3f0b2a06 Send block submission data remotely before attempting local submit to not delay propagation with the local verification time. Con Kolivas 2017-01-21 14:23:15 +1100
  • 58711dd729 Remove blockhash from submit_block message to generator. Con Kolivas 2017-01-21 13:42:05 +1100
  • 9d8c45930b Check inconclusive block submits against their height hash to see if they were already submitted via other means. Con Kolivas 2017-01-21 13:12:12 +1100
  • e62c59aade Demote info message in json_rpc_call Con Kolivas 2017-01-17 10:00:53 +1100
  • 87aa55cadb Fix memleak with remote workinfos. Con Kolivas 2017-01-15 14:09:12 +1100
  • 649d5ff022 Clear_workbase on failed rebuild_txns in proxy mode instead of just freeing the wb memory. Con Kolivas 2017-01-15 13:59:48 +1100
  • cd9762d875 Handle the response from generator block submit directly, avoiding the need for a complicated list lookup of block finds. Con Kolivas 2017-01-13 10:56:10 +1100
  • fe0549953d Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2017-01-13 10:37:20 +1100
  • d8274d6a1c Allow rebuild_txns to succeed with no transactions listed in the workinfo. Con Kolivas 2017-01-13 10:08:33 +1100
  • f1a0be6994 Use a separate lock for the transaction table. ckolivas 2017-01-12 11:09:23 +1100
  • d5f727637c Check for readcount in ageing as well. ckolivas 2017-01-12 10:46:46 +1100
  • 10ff10fea0 Use a readcount reference count with workbases to avoid holding the workbase lock and recursive locks. ckolivas 2017-01-12 10:40:07 +1100
  • d3ab1c5167 Check a txn hasn't already been added to a txntable. Con Kolivas 2017-01-10 17:06:57 +1100
  • 53805d7a6d Check and fill incomplete workbases once we receive more transactions. Con Kolivas 2017-01-07 10:43:04 +1100
  • 7d8417774f Properly drop subclients when the parent dies by testing whether the parent exists instead of the masked subclient id. Con Kolivas 2017-01-07 09:13:39 +1100
  • 3c67dff032 parse_remote_auth was holding a client reference for no good reason preventing remote clients from ever being dropped. Con Kolivas 2017-01-07 01:00:27 +1100
  • 3ec08eca6e Don't drop passthroughs as well for not authorising now that their client instance is kept around. Con Kolivas 2017-01-07 00:37:31 +1100
  • 22ad7d440a Filter out node.method from going to clients by sending json and intercepting that, avoiding the need to dump it and reencode it. Con Kolivas 2017-01-06 15:54:30 +1100
  • 8b7e3b68bc Whitelist clients that have already submitted valid shares in redirector mode by IP and redirect them immediately once they have authorised. Con Kolivas 2017-01-06 14:33:15 +1100
  • 556619cfe6 Redirect miners in redirector mode after returning their share results. Con Kolivas 2017-01-06 09:16:20 +1100
  • 32499cf34e Failure to get a response to getrawtransaction gives a http error even though it then gives a meaningful response. Drop warning to debug in get_txn. Con Kolivas 2017-01-05 11:54:52 +1100
  • 039efd9266 Correctly initialise gbtbase to 0. Con Kolivas 2017-01-05 11:29:05 +1100
  • 30e701e829 Count remote users and workers in stats. Con Kolivas 2017-01-05 11:21:43 +1100
  • 949b0313b0 Store remote worker and user counts. Con Kolivas 2017-01-05 11:19:12 +1100
  • d4fcb0be72 Use a separate mutex for unaccounted shares. Con Kolivas 2017-01-05 10:58:13 +1100
  • 20b31f79da Submit transactions to the local bitcoind again when purging them from our transaction table in case a remote workinfo uses them again but our bitcoind has had them removed from the mempool. Con Kolivas 2017-01-05 10:00:49 +1100
  • b42fa0a511 Show when transaction building has failed only once in a row and display when rebuilding has succeeded again. Con Kolivas 2017-01-05 09:44:13 +1100
  • 499793c94c Add timestamp to throbber. Con Kolivas 2017-01-05 09:36:19 +1100
  • 062cb52cbe Abstract out get_timestamp. Con Kolivas 2017-01-05 09:32:07 +1100
  • 0a45f8f32c Unnecessary warning. Con Kolivas 2017-01-05 00:57:14 +1100
  • 750abcddb6 Properly request transactions we don't find in the local bitcoind and demote the message for failed get_txn to notice only. Con Kolivas 2017-01-04 22:41:24 +1100
  • 07d57d683d Prevent passthrough and node etc. failure in generator at startup due to proxy recruit change. Con Kolivas 2017-01-04 19:22:29 +1100
  • f40ea70290 Disallow passthroughs on nodes and remote servers as well. Con Kolivas 2017-01-04 18:51:18 +1100
  • 90acd45677 Try to find transactions from local bitcoind while rebuilding transactions. Set the refcount for local transactions to 5 only to make remote sending more likely. Con Kolivas 2017-01-04 18:32:56 +1100
  • d4869fb5d5 Only send transactions if there are any in the array. Con Kolivas 2017-01-04 17:34:19 +1100
  • 3e954e225f Parse upstream requests for transactions, returning any found in the remote's transaction table. Con Kolivas 2017-01-04 17:29:33 +1100
  • 68e46be39d Parse remote requests for transactions, returning as many as can be found in the local transaction table. Con Kolivas 2017-01-04 17:08:01 +1100
  • 7f19552ee6 When we cannot find a transaction to rebuild_txns, try to get the data from our bitcoind and if it's not available make a transaction request of the upstream or remote pool for it - response yet to be implemented. Con Kolivas 2017-01-04 14:08:05 +1100