Todo:
- send block height via stratum protocol (encoded in jobid?)
- remove equi/blake2 cpu algorithm to use common one
the extranonce imcompatibility is related to the solver nonce data,
offsets may be reversed in nheqminer, to check...
The solver was adapted for SM 3.0+ support (no perf changes)
Note: The solver was not improved on purpose, to be able compare
the two miners performances (nheqminer 0.5c the last open sourced, and ccminer)
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
stratum: code cleanup, move equi fns in equi folder
- prefer calloc to zero memory
- bind: keep the normal network read access with -b 0.0.0.0 like previous versions
- help: keep the write mode commands hidden in read-only mode
- close the socket on refused api calls to prevent client hangs
- small other changes
plimit value is reported in mW like the power, or % on Windows x86 (via nvapi)
+ the monitor thread will no more report 0W if the device doesnt support it
also upgrade nvml and sample php api.
some more changes may come in this temporary API 1.9 (for the final 2.0)
will allow to submit some device benchmark data to compute algo
power usage and profitability.
Introduce two new methods mining.get_algo and mining_get_stats
These methods will be used with yiimp stratum with a special benchmark option
Note: only the first card is handled for the moment.
also add stratum mining.ping support (like cgminer 4.7.1+) and prevent disconnect
on unknown methods, reply it is unsupported.
Switching to a pool with a different algo will require a barrier
to free ressources, like what was made in the global benchmark.
add also the algo in pool structure...
The full benchmark can now be launched with "ccminer --benchmark"
add a new helper function which log a warning with last cuda error
(not shown with the quiet option) : CUDA_LOG_ERROR();
it can be used where miner.h is included (.c/.cpp/.cu)
fix x14 (in ccminer.cpp), a break was missing in switch..case
commit a9d3c1ffdb71d2a4985749acba3d424161154ab4
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Thu May 21 05:39:24 2015 +0200
multipool: last changes before squashed merge
and fix net diff on wallets.. was longpoll specific
commit a63f0024f3f1fb52d2c4369518bf87c33a9e16ae
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Thu May 21 05:02:27 2015 +0200
update api sample for the protocol 1.5
commit adda14b22edde6485932be56550166478f6f00dd
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Thu May 21 04:43:25 2015 +0200
stats: store pool number in scanlog
commit e1a0274b01c29409ce16f9096b9985a35cf78ba7
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Thu May 21 03:36:15 2015 +0200
api: switchpool and new pool stats variables (API v1.5)
add accepted/rej by pool, wait time on conditional, net diff and rate
also add scantime per pool config option and do some pool cleanup..
commit 1a30450ad2a5e068983531b9d2a96629b970c1e8
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Wed May 20 06:39:09 2015 +0200
prevent concurrent pool switching
and limit condtionnal wait messages to the first thread/device
commit e3922c7a331a3ad2730bc83082fcd6b2547542f5
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Wed May 20 05:39:45 2015 +0200
add some pool rotate options, like pool time-limit
update sample pools.conf for time rotation
commit 312bd905412d49fd5a9f9e7ff2bc72b23edf38ed
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Wed May 20 04:31:19 2015 +0200
do not try to restart threads from threads
Start inconditionally the stratum and longpoll threads,
these threads are just waiting a tq_push() if unused...
so add some checks to know if vars are set for the right pool
commit d4a9428fefdd9e9d70c3c8231f10961e7cd41760
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Wed May 20 01:06:31 2015 +0200
pools: add name and removed attributes
also increase max defined pools to 8
to be tested on windows..
commit d840d683ecb2cc4767f0a0612b8359c52d4bad29
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Tue May 19 22:33:11 2015 +0200
parse json config file pools array
commit d6c29b1f7f6b786c56e1f0cb8a90305f06cc7aec
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Tue May 19 03:29:30 2015 +0200
multi-pools: prepare storage/switch of credentials
for the moment:
- allow the storage of multiple -o params (and user/pass)
- allow a failover pool on connection failed
- switch to the next pool with the "seturl" api remote command
- longpoll to stratum switch (reverse to check...)
todo: mix stratum/getwork, new api commands, json config...
commit 2d6b3fddf6631d7df1ac6ca74eee91c33a3c09ee
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Fri May 22 08:26:40 2015 +0200
multipool: increase stability, but not 100% perfect
several problems fixed:
- submit to the pool set in work (source pool)
- longpoll curl timeout could be too high and could lock the switch
- mutexes cant be copied on windows (stratum global var to fully remove later)
I linked the -T timeout option to curl and tried to remove all fixed timeout values
commit 6fd935c369cf33949dab98c8b09b2ca8cab3e7ea
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Fri May 22 11:23:07 2015 +0200
stratum: remove last rpc_ vars in stratum thread
commit ee9c821525be303282e5dab512ffd2ae81ad524f
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Sat May 23 03:53:50 2015 +0200
stratum: do not alloc empty merkle tree
commit 69852a2874bd18c4ed1daa9180a10d12976424dc
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date: Sat May 23 04:25:12 2015 +0200
stratum: properly free jobs on disconnect
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
was only made on the wallets with getmininginfo
Todo: double check for all algos/pools
tested ok on x11, lyra2, skein, skein2, zr5 stratum/longpoll
Scrypt-Jane pool net diff seems incorrect, disabled
Neoscrypt could be different also (untested, disabled)...
only allowed if --api-remote parameter or config key is set
and fix possible problem with urls containing user:password@
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Allow to directly get api data in HTML5
Tested on Chrome... IE>=10 required, not tested
IE11 seems buggy on connection close... todo
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
heavy: reduce by 256 threads default intensity to all -i 20
cuda: put static thread init bools outside the code (made once)
api: fix nvml header to build without