Commit graph

287 commits

Author SHA1 Message Date
Tanguy Pruvot
a3103af7ba stratum: fix client memory leak in yescrypt 2018-05-14 17:41:03 +02:00
Tanguy Pruvot
495dcbba00 stratum: detect if master wallet is p2sh + mn started field 2018-05-11 11:18:45 +02:00
Tanguy Pruvot
b114a1c66f stratum: common p2sh_pack_tx func for p2sh masternodes 2018-05-07 16:16:40 +02:00
Nico
ed97818e61 stratum: support for MAC P2SH masternodes too (#266)
note: a field "isscript" should be added to getblocktemplate masternode/superblock objects
if the type of address can vary over time... 
Code may be refactored later (common func and p2sh fields in coind object)
2018-05-07 15:41:20 +02:00
Tanguy Pruvot
db7a145c0b stratum: fix superblock script order
was not easy to code without the future wallet code to test it ;)
2018-05-07 15:03:18 +02:00
Tanguy Pruvot
d428130df3 allium: fix pool diff ratio, same as lyra2v2, cf cpuminer-opt 2018-05-06 17:11:20 +02:00
Tanguy Pruvot
b43d646548 handle allium algo, kind of double lyra2 2018-05-06 16:52:57 +02:00
Tanguy Pruvot
daac1a10c6 stratum: merge P2SH superblock code to prevent duplicated code 2018-05-04 21:46:26 +02:00
Tanguy Pruvot
d4b00a8b0b Revert "stratum: support for Machinecoin 0.16 mn+segwit (#265)"
This reverts commit a78ec34d37.
2018-05-04 21:41:06 +02:00
Tanguy Pruvot
fe47cca831 stratum: also prepare normal optional mn+segwit 2018-05-04 19:56:27 +02:00
Nico
a78ec34d37 stratum: support for Machinecoin 0.16 mn+segwit (#265) 2018-05-04 19:52:44 +02:00
Jia Wu
8fb9a74164 stratum: add vitalium algo (#261)
note: beware of the masterscams
2018-05-02 14:27:39 +02:00
crackfoo
078ace3a65 stratum: log ip of new clients (#262) 2018-05-02 14:10:39 +02:00
Tanguy Pruvot
138b0079bb stratum: pre-check bad usernames before db add 2018-05-01 15:36:42 +02:00
Tanguy Pruvot
1bfec2be32 stratum: precheck addresses are valid base58 2018-05-01 15:05:11 +02:00
Lukáš Nový
10be25ee82 stratum: correctly create blocks with 253-255 transactions (#260)
According to [1], varints of 0xfd to 0xff are prefixed with 0xfd too.

[1]: http://learnmeabitcoin.com/glossary/varint
2018-04-22 04:25:40 +02:00
Tanguy Pruvot
5b91a559f9 stratum: do more checks on stats device names 2018-04-10 15:48:26 +02:00
Tanguy Pruvot
5bb898f651 small x16s fixes, and stratum sample 2018-03-29 02:55:01 +02:00
opensourcerulez
a954c13b36 x16s algo, shuffle variant (#251)
see https://bitcointalk.org/?topic=3208091.0 for more explanations
2018-03-29 02:49:37 +02:00
Tanguy Pruvot
2ad138591e x12 algo + GCH multi-algos definition 2018-03-26 09:37:11 +02:00
exmac
1b3f15fef3 Add yescryptR32 (#247)
YescryptR32 for coin WAVI
https://bitcointalk.org/index.php?topic=3146751.0

Tested on : https://lpool.name/pool/WAVI
2018-03-19 19:27:31 +01:00
Tanguy Pruvot
77e2624db1 stratum: drop STAK unused vars + git file mode fix 2018-03-16 11:04:06 +01:00
Daniel Mackie
333acc0d25 stratum: STAK special coinbase, with SegWit support
untested, but compiled fine
2018-03-16 10:26:33 +01:00
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
67d3e6aeed stratum: warning fix for recent gcc
was -Wunused-result, useless but...
2018-03-14 22:46:57 +01:00
Tanguy Pruvot
f342017d31 stratum: also check early nonce is hexa
and remove double submit_bad++
2018-03-14 20:21:00 +01:00
Tanguy Pruvot
165e93bf29 stratum: function to check hex strings validity 2018-03-14 18:40:57 +01:00
Tanguy Pruvot
bd888ff4e2 stratum: function to track mem usage
+ bad client possible leak... but it is not the main one
2018-03-13 21:22:17 +01:00
Tanguy Pruvot
8c27bed438 stratum: remove useless mysql escape + fix for stats
the custom check is already more secure than "unknown" mysql code
2018-03-13 19:35:57 +01:00
Tanguy Pruvot
3624f2c44d stratum: be more strict with user string fields 2018-03-13 17:48:32 +01:00
Tanguy Pruvot
669ab6bb0f stratum: ensure all blocks are put in db (#241)
may be important for pool op noobs who dunno what they do,
doesn't setup blocknotify or have server efficiency issues..

squashed commit of today's commits, sorry for the mess ;)

prevent job delays if no blocks were submitted
double check coin id on blocknotify
remove noblocknotify boolean
prevent notify debuglog on normal blocks
2018-03-12 19:00:24 +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
Tanguy Pruvot
010fd14493 stratum: ignore possible dup on new user
This race case was causing a stratum exit  and should not
2018-03-02 15:13:35 +01:00
Tanguy Pruvot
343ec492c8 stratum: min diff and anti-flood adjustments 2018-03-02 13:41:13 +01:00
Tanguy Pruvot
c49c8b30f2 stratum: fix the major socket leak on bad auth 2018-03-02 13:16:13 +01:00
Tanguy Pruvot
befb105e5d stratum: fill fds and server name/url in stratums table
meant to detect socket leaks before its too late...
2018-03-02 00:07:54 +01:00
Tanguy Pruvot
0287896b0a stratum: add missing keccakc variant 2018-02-28 11:13:20 +01:00
Tanguy Pruvot
4120ee7d62 stratum: auto detect 'old' masternodes rpc (#236) 2018-02-26 11:47:28 +01:00
exmac
de4592cc1a Add a5a algo for Andcoin 2018-02-25 20:36:29 +01:00
Tanguy Pruvot
03f25a73ef stratum: DNR v2 masternodes 2018-02-24 18:00:36 +01:00
Tanguy Pruvot
236650dc57 stratum: allow to limit txs per block 2018-02-18 15:51:29 +01:00
Tanguy Pruvot
033d50c9ba stratum: allow more than 254 transactions in blocks 2018-02-18 14:05:40 +01:00
Tatar Xavatar
e37c636deb Update x16r.conf : error with port (#232) 2018-02-18 14:04:32 +01:00
Tanguy Pruvot
c99770a5ae stratum: allow to reopen wiped global logs
can be useful after a logrotate, to avoid restarting the stratums
2018-02-16 13:37:54 +01:00
oddhome
5468b84da7 stratum: set PBS as old masternode #220 2018-02-09 16:57:22 +01:00
Tanguy Pruvot
4d74f06204 stratum: extra check for the haters 2018-02-07 11:55:09 +01:00
UniMining.net
d69d3ce3fc yescryptR16 algo (#217)
Algo yescryptR16 for Yenten [YTN] https://bitcointalk.org/?topic=2329470.0

stratum changes from https://github.com/bubasik/yiimp
2018-01-31 08:23:27 +01:00
Tanguy Pruvot
a79e21491a stratum: avoid the use of getinfo 2018-01-30 02:16:51 +01:00
Frederic Rezeau
88106d8be2 Add MAG (Magnet) masternode to oldmasternodes (#213)
Greetings, I am head dev for Magnet masternode and noticed the change
made in coinbase.cpp for recent masternode RPC as default.
This change has disabled masternode payments on pools using MAG client.
So, we would like to add it to oldmasternodes list with this pull request.
2018-01-27 01:59:03 +01:00