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
67e0e04 [wallet] [docs] Update release notes for removing `getlabeladdress` (John Newbery)
8160817 [wallet] [rpc] Remove getlabeladdress RPC (John Newbery)
Pull request description:
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.
Tree-SHA512: 7f45d0456248ebcc4e54dd34e2578a09a8ea8e4fceda75238ccea9d731dc99a3f3c0519b18a9739de17d2e6e59c9c2259ba67c9ae2e3cb2a40ddb14b9193fe29
|`getaccount`|`getaddressinfo`|`getaddressinfo` returns a json object with address information instead of just the name of the account as a string. |
21
-
|`getaccountaddress`|`getlabeladdress`|`getlabeladdress` throws an error by default if the label does not already exist, but provides a `force` option for compatibility with existing applications. |
21
+
|`getaccountaddress`|n/a| There is no replacement for `getaccountaddress` since labels do not have an associated receive address. |
22
22
|`getaddressesbyaccount`|`getaddressesbylabel`|`getaddressesbylabel` returns a json object with the addresses as keys, instead of a list of strings. |
23
23
|`getreceivedbyaccount`|`getreceivedbylabel`|_no change in behavior_|
24
24
|`listaccounts`|`listlabels`|`listlabels` does not return a balance or accept `minconf` and `watchonly` arguments. |
if (!IsDeprecatedRPCEnabled("accounts") && request.strMethod == "getaccountaddress") {
210
+
if (!IsDeprecatedRPCEnabled("accounts")) {
211
211
if (request.fHelp) {
212
212
throwstd::runtime_error("getaccountaddress (Deprecated, will be removed in V0.18. To use this command, start bitcoind with -deprecatedrpc=accounts)");
213
213
}
214
214
throwJSONRPCError(RPC_METHOD_DEPRECATED, "getaccountaddress is deprecated and will be removed in V0.18. To use this command, start bitcoind with -deprecatedrpc=accounts.");
215
215
}
216
216
217
-
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2)
217
+
if (request.fHelp || request.params.size() != 1)
218
218
throwstd::runtime_error(
219
-
"getlabeladdress\"label\" ( force ) \n"
220
-
"\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"
219
+
"getaccountaddress\"account\"\n"
220
+
"\n\nDEPRECATED. Returns the current Bitcoin address for receiving payments to this account.\n"
221
221
"\nArguments:\n"
222
-
"1. \"label\" (string, required) The label for the address. It can also be set to the empty string \"\" to represent the default label.\n"
223
-
"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"
224
-
" Defaults to false (unless the getaccountaddress method alias is being called, in which case defaults to true for backwards compatibility).\n"
222
+
"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"
225
223
"\nResult:\n"
226
-
"\"address\" (string) The current receiving address for the label.\n"
224
+
"\"address\" (string) The account bitcoin address\n"
0 commit comments