Con Kolivas
1ca4198a45
Quieten down jansson component of build.
11 years ago
Tim Bateman
0a187bdd41
Fixed one byte stack overflow in mcast recvfrom.
...
The actual overflow happens when enforcing the NULL termination shortly
after the recvfrom.
11 years ago
Con Kolivas
65d9136dd5
Fix json parsing in api.c
11 years ago
Con Kolivas
79521fe8f0
Initialise devices before attempting to connect to pools to allow their thread prepare function to be called before having to connect to pools.
...
Conflicts:
cgminer.c
11 years ago
Con Kolivas
7d2cee3066
Drop json stratum auth failed message log level to verbose.
11 years ago
Con Kolivas
39b7bc26cb
Silence irrelevant warning.
11 years ago
Con Kolivas
05d69bf75c
Provide a function to discard queued work based on age. (NOTE: may be unused)
11 years ago
Con Kolivas
ebeb710375
Decrement json references in api.c to not leak memory.
...
The json_val in api.c is a borrowed reference, not a new one so don't decref it.
11 years ago
ouɐɹɔs ʞɹɐɯ
c8b97fbd8a
line 2913 added urlencode
...
There was a cross site scripting vulnerability due to insufficient input sanitation on the $pg parameter. This patch fixes that issue.
11 years ago
Con Kolivas
93782c30ed
Update api example compilation instructions.
11 years ago
Con Kolivas
7dd8b316ac
Prevent a deadlock with use of restart_threads by spawning a thread to send the driver flush work messages.
...
Conflicts:
cgminer.c
11 years ago
Con Kolivas
39121183e1
Set priority of various threads if possible.
...
Conflicts:
cgminer.c
11 years ago
Con Kolivas
e9f20f5e0b
Do not hold the mining thread lock in restart_threads when calling the driver flush work commands.
11 years ago
Con Kolivas
b5eddd1159
Don't run device restart code if the device is not enabled.
11 years ago
Con Kolivas
9ed6c3b1b5
Provide a function for setting the work ntime.
11 years ago
Kano
89000ffb1a
api.c trylock() add missing locklock
11 years ago
Maksym Borodin
d976abe12d
api.c: Release apisock on error in api()
11 years ago
Maksym Borodin
7383e19a9d
api.c: Release io_data->ptr when releasing io_data in io_free()
11 years ago
Con Kolivas
f1902fe6ac
We can't connect to a GBT pool at all with fix protocol enabled.
11 years ago
Noel Maersk
cb806d2437
core: Display difficulty in cgminer style, not true network difficulty (for consistency within the interface).
...
This regression was introduced by commit 3f6b9d6796
.
11 years ago
Noel Maersk
08727c1a57
Update authors.
...
Still pulling from ckolivas/cgminer, so note that.
11 years ago
Noel Maersk
4c99829179
Merge pull request #1 from veox/forward-port
...
Forward port
Pull in changes in ckolivas/cgminer (up to commit 8fa5ddf
, made on Wed Nov 13 11:57:29 2013 +0100).
This is still useful for all functionality not related to SHA256d/Scrypt mining. Obviously, ckolivas/cgminer developers are few bits more familiar with the code base.
11 years ago
Maksym Borodin
8fa5ddfd2c
util.c: Decreasing reference count on allocated JSON obects to prevent memory leak
11 years ago
Con Kolivas
cd7f6ed56a
Initialise the stgd lock mutex earlier to prevent dereferences when pool testing occurs before it.
...
Conflicts:
cgminer.c
11 years ago
Con Kolivas
694a98ece3
--shares should be scaled to diff1 not absolute number of shares
11 years ago
Con Kolivas
cd03fcdf2d
Reset the work_restart bool after the scanwork loop in case the driver flushes work synchronously.
11 years ago
Con Kolivas
75c5ac0457
Only check for the stratum clean message if we have had a valid message.
11 years ago
Con Kolivas
d38802a68f
Get rid of the stage thread since all work can be asynchronously added now via hash_push anyway.
...
Conflicts:
cgminer.c
11 years ago
Con Kolivas
c9bf06d19b
Break out of the hash work loops when a failure is detected instead of dropping into mt disable.
11 years ago
ckolivas
d9b3037e4b
Fix build for no libcurl
11 years ago
Noel Maersk
be0270408f
doc: update README, rename CONFIGURATION back to SCRYPT.
11 years ago
Noel Maersk
e4680ab627
core: allow changing TCP keepalive packet idle time using `tcp-keepalive` command-line option or config-file option.
...
This may be useful in certain scenarios. However, server load from keepalive
is increased 6-fold if code is hard-changed from 30 to 5. So, provide it as
an option instead, and use the previous value as a default (30).
Explanation from
015c064396
Kevin's middlecoin fix, CURL TCP keepalive constants lowered:
CURLOPT_TCP_KEEPIDLE from 45 to 5 and CURLOPT_TCP_KEEPINTVL from 30 to
5. Before it'd trigger a keepalive packet after 45 seconds of connection
idle time and then again every 30 seconds. Now it triggers a keepalive
packet after 5 seconds of connection idle time and then again every 5
seconds.
It makes the client more resilient against coin switching pools or just
pools with connection issues in general. It will however add a tiny bit
pressure to the pool server; but a TCP keepalive probe is only about
60-80 bytes, so I don't think it is an issue.
11 years ago
Noel Maersk
bb5065b601
core: Remove two unused functions.
...
They were previously necessary to switch between SHA256d and Scrypt.
11 years ago
Noel Maersk
211da58a73
Remove a few stray ASIC defines.
11 years ago
Noel Maersk
d6f5f01e88
doc: move to separate directory.
11 years ago
Noel Maersk
21289de654
misc: Remove LICENSE (use COPYING).
11 years ago
Noel Maersk
83e52dfe78
api: remove references to FPGAs and ASICs.
11 years ago
Noel Maersk
71927bb0ba
misc: Add Martin Danielsen to AUTHORS.
11 years ago
Noel Maersk
b11ca3650a
Remove remaining references to have_opencl.
11 years ago
Noel Maersk
744e819117
Remove last references to opt_nogpu.
11 years ago
Martin Danielsen
2799c237c3
Added BIOS information to --ndevs|-n listing.
...
This will aid people identifying cards in setups with different cards within the same series, eg. 7950 and 7970s, or 290 and 290Xs.
Conflicts:
adl.c
11 years ago
Noel Maersk
e3d2579df1
doc: If ADL SDK is used, then version 5 or 6 is required.
11 years ago
Noel Maersk
45b1219aa1
misc: Change encoding of adl_functions.c to UTF-8.
11 years ago
Martin Danielsen
783cd01e11
Preparation for ADL Overdrive 6 support
...
There's no functionality implemented yet, nor has the existing functionality been changed.
11 years ago
Martin Danielsen
11c20c87fa
core: Warn if GPU_MAX_ALLOC_PERCENT or GPU_USE_SYNC_OBJECTS is not set
...
...through export (Linux) or setx (Windows).
11 years ago
Martin Danielsen
31123de410
-g or --gpu-threads now support comma separated values, yaaay!
...
It is exactly what it says, now you can finally put that Frankenrig configuration in one file.
The parameter follows the same design as gpu-engine and gpu-memclock.
11 years ago
Noel Maersk
b4e36e69e8
Code cleanup after last two commits.
...
Display reject percentage in a fixed-width field.
11 years ago
Noel Maersk
d53b329f18
core: Revert printing threads for every GPU, this setting is not modifiable at run-time.
11 years ago
Martin Danielsen
89663c7e94
Display reject percentage instead of absolute accepted/rejected values
...
Changed GPU status line from "A:xxxxx R:xxx" to "R:0.0%". It shows (rejected/(accepted+rejected))*100, which is the percentage of rejections for a GPU. Total accepted and rejected in top status is unchanged.
GPU status lines now show both threads and intensity.
11 years ago
Noel Maersk
3ade514b94
log: Do not pad log string with a space.
11 years ago