1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 04:24:19 +00:00

fix API working - delete remain mentions of some algos

This commit is contained in:
R4SAS 2018-06-17 23:17:34 +03:00
parent 4f8e93eca2
commit e3b6c202ce
4 changed files with 2 additions and 12 deletions

View File

@ -33,14 +33,11 @@ typedef enum {
ALGO_LYRA2RE,
ALGO_LYRA2REV2,
ALGO_PLUCK,
ALGO_YESCRYPT,
ALGO_YESCRYPT_MULTI,
ALGO_BLAKECOIN,
ALGO_BLAKE,
ALGO_SIA,
ALGO_DECRED,
ALGO_VANILLA,
ALGO_LBRY,
ALGO_SIBCOIN,
ALGO_GOSTCOIN
} algorithm_type_t;

3
api.c
View File

@ -122,8 +122,7 @@ struct CODES codes[] = {
{ SEVERITY_ERR, MSG_NOPOOL, PARAM_NONE, "No pools" },
{ SEVERITY_SUCC, MSG_DEVS, PARAM_DMAX, "%d GPU(s)" },
{ SEVERITY_ERR, MSG_NODEVS, PARAM_NONE, "No GPUs"
},
{ SEVERITY_ERR, MSG_NODEVS, PARAM_NONE, "No GPUs" },
{ SEVERITY_SUCC, MSG_SUMM, PARAM_NONE, "Summary" },
{ SEVERITY_INFO, MSG_GPUDIS, PARAM_GPU, "GPU %d set disable flag" },

1
ocl.c
View File

@ -675,7 +675,6 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize, algorithm_t *alg
size_t readbufsize = 128;
if (algorithm->type == ALGO_CRE) readbufsize = 168;
else if (algorithm->type == ALGO_DECRED) readbufsize = 192;
else if (algorithm->type == ALGO_LBRY) readbufsize = 112;
else if (algorithm->type == ALGO_PASCAL) readbufsize = 196;
if (algorithm->rw_buffer_size < 0) {

View File

@ -5635,9 +5635,6 @@ static void *stratum_sthread(void *userdata)
else if (pool->algorithm.type == ALGO_DECRED) {
nonce = *((uint32_t *)(work->data + 140));
}
else if (pool->algorithm.type == ALGO_LBRY) {
nonce = *((uint32_t *)(work->data + 108));
}
else if (pool->algorithm.type == ALGO_SIA) {
nonce = *((uint32_t *)(work->data + 32));
}
@ -7198,7 +7195,6 @@ static void rebuild_nonce(struct work *work, uint32_t nonce)
uint32_t nonce_pos = 76;
if (work->pool->algorithm.type == ALGO_CRE) nonce_pos = 140;
else if (work->pool->algorithm.type == ALGO_DECRED) nonce_pos = 140;
else if (work->pool->algorithm.type == ALGO_LBRY) nonce_pos = 108;
else if (work->pool->algorithm.type == ALGO_SIA) nonce_pos = 32;
else if (work->pool->algorithm.type == ALGO_PASCAL) nonce_pos = 196;
@ -7218,8 +7214,7 @@ bool test_nonce(struct work *work, uint32_t nonce)
rebuild_nonce(work, nonce);
// for Neoscrypt, the diff1targ value is in work->target
if (work->pool->algorithm.type == ALGO_NEOSCRYPT || work->pool->algorithm.type == ALGO_PLUCK
|| work->pool->algorithm.type == ALGO_YESCRYPT || work->pool->algorithm.type == ALGO_YESCRYPT_MULTI) {
if (work->pool->algorithm.type == ALGO_NEOSCRYPT || work->pool->algorithm.type == ALGO_PLUCK) {
diff1targ = ((uint32_t *)work->target)[7];
}
else {