From 7623d13c3732c2e7d0fbeb167c3e43507929b68a Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 7 Feb 2014 12:10:10 -0600 Subject: [PATCH] Make getnetworkhashps result an int64. --- jsonapi.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jsonapi.go b/jsonapi.go index 54a088b9..246cdcac 100644 --- a/jsonapi.go +++ b/jsonapi.go @@ -891,6 +891,12 @@ func ReadResultCmd(cmd string, message []byte) (Reply, error) { if err == nil { result.Result = res } + case "getnetworkhashps": + var res int64 + err = json.Unmarshal(objmap["result"], &res) + if err == nil { + result.Result = res + } case "getrawtransaction": // getrawtransaction can either return a JSON object or a // hex-encoded string depending on the verbose flag. Choose the