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

API show if pool has GBT (so people know not to use that pool)

This commit is contained in:
Kano 2012-12-13 18:30:51 +11:00
parent fd1bd9e7c3
commit 454bc4c3d2

1
api.c
View File

@ -1977,6 +1977,7 @@ static void poolstatus(struct io_data *io_data, __maybe_unused SOCKETTYPE c, __m
root = api_add_escape(root, "Stratum URL", pool->stratum_url, false); root = api_add_escape(root, "Stratum URL", pool->stratum_url, false);
else else
root = api_add_const(root, "Stratum URL", BLANK, false); root = api_add_const(root, "Stratum URL", BLANK, false);
root = api_add_bool(root, "Has GBT", &(pool->has_gbt), false);
root = print_data(root, buf, isjson, isjson && (i > 0)); root = print_data(root, buf, isjson, isjson && (i > 0));
io_add(io_data, buf); io_add(io_data, buf);