Make getnetworkhashps result an int64.

This commit is contained in:
Dave Collins 2014-02-07 12:10:10 -06:00
parent 397c4caefe
commit 7623d13c37

View file

@ -891,6 +891,12 @@ func ReadResultCmd(cmd string, message []byte) (Reply, error) {
if err == nil { if err == nil {
result.Result = res result.Result = res
} }
case "getnetworkhashps":
var res int64
err = json.Unmarshal(objmap["result"], &res)
if err == nil {
result.Result = res
}
case "getrawtransaction": case "getrawtransaction":
// getrawtransaction can either return a JSON object or a // getrawtransaction can either return a JSON object or a
// hex-encoded string depending on the verbose flag. Choose the // hex-encoded string depending on the verbose flag. Choose the