Skip to content

Commit 55c60f8

Browse files
committed
Clear the calculated hash speed at mining start.
This avoids having the hash speed affected by a gap in mining or a change in the number of mining threads, without requiring users to call `setminingalgo` on the same algorithm.
1 parent 0cfd270 commit 55c60f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wallet/rpcwallet.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4989,6 +4989,7 @@ UniValue generatecontinuous(const JSONRPCRequest& request)
49894989
result.pushKV("threads", 0);
49904990
result.pushKV("message", "Mining stopped");
49914991
} else {
4992+
ClearHashSpeed();
49924993
result.pushKV("threads", nThreads);
49934994
if (sWarning.compare(""))
49944995
result.pushKV("message", strprintf("Warning: %s", sWarning.c_str()));

0 commit comments

Comments
 (0)