add a few missing and fix misspelled commands.

This commit is contained in:
David Hill 2014-04-12 10:47:07 -04:00
parent ea7947f74e
commit 997d98bddf

View file

@ -531,11 +531,13 @@ func ReadResultCmd(cmd string, message []byte) (Reply, error) {
// For commands that return a single item (or no items), we get it with // For commands that return a single item (or no items), we get it with
// the correct concrete type for free (but treat them separately // the correct concrete type for free (but treat them separately
// for clarity). // for clarity).
case "getblockcount", "getbalance", "getblocknumber", "getgenerate", case "getblockcount", "getbalance", "getblockhash", "getgenerate",
"getconnetioncount", "getdifficulty", "gethashespersec", "getconnectioncount", "getdifficulty", "gethashespersec",
"setgenerate", "stop", "settxfee", "getaccount", "setgenerate", "stop", "settxfee", "getaccount",
"getnewaddress", "sendtoaddress", "createrawtransaction", "getnewaddress", "sendtoaddress", "createrawtransaction",
"sendrawtransaction", "getbestblockhash", "getrawchangeaddress": "sendrawtransaction", "getbestblockhash", "getrawchangeaddress",
"sendfrom", "sendmany", "addmultisigaddress", "getunconfirmedbalance",
"getaccountaddress":
err = json.Unmarshal(message, &result) err = json.Unmarshal(message, &result)
default: default:
// None of the standard Bitcoin RPC methods matched. Try // None of the standard Bitcoin RPC methods matched. Try