Commit graph

217 commits

Author SHA1 Message Date
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
Tanguy Pruvot
a89a0ef4cf stratum: fix altminer commit 2018-01-24 20:47:46 +01:00
Tanguy Pruvot
0019ca611d new x16r algo, with stratum factor 256, like timetravel algos
beware: this algo may have a variable hashrate, unlike timetravel

its ignored from benchs for this reason
2018-01-24 20:43:52 +01:00
AltMinerNet
e4914a6b09 stratum: check coin filters early (#211)
Avoid the override of global variables
g_stratum_max_cons, g_max_shares, g_stratum_segwit
by excluded coinds by checking the include/exclude filters earlier.
2018-01-24 20:35:41 +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
AltMinerNet
117c7b3c9c stratum: pushing more old masternodes (#210) 2018-01-19 23:12:24 +01:00
Tanguy Pruvot
758e591348 stratum: initialize segwit flag 2018-01-19 00:53:38 +01:00
Tanguy Pruvot
fda559bca4 stratum: hsr sm3 cleanup + rotl32 issue 2018-01-14 00:44:11 +01:00
Tanguy Pruvot
bc68c04163 stratum: handle more old masternodes (#204) 2018-01-10 16:10:34 +01:00
Tanguy Pruvot
d200935198 stratum: null ptr check on json arrays 2018-01-10 15:54:21 +01: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
1d523798be stratum: use new dash masternodes as default
remember to do a make clean... coind struct was changed
2018-01-09 17:53:45 +01:00
AltMinerNet
7729b5c2ef stratum: possibility to change sql port 2018-01-06 13:51:48 +01:00
Tanguy Pruvot
41821cee93 sql: also add a stratum start time column
time column is refreshed at regular interval by the process
2018-01-01 12:58:46 +01:00
Tanguy Pruvot
472b4d7635 stratum: fill new port workers and symbol fields 2018-01-01 12:31:01 +01:00
Tanguy Pruvot
d090779579 stratum: prevent double free on bad clients 2017-12-20 23:40:14 +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
a8e98c1839 stratum: ipset function to block botnets
can be (manually) used, if needed, in client_authorize
2017-12-15 23:53:39 +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
69a8f951a3 stratum: allow wallet filters in the .conf
Allow to create a stratum port for only one wallet
2017-11-30 13:02:17 +01:00
Tanguy Pruvot
cbe55a3a84 Squashed commit for segwit support:
commit c59abe5d203fabdabcca81ff5f9c6ff133cfae3b
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Tue Nov 28 11:13:52 2017 +0100

    segwit: show a segwit icon on blocks history

    + remove some inline styles...

commit b4a8639370e6837ebc5a2047e7c334e9f931abfc
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Tue Nov 28 09:55:40 2017 +0100

    segwit: cleanup + masternode case

    tested ok with BSD (block 400996), and with real BTX segwit txs (block 90958)

    also ok on VTC and GRS

commit 926dbd11757ebff7f7d4930266de9b9061c8ab16
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Sat Nov 25 18:41:01 2017 +0100

    sql: add segwit fields, and ui config

    and fill block segwit field if it contains segwit txs,
    an icon is added in the dashboard "last blocks" for these blocks

commit 0b13bf55e9dd1d2229d188f0f8382b27642b20da
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Sat Nov 25 13:47:20 2017 +0100

    segwit: include commitment in coinbase + .conf toggle

    tested ok on BTX, GRS and VTC with normal txs, but the commitment merkle hash maybe need some more love...

    so, to prevent useless bigger blocks, only generate segwit commitment if a segwit tx is present in mempool

    to check with real segwit txs... not seen any yet..

commit b508bc87943d9e426cda994c2f53c16c11e8d4c3
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Thu Mar 2 11:18:34 2017 +0100

    segwit: prepare the witness data, but disabled

    need more test, may affect the coinbase merkle and the miners...

commit 19bd3a83b9ddddd8b5ed4b7a1bdf8cf8c233e346
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Thu Mar 2 10:30:29 2017 +0100

    stratum: handle and auto toggle segwit if supported
2017-11-28 11:55:20 +01:00