diff --git a/doc/release-notes.md b/doc/release-notes.md index 8c86aed51..f36e1c741 100644 --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -1,21 +1,28 @@ # Bitcoin ABC 0.24.1 Release Notes Bitcoin ABC version 0.24.1 is now available from: This release includes the following features and fixes: ## CLI A new `bitcoin-cli -generate` command, equivalent to RPC `generatenewaddress` followed by `generatetoaddress`, can generate blocks for command line testing purposes. This is a client-side version of the former `generate` RPC. See the help for details. +## Low-level RPC Changes + +- To make RPC `sendtoaddress` more consistent with `sendmany` the following error + `sendtoaddress` codes were changed from `-4` to `-6`: + - Insufficient funds + - Transaction has too long of a mempool chain + ## Notification changes `-walletnotify` notifications are now sent for wallet transactions that are removed from the mempool because they conflict with a new block. These notifications were sent previously before the v0.21.13 release, but had been broken since that release. diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index af9a79684..7570043f8 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -1,5005 +1,4969 @@ // Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2019 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 // for GetConsensus. #include #include #include #include #include #include #include #include #include #include #include #include #include #include