Commit graph

11 commits

Author SHA1 Message Date
Tanguy Pruvot
c56969c51c stratum: socket recv timeout config
With a default value set to 10mn, better than unlimited (0)
2018-03-16 10:21:19 +01:00
Tanguy Pruvot
46996e3269 stratum: disable haproxy ip translation code by default
toggle it via the .conf or edit code to change overall defaults
2018-03-08 17:14:37 +01:00
protopool.net
8c85b95220 stratum: debuglog on/off without code recompile
+ drop log CFLAGS comments in Makefile and old defines comments
2018-03-06 13:03:37 +01:00
AltMinerNet
1f9bfd006a stratum: handle proxy protocol (#196)
Implemented PROXY v2 protocol (https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt) so that stratum can be run behind an haproxy instance.

iptables/ipset still work if haproxy is run on local machine. if run on remote machine switch to using client_block_ipset() and periodically sync the ipset to the machine running haproxy.
haproxy must be configured with send-proxy-v2, version 1 does not work
2018-01-22 01:18:57 +01:00
Tanguy Pruvot
39d123a071 stratum: reduce client algo & socket struct size
to reduce a bit the memory usage... require a make clean!

+ prevent null/local ips from bans.
2017-12-17 07:25:25 +01:00
Tanguy Pruvot
d2f0f424ee stratum: dont try to send on closed sockets 2016-07-07 14:38:04 +02:00
Tanguy Pruvot
52f44b591e stratum: fix json parse with multiple object tags 2016-05-16 00:39:00 +02:00
Tanguy Pruvot
970016a567 stratum: temporary fix to clean about bad json parse 2016-05-15 19:44:36 +02:00
Tanguy Pruvot
ed3cd5fb69 db/benchmarks: allow ccminer to report device stats
user password should contain "stats", made for ccminer 1.7.6+

will see to allow a special bench "test" account to allow devs to
easily test the stratum and fill benchmarks, for the moment, its
enabled while mining with the -p stats password option.
2016-05-15 18:46:16 +02:00
Tanguy Pruvot
a24bf3dd3c stratum: allow to use curl (optional) for HTTP/1.1 chunks
Todo: SSL RPC connections... user/pw vars may be required...

Also, update the make files and handle better the getwork client requests..

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2016-02-04 04:23:06 +01:00
root
cc92c825ef stratum code 2015-07-02 20:58:24 +02:00