From 6129fdb50876de9c03735d2fbd0420dff2b0e67f Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Mon, 17 Aug 2015 20:34:13 +0200 Subject: [PATCH] Use toJS instead of toHex() --- ethminer/MinerAux.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethminer/MinerAux.h b/ethminer/MinerAux.h index 5dd6d8b5082..84cd69c2c43 100644 --- a/ethminer/MinerAux.h +++ b/ethminer/MinerAux.h @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -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) {