|
|
@ -1997,10 +1997,13 @@ UniValue rpc_stratum_updatework(const UniValue& params, bool fHelp, const CPubKe |
|
|
|
// throw JSONRPCError(RPC_INTERNAL_ERROR, "Something went wrong, plz try again!");
|
|
|
|
// }
|
|
|
|
|
|
|
|
uint64_t clientsSize = json_clients.size(); |
|
|
|
uint64_t subscriptionsSize = subscriptions.size(); |
|
|
|
|
|
|
|
obj.push_back(Pair("clients", json_clients)); |
|
|
|
obj.push_back(Pair("updated", json_clients.size())); |
|
|
|
obj.push_back(Pair("updated", clientsSize)); |
|
|
|
obj.push_back(Pair("skipped", skipped)); |
|
|
|
obj.push_back(Pair("total", subscriptions.size())); |
|
|
|
obj.push_back(Pair("total", subscriptionsSize)); |
|
|
|
|
|
|
|
return obj; |
|
|
|
} |
|
|
@ -2126,9 +2129,9 @@ UniValue rpc_stratum_getclientscount (const UniValue& params, bool fHelp, const |
|
|
|
+ HelpExampleCli("stratum_getclientscount", "") |
|
|
|
+ HelpExampleRpc("stratum_getclientscount", "") |
|
|
|
); |
|
|
|
|
|
|
|
UniValue obj(UniValue::VOBJ); |
|
|
|
obj.push_back(Pair("total", subscriptions.size())); |
|
|
|
uint64_t subscriptionsSize = subscriptions.size(); |
|
|
|
obj.push_back(Pair("total", subscriptionsSize)); |
|
|
|
|
|
|
|
return obj; |
|
|
|
}; |
|
|
|