mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-09-25 18:00:41 +02:00
api: add stratum difficulty (#489)
Fixes Issue #482 Adds current stratum difficulty to the system/info endpoint
This commit is contained in:
@@ -376,6 +376,7 @@ static esp_err_t GET_system_info(httpd_req_t * req)
|
||||
cJSON_AddNumberToObject(root, "hashRate", GLOBAL_STATE->SYSTEM_MODULE.current_hashrate);
|
||||
cJSON_AddStringToObject(root, "bestDiff", GLOBAL_STATE->SYSTEM_MODULE.best_diff_string);
|
||||
cJSON_AddStringToObject(root, "bestSessionDiff", GLOBAL_STATE->SYSTEM_MODULE.best_session_diff_string);
|
||||
cJSON_AddNumberToObject(root, "stratumDiff", GLOBAL_STATE->stratum_difficulty);
|
||||
|
||||
cJSON_AddNumberToObject(root, "isUsingFallbackStratum", GLOBAL_STATE->SYSTEM_MODULE.is_using_fallback);
|
||||
|
||||
|
Reference in New Issue
Block a user