Add additional commands to ones we know return data type.

getaccount and getnewaddress
This commit is contained in:
John C. Vernaleo 2013-08-05 17:26:59 -04:00
parent f8fdabe53b
commit 285faf8c75

View file

@ -689,7 +689,8 @@ func readResultCmd(cmd string, message []byte) (Reply, error) {
// for clarity).
case "getblockcount", "getbalance", "getblocknumber", "getgenerate",
"getconnetioncount", "getdifficulty", "gethashespersec",
"setgenerate", "stop", "settxfee":
"setgenerate", "stop", "settxfee", "getaccount",
"getnewaddress":
err = json.Unmarshal(message, &result)
// For anything else put it in an interface. All the data is still
// there, just a little less convenient to deal with.