diff --git a/doc/release-notes.md b/doc/release-notes.md index 23ed655b8..c4c3e9824 100644 --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -1,77 +1,79 @@ Bitcoin ABC version 0.21.8 is now available from: This release includes the following features and fixes: Updated RPCs ------------ - The `getrawtransaction` RPC no longer checks the unspent UTXO set for a transaction. The remaining behaviors are as follows: 1. If a blockhash is provided, check the corresponding block. 2. If no blockhash is provided, check the mempool. 3. If no blockhash is provided but txindex is enabled, also check txindex. - `getaddressinfo` now reports `solvable`, a boolean indicating whether all information necessary for signing is present in the wallet (ignoring private keys). - `getaddressinfo`, `listunspent`, and `scantxoutset` have a new output field `desc`, an output descriptor that encapsulates all signing information and key paths for the address (only available when `solvable` is true for `getaddressinfo` and `listunspent`). - The `importmulti` RPC will now contain a new per-request `warnings` field with strings that explain when fields are being ignored or inconsistent, if any. - Fixed a bug where `listreceivedaddress` would fail to take an address as a string. Note: some low-level RPC changes mainly useful for testing are described in the Low-level Changes section below. - The `sendtoaddress` RPC never had this check, so to normalize the behavior, `minconf` is now ignored in `sendmany`. If the coin selection does not succeed due to missing coins, it will still throw an RPC error. Be reminded that coin selection is influenced by the `-spendzeroconfchange`, `-limitancestorcount`, `-limitdescendantcount` and `-walletrejectlongchains` command line arguments. +- The `hdmasterkeyid` return field has been removed from `getaddressinfo` and + `getwalletinfo`. Use `hdseedid` instead. RPC importprivkey: new label behavior ------------------------------------- Previously, `importprivkey` automatically added the default empty label ("") to all addresses associated with the imported private key. Now it defaults to using any existing label for those addresses. For example: - Old behavior: you import a watch-only address with the label "cold wallet". Later, you import the corresponding private key using the default settings. The address's label is changed from "cold wallet" to "". - New behavior: you import a watch-only address with the label "cold wallet". Later, you import the corresponding private key using the default settings. The address's label remains "cold wallet". In both the previous and current case, if you directly specify a label during the import, that label will override whatever previous label the addresses may have had. Also in both cases, if none of the addresses previously had a label, they will still receive the default empty label (""). Examples: - You import a watch-only address with the label "temporary". Later you import the corresponding private key with the label "final". The address's label will be changed to "final". - You use the default settings to import a private key for an address that was not previously in the wallet. Its addresses will receive the default empty label (""). Descriptor import support --------------------- The `importmulti` RPC now supports importing of addresses from descriptors. A "desc" parameter can be provided instead of the "scriptPubKey" in a request, as well as an optional range for ranged descriptors to specify the start and end of the range to import. More information about descriptors can be found [here](https://github.com/Bitcoin-ABC/bitcoin-abc/blob/master/doc/descriptors.md). New RPC methods ------------ - `deriveaddresses` returns one or more addresses corresponding to an [output descriptor](/doc/descriptors.md). diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index bb5843c51..5af7c5942 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -1,4801 +1,4793 @@ // Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include #include // for GetConsensus. #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include