Commit graph

39 commits

Author SHA1 Message Date
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
6fb041adbc stratum: extra check for job id field (#181) 2017-10-05 11:29:40 +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
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
Tanguy Pruvot
8428d49750 bitcore timetravel-10 algo variant
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2017-05-01 01:02:14 +02:00
Tanguy Pruvot
dcaf083ccf decred: handle new block header stake version in coinb2 2017-04-23 19:49:41 +02:00
Tanguy Pruvot
ca022f2628 stratum: add deep, timetravel and hmq1725 algos
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2017-02-27 20:38:05 +01:00
Tanguy Pruvot
0bed2e0465 lyra2z (v3) xzc at block 20500
disable the public explorer for now + dyn payee

note: xzc coinbase value is already without dev fees

warning: this wallet rpc is very slow and seems to slow down the backend (use it at your risks)
2017-02-12 09:23:32 +01: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
b2aa3d9ffd stratum: fix height displayed for AUX debug logs 2016-06-09 14:57:05 +02:00
Tanguy Pruvot
aed4a0a856 stratum: extra check about ntime range 2016-06-01 06:37:58 +02:00
Tanguy Pruvot
39e0d4ba26 benchmarks: allow to del + stratum record limit 2016-05-16 16:43:49 +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
f61d53bc67 stratum: handle block confirmations on multialgos coins
+ var typo fix
2016-05-11 19:59:28 +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
1abd0ef300 decred: never change last vote bit 2016-04-16 01:34:33 +02:00
Tanguy Pruvot
553c920cab shares: store (temporary) submitted work diff for future stats...
PS: this table is only used for current round (until a bloc is found)

also log a part of the submitted shares by default, to show activity
2016-04-02 15:08:43 +02:00
Tanguy Pruvot
71de6d635b db: save blocks worker id for worker stats
Note: need database change!
2016-04-02 15:08:43 +02:00
Tanguy Pruvot
4ec4f92619 stratum: decred voting support
like heavycoin, with a 6th mining.submit parameter
2016-03-19 09:40:17 +01:00
Tanguy Pruvot
1d4551e004 decred: add a check for empty/invalid extranonces
Its important to have this data filled to prevent duplicates
against clients.
2016-03-17 07:20:30 +01:00
Tanguy Pruvot
5460cb205d stratum: increase decred blocks purge time
show some user diff and finder id on block accept

curl: increase the credentials field size to allow very long passwords
2016-02-23 19:27:39 +01:00
Tanguy Pruvot
52e99b4d77 rpc/curl: retry getwork if no data was received
seems to happen with a high number of workers... (overflow)
2016-02-20 14:30:36 +01:00
Tanguy Pruvot
051e3fc786 noblocknotifiy: use the right blockhash 2016-02-18 12:10:26 +01:00
Tanguy Pruvot
48964e8393 stratum: allow to bypass blocknotify requests
for decred, to detect new blocks faster and store finder infos
2016-02-17 17:30:24 +01:00
Tanguy Pruvot
8a313b1281 decred: coinbase cleanup, to finish...
their coinbase structure is still a bit different
2016-02-16 09:58:44 +01:00
Tanguy Pruvot
55ada4b908 decred: prepare a usegetwork setting 2016-02-13 07:38:38 +01:00
Tanguy Pruvot
8d34b5a187 decred: submit block override, to test 2016-02-12 15:31:59 +01:00
Tanguy Pruvot
5ef293e938 decred stratum hack with extranonce field
override the coinbase field with the static part of the decred header...
2016-02-12 14:49:18 +01:00
Tanguy Pruvot
f4371654d7 stratum: some cleanup about coinbase and txmessage
txmessage/pos change was suggested by bitbandi...
2016-01-24 17:15:37 +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
0abc18069c Handle EGC specific blocks with dev fees 2016-01-11 00:46:25 +01:00
Tanguy Pruvot
6d6fd9337f stratum: new algos, attempt to allow old sha merkleroot
blake (SFR) and whirlpool (J) tested ok with a sha256d merkleroot

So add a stratum setting to allow single sha256 merkle root...
The shares are now valid on the pool side, but remains to find
an old wallet to test... like Whirlcoin or blakecoin

keccak not tested, could have the same problem about merkle/miners
2015-10-07 05:04:04 +02:00
Tanguy Pruvot
e34da61806 stratum: add support for m7m algo (XMG)
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-10-05 23:56:29 +02: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
4ab72f3839 stratum: log invalid share data... 2015-07-23 05:56:45 +02:00
Tanguy Pruvot
9fad62357b fix zr5 algo 2015-07-23 05:56:45 +02:00
Tanguy Pruvot
f249ec0140 add drop algo, and hash debug flag 2015-07-23 05:56:45 +02:00
root
cc92c825ef stratum code 2015-07-02 20:58:24 +02:00