Commit graph

12 commits

Author SHA1 Message Date
Tanguy Pruvot
27176b2e09 phi2 changes to handle lux smart contracts
adds a smart contract roots field (stateroot+utxoroot) to mining.notify

like lbry do with their claimtrie.

These fields are optional, means there are 2 variants of the phi2 algo

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2018-06-21 17:27:33 +02:00
Tanguy Pruvot
383682190b stratum: prevent double auth & ignore invalid sockets
seems to works well, but not a normal case/behavior
2018-01-09 21:27:09 +01:00
Tanguy Pruvot
f95177cc14 stratum: prefer user coin first in yiimp mode
prevent a few shares on the "best" algo wallet on connect...
2017-12-12 19:13:27 +01:00
Tanguy Pruvot
bbaf7b79c6 stratum: reduce socket timeouts to fight zombie miners
a normal socket send op is < 1ms unless something happened to this
socket connection, generally a permanent disconnect...
2017-08-09 08:20:38 +02:00
Tanguy Pruvot
bf05f7b532 stratum: prevent segfault on repeated sock timeout 2016-07-26 22:43:32 +02:00
Tanguy Pruvot
a88c1e0b43 handle lbry algo and protocol
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2016-07-19 23:14:34 +02:00
Tanguy Pruvot
0c66f33c22 stratum: extra check on client thread exit 2016-07-03 10:14:00 +02:00
crackfoo
64ec96df41 stratum: close sockets of delayed jobs 2016-07-03 10:12:01 +02:00
Tanguy Pruvot
28872880d7 stratum: check job broadcast errors (disconnect bad clients) 2016-07-01 05:27:14 +02:00
Tanguy Pruvot
49a5d8068c stratum: getwork sleep typo + new time funcs 2016-02-13 13:30:27 +01:00
Tanguy Pruvot
6fb14b3346 stratum: handle coins with a diff under stratum conf
sometimes the nbits value can be under the minimum allowed by the pool
in this case, force it to the minimum (instead of 0).
2016-01-12 15:21:15 +01:00
root
cc92c825ef stratum code 2015-07-02 20:58:24 +02:00