Add additional commands to ones we know return data type.
getaccount and getnewaddress
This commit is contained in:
parent
f8fdabe53b
commit
285faf8c75
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue