Commit graph

287 commits

Author SHA1 Message Date
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
AltMinerNet
87c7b8c481 stratum: support ONEX/GBX/KZC nodes (#189)
Including
* ONEX Cash (https://bitcointalk.org/index.php?topic=2393150.0)
* GoByte (https://bitcointalk.org/index.php?topic=2414021.0)
* KZCash (https://bitcointalk.org/index.php?topic=2312421.0)
2017-11-21 14:08:55 +01:00
Tanguy Pruvot
b7a562542d stratum: truncate worker fields if too long
for recent mysql default constraints
2017-11-18 08:47:50 +01:00
Alastair Clark
333becac01 stratum: crown systemnode coinbase (#187) 2017-11-17 10:08:13 +01:00
Tanguy Pruvot
bfd614859f polytimos algo 2017-11-16 11:06:11 +01:00
Tanguy Pruvot
bdad68d11b stratum: disable useless client sort
its not required to sort them, and can cause some "race" issues
2017-11-01 02:02:03 +01:00
phm87
2bc3ba7965 stratum: DSR masternodes (#184)
https://bitcointalk.org/index.php?topic=2272607.msg23083239#msg23083239

Masternode payments enabled.

getblocktemplate:
"masternode": {
"payee": "D5rbtUcYuyDPdFpotGBvzoGjt9z81QoKpj",
"script": "76a91407d98dac0453c81cc78e7b0c834a574894d1afc388ac",
"amount": 500001496
},
"masternode_payments_started": true,
"masternode_payments_enforced": true,

so, should be new version (like on Dash 12.1)

coinbase.cpp (stratum on yiimp)

  strcmp(coind->symbol, "DASH") == 0 || strcmp(coind->symbol, "DASH-TESTNET") == 0) // Dash 12.1

-------
Ticker is DSR:
http://coinsmarkets.com/trade-BTC-DSR.htm
2017-10-27 18:59:24 +02:00
AltMinerNet
9ec57d80e4 stratum: INN / ENT support (#183)
Handle coinbase for innova and eternity.
2017-10-26 16:47:32 +02:00
Tanguy Pruvot
c6e140ef7c handle phi algo too 2017-10-11 18:06:19 +02:00
Tanguy Pruvot
b97c52f14d hsr algo (x13 + custom hash) 2017-10-10 08:05:51 +02:00
Tanguy Pruvot
6fb041adbc stratum: extra check for job id field (#181) 2017-10-05 11:29:40 +02:00
Tanguy Pruvot
e67634d82a stratum: prevent some negative values 2017-10-02 14:43:22 +02:00
Tanguy Pruvot
94e5b5ea79 stratum: fix possible issue on client subscribe 2017-09-17 03:47:42 +02:00
hashrefinery
6927be13fe VIVO support (#179)
Add support for VIVO masternodes
https://bitcointalk.org/index.php?topic=2110690
2017-09-03 16:49:05 +02:00
Tanguy Pruvot
4d532fd2e6 stratum: ignore method mining.multi_version #175 2017-09-02 00:57:04 +02:00
Tanguy Pruvot
07ff36c866 stratum: reduce the client auth rpc calls (#111) 2017-08-30 14:55:00 +02:00
Gerko de Roo
aa56520b70 stratum: update makefile (make clean)
make clean also cleans stratum/algos/ar2 folder.
2017-08-28 19:12:47 +02:00
Tanguy Pruvot
dab748ec0c stratum: delete worker after socket shutdown 2017-08-17 07:27:28 +02:00
Tanguy Pruvot
97a1f3148d stratum: ignored shares should be purged too 2017-08-16 13:03:58 +02:00
Tanguy Pruvot
a2b0b7d423 stratum: do not store anonymous invalid shares 2017-08-16 12:06:16 +02: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
06078c9f2a stratum: exit/restart on repeated socket failure 2017-08-04 01:41:53 +02:00
Tanguy Pruvot
fe0c1a010a stratum: show the date in reject.log
and remove the block hex.. too big and unreadable
2017-07-23 20:15:41 +02:00
Tanguy Pruvot
c2ff8fdc8c skunk: fix admin bg color + sample config 2017-07-22 07:32:35 +02:00
Tanguy Pruvot
c53ff49a63 Signatum skunk algo
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2017-07-21 11:11:04 +02:00
Tanguy Pruvot
25ec9c7d94 stratum: handle ORB proofhash block field 2017-07-10 15:36:09 +02:00
Tanguy Pruvot
c3721b77c9 tribus algo, nothing complicated...
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2017-07-05 19:17:06 +02:00
Tanguy Pruvot
f8a5a099f6 stratum: check symbol validity and set swap_time field #135 2017-07-01 18:56:46 +02:00
Tanguy Pruvot
bd64837278 Remove old MUE workarounds
remember to reset the reward multiplier to 1 (not 1000 like quark)
2017-06-28 10:47:56 +02:00
Tanguy Pruvot
066da4d8e1 stratum: log rejected blocks in a special file 2017-06-20 13:49:42 +02:00
Tanguy Pruvot
1c22ec4df6 refresh/fix jha algo, keep only the last variant 2017-05-19 13:20:56 +02:00