ystarnaud
1914cef959
Fixed x13 and other issues
...
Corrected the x13 errors and fixed a few issues with the config parser's
handling of the default_profile.
11 years ago
troky
3f83f221fb
Moved (reverted) some struct definitions to api.c. MSVS doesn't like them in .h
11 years ago
ystarnaud
fae56ceeeb
Added API function to change pool profile
...
Added the API function changepoolprofile to change a pool's profile to
the specified profile name.
11 years ago
ystarnaud
ea1aba07d8
API Update
...
Ability to add/remove profiles via API.
11 years ago
Noel Maersk
832ac82bf6
Updated API functionality
...
Fixed addpool to specify a profile or algorithm and sets defaults if
nothing specified. Also added a new API function to change multipool
strategy.
Conflicts (resolved):
sgminer.c
11 years ago
Noel Maersk
9fe5272c92
Updated config writer
...
Config writer now supports profiles and pool specific values. In
addition, the config writer now makes use of the jansson library to
create proper json objects and save them to the config file. This is
much better than trying to write our own json code.
Conflicts (resolved):
sgminer.c
11 years ago
troky
c92443384b
Lock tracking code fixed for MSVS.
11 years ago
Jan Berdajs
25d7d426fd
convert tabs to spaces in most commonly modified files
11 years ago
Jan Berdajs
9fdd23e6ff
since mining_threads count can change, we need to lock more carefully and get_thread function is not helpful anymore
11 years ago
Jan Berdajs
19fc4cc93c
remove gpu_threads which is identical to mining_threads. refactor mining threads init code
11 years ago
elbandi
91a26c46b7
Protect pool name with lock
...
Disconnect from pool, if auth is failed
handle mining.set_extranonce method
subscribe for mining.extranonce
Allow disable extranonce subscribe
Send subscribe request before auth
Change mining.set_extranonce method as stratum notification
Set extranonce.subscribe timeout to 2sec
Some tweaks for extranonce
Handle pool response, who send errors in invalid format
Move no-extranonce-subscribe parameter to a pool config
Include pool.h
Set the pool idle and switch pool, if need
Mark pool as idle if stratum restart is failed
Conflicts:
sgminer.c
11 years ago
Jan Berdajs
c0baf790f6
making new algorithms and other changes merged from sph-sgminer work with current version of sgminer
11 years ago
Noel Maersk
3eb22b215e
api: write xintensity and rawintensity using api_add_int().
11 years ago
Noel Maersk
d27e8691e1
api: Add XIntensity and RawIntensity to `devs` output.
11 years ago
Luke Dashjr
3a6c1c8bb0
RPC: Provide a full status section for quit/restart commands
11 years ago
Noel Maersk
47d00ee524
api: add missing header.
...
Imlicit declarations (using get_pool_name() without including pool.h)
produces a warning for me and AFAIR breaks compilation for someone else.
11 years ago
Luke Dashjr
5bd5b07e15
RPC: Add "Miner" to version response to include software name along with version
11 years ago
Elbandi
973dcefa8c
Use get_pool_name everywhere
11 years ago
Noel Maersk
f5709910fb
api: Bugfix, bump version to 4.1.271, initialise name/desc/algo in addpool() so checks for NULL work.
...
Otherwise API "addpool|a,b,c" command segfaults (access uninitialised
memory address).
11 years ago
Noel Maersk
5409ffc2a4
api: check if name/desc/algo are NULL and fill with defaults if so.
...
Defaults should probably be specified elsewhere.
There should be a constructor for stuff like this.
This shit is really bringing me down.
11 years ago
Noel Maersk
9aaff8ccf5
api: bump version, but allow name/desc/algo to be missing when adding pool details.
...
This will have unintended consequences, since API clients are sure to
send pool details without name/desc/algo. pooldetails() will allow them
to do that, and add_pool_details() will fill the pool structure with
NULLs.
11 years ago
Noel Maersk
3c3a58475e
ui+api: ask for pool name/description/algorithm when adding pool from NCurses/API.
...
Closes #116 .
This is trivial and shouldn't be so hard: it required modifying
functions in both sgminer.c (for NCurses stuff) and api.c. There is
much code repetition, since the NCurses interface is hard-coded in.
Removing it would simplify things greatly.
11 years ago
troky
2a087a7dae
Added algorithm name to 'pools' API command.
11 years ago
Noel Maersk
b6218e20c1
config: rename --pool-priority to --priority, --coin to --description.
...
There are now get_current_pool() and current_pool(), which is confusing.
Moved them closer together, so it's at least obvious.
11 years ago
Jan Berdajs
c2131df6aa
add support for setting algorithm/nfactor for each pool separately, and fix bugged OpenCL thread cleanup (thread shutdown)
11 years ago
troky
bcb78ed91b
Added --coin pool parameter.
11 years ago
Noel Maersk
aa471a2dfd
api: remove unused SCRYPTSTR.
...
Gets rid of compiler warning.
11 years ago
troky
9414592539
Added pool name to API "pools" command
11 years ago
Noel Maersk
87801c2578
opencl: rename cgpu_info->kname to cgpu_info->kernelname.
11 years ago
unknown
6b0b424c0a
Fixed API timeval formatting again. Use of snprintf() causes problems in MSVS.
11 years ago
unknown
0e37fc24b0
Added algorrithm name to "coin" API command. Changed default algo name to "scrypt".
11 years ago
unknown
25242861c7
API: Fixed timeval struct formatting .
11 years ago
Noel Maersk
ae23d25086
api: proper type casting for MSVS support.
...
Closes https://github.com/veox/sgminer/issues/113
11 years ago
phm
9585d2a8e6
Added support for DarkCoin kernel. Modified stats display to handle low difficulty values.
11 years ago
Jim Jagielski
88c7720caf
These may not be longs (eg: OSX)... fo a safe cast to ensure.
11 years ago
Kano
ae837a762f
API allow multiple commands/replies in one request
11 years ago
Con Kolivas
90cc93c6cc
Add the ability to display a hexadecimal 32 bit unsigned integer to the API.
11 years ago
Con Kolivas
c31de2601b
Store when the last getwork was retrieved and display it in the API summary.
11 years ago
ckolivas
a58ef1b8c7
Provide a helper function for determining dev runtime and use it in the hashmeters used.
11 years ago
Kano
faf63ec036
Modify thread naming to make them easier to identify
11 years ago
Kano
301daae6f4
api.c 2014
11 years ago
Kano
b6c6ec5c83
api add data type AVG float 3 decimal
11 years ago
Kano
83ea44af5d
api.c set the actual version number to 3.0
...
Conflicts resolved:
api.c
11 years ago
Kano
83176cb52a
API V3.0 unlimited socket reply size
11 years ago
Noel Maersk
4e08eb41ef
api: bump API version number to indicate changes that happened after 4.0.0.
11 years ago
Markus Peloquin
bf8e37ce19
Support building in cygwin.
...
Revised the compiler platform macros. Building goes like
$ AMDAPPSDKROOT= CPPFLAGS=-I/usr/include/ncurses ./configure
11 years ago
Noel Maersk
0e8ec8d060
pools: Allow disabling pool even if it's the last one enabled.
...
Pool state machine is incomplete, and enabled_pools is not increased if
pool state is not explicitly set to "enabled" in config. However,
there is no reason why the user should not be allowed to disable
all pools.
enabled_pools is a bookkeeping variable, and bookkeeping is cumbersome.
Rather than trying to fix this regression, get rid of another place
where enabled_pools is used.
Closes https://github.com/veox/sgminer/issues/75
11 years ago
Perry Huang
8bd980dbbd
Add API_KHS endpoint.
...
Fix multiplying before double cast.
Add endpoint to response.
Fix API response function.
Fix var name.
Add KHS to API summary.
11 years ago
Sanjin Trošelj
84eefc74cd
VS2010 build: prepare API.
...
Cherry-picked by veox.
Previous variable 'new' was badly named, but troky's 'n' was too cryptic.
Therefore renamed to 'newsize'.
11 years ago
Noel Maersk
048c82b9b2
pools: rename 'pool->enabled' to 'pool->state'.
11 years ago