Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Use toJS instead of toHex()
Browse files Browse the repository at this point in the history
  • Loading branch information
LefterisJP committed Aug 17, 2015
1 parent f752f3d commit 6129fdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethminer/MinerAux.h
Expand Up @@ -37,6 +37,7 @@
#include <libdevcore/StructuredLogger.h>
#include <libethcore/Exceptions.h>
#include <libdevcore/SHA3.h>
#include <libdevcore/CommonJS.h>
#include <libethcore/EthashAux.h>
#include <libethcore/EthashGPUMiner.h>
#include <libethcore/EthashCPUMiner.h>
Expand Down Expand Up @@ -515,7 +516,7 @@ class MinerCLI
auto rate = mp.rate();
try
{
rpc.eth_submitHashrate(toHex((u256)rate, HexPrefix::Add), "0x" + id.hex());
rpc.eth_submitHashrate(toJS((u256)rate), "0x" + id.hex());
}
catch (jsonrpc::JsonRpcException const& _e)
{
Expand Down

0 comments on commit 6129fdb

Please sign in to comment.