File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ Deprecated or removed RPCs
4
4
- The ` getaddressinfo ` RPC ` labels ` field now returns an array of label name
5
5
strings. Previously, it returned an array of JSON objects containing ` name ` and
6
6
` purpose ` key/value pairs, which is now deprecated and will be removed in
7
- 0.21. To re-enable the previous behavior, launch bitcoind with
7
+ 0.21. To re-enable the previous behavior, launch with
8
8
` -deprecatedrpc=labelspurpose ` .
Original file line number Diff line number Diff line change @@ -3843,12 +3843,11 @@ UniValue getaddressinfo(const JSONRPCRequest& request)
3843
3843
// associated with an address, but we return an array so the API remains
3844
3844
// stable if we allow multiple labels to be associated with an address in
3845
3845
// the future.
3846
- //
3847
- // DEPRECATED: The previous behavior of returning an array containing a JSON
3848
- // object of `name` and `purpose` key/value pairs has been deprecated.
3849
3846
UniValue labels (UniValue::VARR);
3850
3847
std::map<CTxDestination, CAddressBookData>::iterator mi = pwallet->mapAddressBook .find (dest);
3851
3848
if (mi != pwallet->mapAddressBook .end ()) {
3849
+ // DEPRECATED: The previous behavior of returning an array containing a
3850
+ // JSON object of `name` and `purpose` key/value pairs is deprecated.
3852
3851
if (pwallet->chain ().rpcEnableDeprecated (" labelspurpose" )) {
3853
3852
labels.push_back (AddressBookDataToJSON (mi->second , true ));
3854
3853
} else {
Original file line number Diff line number Diff line change 4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
"""
6
6
Test deprecation of RPC getaddressinfo `labels` returning an array
7
- containing a JSON hash of `name` and purpose` key-value pairs. It now
8
- returns an array of label names .
7
+ containing a JSON object of `name` and purpose` key-value pairs. It now
8
+ returns an array containing only the label name .
9
9
10
10
"""
11
11
from test_framework .test_framework import BitcoinTestFramework
You can’t perform that action at this time.
0 commit comments