Commit graph

107 commits

Author SHA1 Message Date
Tanguy Pruvot
4ccd8248bd stratum: attempt to fix a list corruption (shares) 2016-07-08 10:50:39 +02:00
root
abc134ced9 Commit AUXPOW SegFault Fix 2016-07-07 21:03:03 +02:00
Tanguy Pruvot
d2f0f424ee stratum: dont try to send on closed sockets 2016-07-07 14:38:04 +02:00
Tanguy Pruvot
a94c239b53 stratum: update vcash symbol 2016-07-06 11:28:44 +02:00
Tanguy Pruvot
0c66f33c22 stratum: extra check on client thread exit 2016-07-03 10:14:00 +02:00
crackfoo
64ec96df41 stratum: close sockets of delayed jobs 2016-07-03 10:12:01 +02:00
Tanguy Pruvot
28872880d7 stratum: check job broadcast errors (disconnect bad clients) 2016-07-01 05:27:14 +02:00
Tanguy Pruvot
b2aa3d9ffd stratum: fix height displayed for AUX debug logs 2016-06-09 14:57:05 +02:00
Tanguy Pruvot
9a60f2dc75 stratum: add bench memory field (todo in ccminer) 2016-06-07 21:41:33 +02:00
Tanguy Pruvot
7e37bd14e9 stratum: re-enable the watchdog, take too much time 2016-06-03 19:01:16 +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
aed4a0a856 stratum: extra check about ntime range 2016-06-01 06:37:58 +02:00
Tanguy Pruvot
96097edfe9 x11evo algo, properly rewrote
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2016-06-01 06:37:14 +02:00
Tanguy Pruvot
1a53bf093e benchmarks: function to clean cpu names 2016-05-21 04:02:44 +02:00
Tanguy Pruvot
8d4ebc40ca stratum: allow cpuminer-multi stats 2016-05-21 01:22:22 +02:00
Tanguy Pruvot
d262f87bad stratum/stats: handle the benchmark miner user
and update benchmarks instructions
2016-05-20 21:41:42 +02:00
Tanguy Pruvot
7ae4a67ab0 stratum: defines for valid address min/max length 2016-05-20 18:33:16 +02:00
Tanguy Pruvot
a6136712d2 stratum: prevent diff/algo setting conflict 2016-05-19 22:53:51 +02:00
Tanguy Pruvot
f816169c04 stratum: improve guest users, do not create accounts 2016-05-18 22:52:13 +02:00
Tanguy Pruvot
976c87d601 stratum: allow test/benchmark/donate usernames
+ spaces check
2016-05-18 21:45:10 +02:00
Tanguy Pruvot
c47244bea3 stratum/stats: fix double values, were rounded to int 2016-05-17 22:00:14 +02:00
Tanguy Pruvot
39e0d4ba26 benchmarks: allow to del + stratum record limit 2016-05-16 16:43:49 +02:00
Tanguy Pruvot
169241f273 stratum: use the proper new method to request stats 2016-05-16 01:18:07 +02:00
Tanguy Pruvot
52f44b591e stratum: fix json parse with multiple object tags 2016-05-16 00:39:00 +02:00
Tanguy Pruvot
970016a567 stratum: temporary fix to clean about bad json parse 2016-05-15 19:44:36 +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
f61d53bc67 stratum: handle block confirmations on multialgos coins
+ var typo fix
2016-05-11 19:59:28 +02:00
Tanguy Pruvot
c059a912db add x17 algo 2016-05-09 16:12:07 +02:00
Tanguy Pruvot
90b29f7cd2 blakecoin: add to default algos + diff factor fix 2016-05-02 15:40:07 +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
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