You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
labels are associated with addresses (rather than addresses being
associated with labels, as was the case with accounts). The
getlabeladdress does not make sense in this model, so remove it.
getaccountaddress is still supported for one release as the accounts
API is deprecated.
if (!EnsureWalletIsAvailable(pwallet, request.fHelp)) {
203
203
return NullUniValue;
204
204
}
205
205
206
-
if (!IsDeprecatedRPCEnabled("accounts") && request.strMethod == "getaccountaddress") {
206
+
if (!IsDeprecatedRPCEnabled("accounts")) {
207
207
if (request.fHelp) {
208
208
throwstd::runtime_error("getaccountaddress (Deprecated, will be removed in V0.18. To use this command, start bitcoind with -deprecatedrpc=accounts)");
209
209
}
210
210
throwJSONRPCError(RPC_METHOD_DEPRECATED, "getaccountaddress is deprecated and will be removed in V0.18. To use this command, start bitcoind with -deprecatedrpc=accounts.");
211
211
}
212
212
213
-
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2)
213
+
if (request.fHelp || request.params.size() != 1)
214
214
throwstd::runtime_error(
215
-
"getlabeladdress\"label\" ( force ) \n"
216
-
"\nReturns the default receiving address for this label. This will reset to a fresh address once there's a transaction that spends to it.\n"
215
+
"getaccountaddress\"account\"\n"
216
+
"\n\nDEPRECATED. Returns the current Bitcoin address for receiving payments to this account.\n"
217
217
"\nArguments:\n"
218
-
"1. \"label\" (string, required) The label for the address. It can also be set to the empty string \"\" to represent the default label.\n"
219
-
"2. \"force\" (bool, optional) Whether the label should be created if it does not yet exist. If False, the RPC will return an error if called with a label that doesn't exist.\n"
220
-
" Defaults to false (unless the getaccountaddress method alias is being called, in which case defaults to true for backwards compatibility).\n"
218
+
"1. \"account\" (string, required) The account for the address. It can also be set to the empty string \"\" to represent the default account. The account does not need to exist, it will be created and a new address created if there is no account by the given name.\n"
221
219
"\nResult:\n"
222
-
"\"address\" (string) The current receiving address for the label.\n"
220
+
"\"address\" (string) The account bitcoin address\n"
0 commit comments