mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-08-23 17:47:24 +00:00
Fix typo in command name getaddressesbyaccount.
Caught by jrick@
This commit is contained in:
parent
10542e0573
commit
39cef5e76a
1 changed files with 2 additions and 2 deletions
|
@ -209,7 +209,7 @@ func CreateMessage(message string, args ...interface{}) ([]byte, error) {
|
||||||
// One required string
|
// One required string
|
||||||
case "backupwallet", "decoderawtransaction", "dumpprivkey",
|
case "backupwallet", "decoderawtransaction", "dumpprivkey",
|
||||||
"encryptwallet", "getaccount", "getaccountaddress",
|
"encryptwallet", "getaccount", "getaccountaddress",
|
||||||
"getaddressbyaccount", "getblock",
|
"getaddressesbyaccount", "getblock",
|
||||||
"gettransaction", "sendrawtransaction", "validateaddress":
|
"gettransaction", "sendrawtransaction", "validateaddress":
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
err = fmt.Errorf("%s requires one argument", message)
|
err = fmt.Errorf("%s requires one argument", message)
|
||||||
|
@ -708,7 +708,7 @@ func RpcCommand(user string, password string, server string, message []byte) (Re
|
||||||
}
|
}
|
||||||
resp, err := jsonRpcSend(user, password, server, message)
|
resp, err := jsonRpcSend(user, password, server, message)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err := fmt.Errorf("Error sending json message: "+err.Error())
|
err := fmt.Errorf("Error sending json message: " + err.Error())
|
||||||
return result, err
|
return result, err
|
||||||
}
|
}
|
||||||
body, err := GetRaw(resp.Body)
|
body, err := GetRaw(resp.Body)
|
||||||
|
|
Loading…
Add table
Reference in a new issue