Commit graph

25 commits

Author SHA1 Message Date
Tzu-Jung Lee
26a976e0ae stratum: add logs in coind_create_job() 2022-09-29 11:30:09 -07:00
Roy Lee
ce5d2d3030 stratum: cover LBC with DCR tricks 2022-09-29 09:34:47 -07:00
Ralph
2f1230c0dd
Correct Segwit check 2020-01-27 18:13:43 -05:00
Tanguy Pruvot
27176b2e09 phi2 changes to handle lux smart contracts
adds a smart contract roots field (stateroot+utxoroot) to mining.notify

like lbry do with their claimtrie.

These fields are optional, means there are 2 variants of the phi2 algo

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2018-06-21 17:27:33 +02:00
Tanguy Pruvot
236650dc57 stratum: allow to limit txs per block 2018-02-18 15:51:29 +01:00
Tanguy Pruvot
a79e21491a stratum: avoid the use of getinfo 2018-01-30 02:16:51 +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
dcaf083ccf decred: handle new block header stake version in coinb2 2017-04-23 19:49:41 +02: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
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
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
9cbd9bf5e3 stratum: prepare real decred stratum
not finished, commited to test on another server

but, remains the problem of decred custom header fields... stakeroot etc
which should be passed to the miner..
2016-02-15 08:19:12 +01:00
Tanguy Pruvot
49a5d8068c stratum: getwork sleep typo + new time funcs 2016-02-13 13:30:27 +01:00
Tanguy Pruvot
984cb266cf decred: prevent auto_ready reset on gbt error 2016-02-13 10:22:37 +01:00
Tanguy Pruvot
55ada4b908 decred: prepare a usegetwork setting 2016-02-13 07:38:38 +01:00
Tanguy Pruvot
97e8dea474 decred: use getwork... sigh 2016-02-12 22:09:06 +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
b47be3a075 stratum: fix the template warning 2016-02-04 06:00:08 +01:00
Tanguy Pruvot
a24bf3dd3c stratum: allow to use curl (optional) for HTTP/1.1 chunks
Todo: SSL RPC connections... user/pw vars may be required...

Also, update the make files and handle better the getwork client requests..

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2016-02-04 04:23:06 +01:00
Tanguy Pruvot
c615d086b4 stratum: workaround for HTTP/1.1 chunked data (decred gbt)
fallback to HTTP 1.0 if a wallet send chunked data transfers
Else show a message if Content-Length header is not returned (gbt)

But... decred gbt format remains too much different...

Store default account (its not the empty one "" in decred)

Note: This commit also fix some possible segfaults when the wallet
doesn't return what is expected...
2016-02-03 09:20:04 +01:00
Tanguy Pruvot
fa47829c4e stratum: attempt to reduce memory leaks 2016-01-20 14:49:58 +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
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