MCPcopy Create free account
hub / github.com/LUX-Core/lux / gethashespersec

Function gethashespersec

src/rpcmining.cpp:206–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206UniValue gethashespersec(const UniValue& params, bool fHelp)
207{
208 if (fHelp || params.size() != 0)
209 throw runtime_error(
210 "gethashespersec\n"
211 "\nReturns a recent hashes per second performance measurement while generating.\n"
212 "See the getgenerate and setgenerate calls to turn generation on and off.\n"
213 "\nResult:\n"
214 "n (numeric) The recent hashes per second when generation is on (will return 0 if generation is off)\n"
215 "\nExamples:\n" +
216 HelpExampleCli("gethashespersec", "") + HelpExampleRpc("gethashespersec", ""));
217
218// if (GetTimeMillis() - nHPSTimerStart > 8000)
219// return (int64_t)0;
220 return (int64_t)0;/*dHashesPerSec*/;
221}
222#endif
223
224

Callers 1

getmininginfoFunction · 0.85

Calls 3

HelpExampleCliFunction · 0.85
HelpExampleRpcFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected