Commit Graph

4026 Commits

Author SHA1 Message Date
Con Kolivas
ee955edaaa No messages should be postponed any more to increase chance of local block submission and smooth out packet sizes. 2017-02-06 10:19:19 +11:00
Con Kolivas
4433a54e43 Support submission nodes in solo. 2017-02-02 17:16:44 +11:00
Con Kolivas
7b80d6c81b Merge branch 'master' into solobtc 2017-02-02 16:48:38 +11:00
Con Kolivas
be33c087b9 Propagate workinfo and blocks to all connected nodes as well allowing complex mixed remote server and node infrastructures. 2017-02-02 16:47:11 +11:00
Con Kolivas
2b821bf70e Propagate enough information to allow nodes to be attached to remote servers. 2017-02-02 12:52:28 +11:00
Con Kolivas
6f32c43f8b Merge branch 'master' into solobtc 2017-02-02 12:06:30 +11:00
Con Kolivas
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. 2017-01-31 19:46:11 +11:00
Con Kolivas
063170f4c9 Reset best shares on accepted remote block submit as well. 2017-01-31 15:53:01 +11:00
Con Kolivas
5ca1781355 Include client id in the key for remote workbases to avoid collisions from multiple remote servers. 2017-01-26 14:04:04 +11:00
Con Kolivas
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. 2017-01-26 12:35:33 +11:00
Con Kolivas
eb3f0b2a06 Send block submission data remotely before attempting local submit to not delay propagation with the local verification time. 2017-01-21 14:24:18 +11:00
Con Kolivas
58711dd729 Remove blockhash from submit_block message to generator. 2017-01-21 14:24:18 +11:00
Con Kolivas
4f6318575c Send block submission data remotely before attempting local submit to not delay propagation with the local verification time. 2017-01-21 14:23:15 +11:00
Con Kolivas
49b5c9d5db Remove blockhash from submit_block message to generator. 2017-01-21 13:47:52 +11:00
Con Kolivas
9d8c45930b Check inconclusive block submits against their height hash to see if they were already submitted via other means. 2017-01-21 13:13:03 +11:00
Con Kolivas
e62c59aade Demote info message in json_rpc_call 2017-01-21 13:13:03 +11:00
Con Kolivas
115af7ed51 Check inconclusive block submits against their height hash to see if they were already submitted via other means. 2017-01-21 13:12:12 +11:00
Con Kolivas
d5e44c944d Demote info message in json_rpc_call 2017-01-17 10:00:53 +11:00
Con Kolivas
87aa55cadb Fix memleak with remote workinfos. 2017-01-15 14:11:36 +11:00
Con Kolivas
649d5ff022 Clear_workbase on failed rebuild_txns in proxy mode instead of just freeing the wb memory. 2017-01-15 14:11:36 +11:00
Con Kolivas
4350dc5473 Fix memleak with remote workinfos. 2017-01-15 14:09:12 +11:00
Con Kolivas
134cb46c62 Clear_workbase on failed rebuild_txns in proxy mode instead of just freeing the wb memory. 2017-01-15 13:59:48 +11:00
Con Kolivas
fb67491e67 Merge branch 'master' into solobtc 2017-01-13 10:58:07 +11:00
Con Kolivas
0672fff16b No recursive locking now. 2017-01-13 10:57:59 +11:00
Con Kolivas
cd9762d875 Handle the response from generator block submit directly, avoiding the need for a complicated list lookup of block finds. 2017-01-13 10:56:10 +11:00
Con Kolivas
fe0549953d Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2017-01-13 10:37:20 +11:00
Con Kolivas
d8274d6a1c Allow rebuild_txns to succeed with no transactions listed in the workinfo. 2017-01-13 10:28:15 +11:00
Con Kolivas
1b4e8c1978 Allow rebuild_txns to succeed with no transactions listed in the workinfo. 2017-01-13 10:08:33 +11:00
ckolivas
f1a0be6994 Use a separate lock for the transaction table. 2017-01-12 11:09:49 +11:00
ckolivas
8119d24175 Use a separate lock for the transaction table. 2017-01-12 11:09:23 +11:00
ckolivas
79a2ec9640 Merge branch 'master' into solobtc 2017-01-12 10:47:00 +11:00
ckolivas
d5f727637c Check for readcount in ageing as well. 2017-01-12 10:46:46 +11:00
ckolivas
5b430dab00 Merge branch 'master' into solobtc 2017-01-12 10:45:23 +11:00
ckolivas
10ff10fea0 Use a readcount reference count with workbases to avoid holding the workbase lock and recursive locks. 2017-01-12 10:40:07 +11:00
Con Kolivas
7a1f284bda Merge branch 'master' into solobtc 2017-01-10 17:08:25 +11:00
Con Kolivas
d3ab1c5167 Check a txn hasn't already been added to a txntable. 2017-01-10 17:06:57 +11:00
Con Kolivas
53805d7a6d Check and fill incomplete workbases once we receive more transactions. 2017-01-07 10:46:57 +11:00
Con Kolivas
7d8417774f Properly drop subclients when the parent dies by testing whether the parent exists instead of the masked subclient id. 2017-01-07 10:46:57 +11:00
Con Kolivas
e12aac0cd9 Check and fill incomplete workbases once we receive more transactions. 2017-01-07 10:43:04 +11:00
Con Kolivas
d9171390e2 Properly drop subclients when the parent dies by testing whether the parent exists instead of the masked subclient id. 2017-01-07 09:13:39 +11:00
Con Kolivas
3281e1f72f Merge branch 'master' into solobtc 2017-01-07 01:01:17 +11:00
Con Kolivas
3c67dff032 parse_remote_auth was holding a client reference for no good reason preventing remote clients from ever being dropped. 2017-01-07 01:00:27 +11:00
Con Kolivas
3ec08eca6e Don't drop passthroughs as well for not authorising now that their client instance is kept around. 2017-01-07 00:37:31 +11:00
Con Kolivas
22ad7d440a Filter out node.method from going to clients by sending json and intercepting that, avoiding the need to dump it and reencode it. 2017-01-06 15:54:30 +11:00
Con Kolivas
8b7e3b68bc Whitelist clients that have already submitted valid shares in redirector mode by IP and redirect them immediately once they have authorised. 2017-01-06 14:33:15 +11:00
Con Kolivas
556619cfe6 Redirect miners in redirector mode after returning their share results. 2017-01-06 09:16:20 +11:00
Con Kolivas
37d143e0e9 Forgot to pass variable to update base which can lead to deref crash. 2017-01-05 12:32:50 +11:00
Con Kolivas
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. 2017-01-05 11:56:05 +11:00
Con Kolivas
039efd9266 Correctly initialise gbtbase to 0. 2017-01-05 11:56:05 +11:00
Con Kolivas
2b498d84ef 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. 2017-01-05 11:54:52 +11:00