mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 01:44:23 +00:00
Fixed pool name display in rejected share notice when pool name is longer than 20 chars.
This commit is contained in:
parent
8ad1d91c4f
commit
b2e500e2a6
12
sgminer.c
12
sgminer.c
@ -2731,15 +2731,10 @@ share_result(json_t *val, json_t *res, json_t *err, const struct work *work,
|
||||
|
||||
applog(LOG_DEBUG, "PROOF OF WORK RESULT: false (booooo)");
|
||||
if (!QUIET) {
|
||||
char where[20];
|
||||
char disposition[36] = "reject";
|
||||
char reason[32];
|
||||
|
||||
strcpy(reason, "");
|
||||
if (total_pools > 1)
|
||||
snprintf(where, sizeof(where), "%s", get_pool_name(pool));
|
||||
else
|
||||
strcpy(where, "");
|
||||
|
||||
if (!work->gbt)
|
||||
res = json_object_get(val, "reject-reason");
|
||||
@ -2765,7 +2760,12 @@ share_result(json_t *val, json_t *res, json_t *err, const struct work *work,
|
||||
}
|
||||
|
||||
applog(LOG_NOTICE, "Rejected %s %s %d %s%s %s%s",
|
||||
hashshow, cgpu->drv->name, cgpu->device_id, where, reason, resubmit ? "(resubmit)" : "", worktime);
|
||||
hashshow,
|
||||
cgpu->drv->name,
|
||||
cgpu->device_id,
|
||||
(total_pools > 1) ? get_pool_name(pool) : "",
|
||||
reason, resubmit ? "(resubmit)" : "",
|
||||
worktime);
|
||||
sharelog(disposition, work);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user