Commit graph

38 commits

Author SHA1 Message Date
RealAwesomeness
4eb569c9ec stratum: handle Lyra2zz algo (#345) 2019-03-23 19:45:28 +01:00
Tanguy Pruvot
c72dd91511 Revert "stratum: handle ismine check moved in getaddressinfo"
most wallets are not ready for that...

This reverts commit afc80e2a68.
2018-05-25 15:48:33 +02:00
Tanguy Pruvot
afc80e2a68 stratum: handle ismine check moved in getaddressinfo 2018-05-25 15:12:06 +02:00
Tanguy Pruvot
5b91a559f9 stratum: do more checks on stats device names 2018-04-10 15:48:26 +02: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
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
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
03f25a73ef stratum: DNR v2 masternodes 2018-02-24 18:00:36 +01:00
oddhome
5468b84da7 stratum: set PBS as old masternode #220 2018-02-09 16:57:22 +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
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
117c7b3c9c stratum: pushing more old masternodes (#210) 2018-01-19 23:12:24 +01:00
Tanguy Pruvot
bc68c04163 stratum: handle more old masternodes (#204) 2018-01-10 16:10:34 +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
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
Tanguy Pruvot
e67634d82a stratum: prevent some negative values 2017-10-02 14:43:22 +02:00
Tanguy Pruvot
81a5552386 sql/benchs: add new columns to store the plimit and real freqs
also drop the mem amount column, unused and kinda useless...
2017-02-05 12:50:36 +01:00
Tanguy Pruvot
f31dd15d4e stratum: link new limits db fields
the share counter will allow you to auto restart the stratum, if required.
2016-11-24 00:54:06 +01:00
Tanguy Pruvot
9a60f2dc75 stratum: add bench memory field (todo in ccminer) 2016-06-07 21:41:33 +02:00
Tanguy Pruvot
6d3dd22082 stratum: add a flag indicating we need exit
can be useful to filter real valgrind leaks on exit and trap reboot signal

also protect against db queries after close
2016-06-03 17:05:36 +02:00
Tanguy Pruvot
1a53bf093e benchmarks: function to clean cpu names 2016-05-21 04:02:44 +02:00
Tanguy Pruvot
c47244bea3 stratum/stats: fix double values, were rounded to int 2016-05-17 22:00:14 +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
4eaab8c05d link new coin fields, auto filled 2016-05-11 21:25:42 +02:00
Tanguy Pruvot
74b80292a6 stratum/decred: link new db coin rpc fields
And use rpcencoding='DCR' for decred checks,
to handle testnet instances or future forks..
2016-04-20 00:13:11 +02:00
Tanguy Pruvot
55ada4b908 decred: prepare a usegetwork setting 2016-02-13 07:38:38 +01:00
Tanguy Pruvot
20c8056943 stratum: prepare future rpc of TLS
split "https://mycert@host" host field
2016-02-03 05:05:50 +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
Tanguy Pruvot
9d4c4d41c7 stratum: reduce defines, prepare the autoexchange variable
also improve the user wallet addresses checks

and allow to mine aux coins in normal (gbt) + aux at the same time
2015-09-26 06:51:14 +02:00
Tanguy Pruvot
3684958354 stratum: prevent sql injections
At least the symbol was accepting special chars... we dont want any...
2015-07-23 05:56:50 +02:00
Tanguy Pruvot
46b188dfc9 stratum: link hasmasternodes new db field
and fix possible segfault if "payee" string does not exists for masternodes

Also handle MDT masternodes amounts
2015-07-23 05:56:48 +02:00
root
cc92c825ef stratum code 2015-07-02 20:58:24 +02:00