Commit graph

274 commits

Author SHA1 Message Date
Tanguy Pruvot
6950057b17 db: handle custom user donation percents
The setting is set with g=10% in password field

its disabled by default, to do maybe per worker...

prevent negative donation percents
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
1692a47570 stratum: dont hardcode the files rlimit in binary 2016-03-31 21:24:48 +02:00
Tanguy Pruvot
b90ef30df3 small changes 2016-03-24 05:11:08 +01: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
5116ea9f65 stratum: prevent spaces in the username
that was possible since decred 35 chars workaround...
2016-03-15 03:47:53 +01:00
Tanguy Pruvot
e48a0cd335 blake2s algo 2016-03-10 08:07:08 +01:00
Tanguy Pruvot
8db4565b30 decred: blockconfirm enhancement with blocknotify(-dcr)
+ some getwork logs on submit errors (not seen yet)
2016-03-06 16:30:29 +01:00
Tanguy Pruvot
284cbcdae7 decred: rename blocknotifygo to blocknotify-dcr
also add a small delay before blockconfirm

also, for locked accounts, use iptables reject with the specific port
2016-03-04 15:16:24 +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
4f0ad69619 stratum: fix wrong yaamp default diff field on connect
global change, not related to recent changes or decred additions
2016-02-21 02:05:20 +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
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
e2f982300c decred: detect generated blocks + stratum fix
backend:
  generated blocks were not auto detected (to double check)

stratum:
  seen on a new setup, if dcrd doesnt have --miningaddr set
  stratum is not able to distribute jobs and was crashing
2016-02-14 14:07:13 +01:00
Tanguy Pruvot
49a5d8068c stratum: getwork sleep typo + new time funcs 2016-02-13 13:30:27 +01:00
Tanguy Pruvot
88733a14e6 stratum: new rpc curl ini/conf setting 2016-02-13 11:00:45 +01:00
Tanguy Pruvot
1c230f4d60 add decred algo port + sample conf 2016-02-13 11:00:33 +01:00
Tanguy Pruvot
984cb266cf decred: prevent auto_ready reset on gbt error 2016-02-13 10:22:37 +01:00
Tanguy Pruvot
b7b01648d0 rpc curl code cleanup, to allow multiple connections
remove dead code and keep curl session initialized until coind disconnect
2016-02-13 08:44:14 +01:00
Tanguy Pruvot
55ada4b908 decred: prepare a usegetwork setting 2016-02-13 07:38:38 +01:00
Tanguy Pruvot
b6045518ed getwork: fix result bool value 2016-02-12 22:37:40 +01:00
Tanguy Pruvot
97e8dea474 decred: use getwork... sigh 2016-02-12 22:09:06 +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
e4d7dfe37d stratum makefile cleanup 2016-02-12 09:01:47 +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
20c8056943 stratum: prepare future rpc of TLS
split "https://mycert@host" host field
2016-02-03 05:05:50 +01:00
Tanguy Pruvot
09d4a1f1f7 stratum: small issue seen on bitcoin wallet 2016-01-27 16:57:10 +01:00
Tanguy Pruvot
d9d1be135e Add support for VNL blake 2016-01-27 16:56:28 +01:00
Tanguy Pruvot
9d1c34f894 argon2: clean stratum code
remove dead code detected after cpuminer implementation
2016-01-25 03:12:21 +01:00
Tanguy Pruvot
52580a5636 Add argon2 algo support 2016-01-24 17:15:40 +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
61f280b64d algos: enable whirlpool and myr-gr
drop fresh
2016-01-23 14:37:15 +01:00
Tanguy Pruvot
fa47829c4e stratum: attempt to reduce memory leaks 2016-01-20 14:49:58 +01:00
Tanguy Pruvot
13d56d462d bittrex cleanup + c11 sample conf 2016-01-19 13:42:05 +01:00
Tanguy Pruvot
2a6ccf6e8f stratum: implement mandatory foundation txs (dev fees)
At least 2 coins are using this system (EGC and LTCR)

Fields are present in the database but were not used, link them.
2016-01-18 12:08:44 +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
a8a5a8280f Add velvet algo 2015-12-19 20:19:38 +01:00
Tanguy Pruvot
f4fcf685ae add support for yescrypt algo
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-12-17 21:41:52 +01:00
Tanguy Pruvot
b197a17a49 stratum: reduce the opt level for neoscrypt/gcc 5.2 2015-12-04 12:34:53 +01:00
Tanguy Pruvot
803476d0ad lyra2: set blake 256 rounds 2015-10-22 02:48:28 +02: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
8c97bba761 groestl: fix the algos mismatches, make 2 2015-10-06 17:37:56 +02:00