2f9515f37arpc: move fees object to match help (josibake)07ade7db8fdoc: add release note for fee field deprecation (josibake)2ee406ce3etest: add functional test for deprecatedrpc=fees (josibake)35d928c632rpc: deprecate fee fields from mempool entries (josibake) Pull request description: per #22682 , top level fee fields for mempool entries have been deprecated since 0.17 but are still returned. this PR properly deprecates them so that they are no longer returned unless `-deprecatedrpc=fees` is passed. the first commit takes care of deprecation and also updates `test/functional/mempool_packages.py` to only use the `fees` object. the second commit adds a new functional test for `-deprecatedrpc=fees` closes #22682 ## questions for the reviewer * `-deprecatedrpc=fees` made the most sense to me, but happy to change if there is a name that makes more sense * #22682 seems to indicate that after some period of time, the fields will be removed all together. if we have a rough idea of when this will be, i can add a `TODO: fully remove in vXX` comment to `entryToJSON` ## testing to get started on testing, compile, run the tests, and start your node with the deprecated rpcs flag: ```bash ./src/bitcoind -daemon -deprecatedrpc=fees ``` you should see entries with the deprecated fields like so: ```json { "<txid>": { "fees": { "base": 0.00000671, "modified": 0.00000671, "ancestor": 0.00000671, "descendant": 0.00000671 }, "fee": 0.00000671, "modifiedfee": 0.00000671, "descendantfees": 671, "ancestorfees": 671, "vsize": 144, "weight": 573, ... }, ``` you can also check `getmempoolentry` using any of the txid's from the output above. next start the node without the deprecated flag, repeat the commands from above and verify that the deprecated fields are no longer present at the top level, but present in the "fees" object ACKs for top commit: jnewbery: reACK2f9515f37aglozow: utACK2f9515f37aTree-SHA512: b175f4d39d26d96dc5bae26717d3ccfa5842d98ab402065880bfdcf4921b14ca692a8919fe4e9969acbb5c4d6e6d07dd6462a7e0a0a7342556279b381e1a004e
7.3 KiB
After branching off for a major version release of Bitcoin Core, use this template to create the initial release notes draft.
The release notes draft is a temporary file that can be added to by anyone. See /doc/developer-notes.md#release-notes for the process.
Create the draft, named "version Release Notes Draft" (e.g. "22.0 Release Notes Draft"), as a collaborative wiki in:
https://github.com/bitcoin-core/bitcoin-devwiki/wiki/
Before the final release, move the notes back to this git repository.
version Release Notes Draft
Bitcoin Core version version is now available from:
https://bitcoincore.org/bin/bitcoin-core-*version*/
This release includes new features, various bug fixes and performance improvements, as well as updated translations.
Please report bugs using the issue tracker at GitHub:
https://github.com/bitcoin/bitcoin/issues
To receive security and update notifications, please subscribe to:
https://bitcoincore.org/en/list/announcements/join/
How to Upgrade
If you are running an older version, shut it down. Wait until it has completely
shut down (which might take a few minutes in some cases), then run the
installer (on Windows) or just copy over /Applications/Bitcoin-Qt (on Mac)
or bitcoind/bitcoin-qt (on Linux).
Upgrading directly from a version of Bitcoin Core that has reached its EOL is possible, but it might take some time if the data directory needs to be migrated. Old wallet versions of Bitcoin Core are generally supported.
Compatibility
Bitcoin Core is supported and extensively tested on operating systems using the Linux kernel, macOS 10.15+, and Windows 7 and newer. Bitcoin Core should also work on most other Unix-like systems but is not as frequently tested on them. It is not recommended to use Bitcoin Core on unsupported systems.
Notable changes
P2P and network changes
- A bitcoind node will no longer rumour addresses to inbound peers by default. They will become eligible for address gossip after sending an ADDR, ADDRV2, or GETADDR message. (#21528)
Fee estimation changes
- Fee estimation now takes the feerate of replacement (RBF) transactions into account. (#22539)
Rescan startup parameter removed
The -rescan startup parameter has been removed. Wallets which require
rescanning due to corruption will still be rescanned on startup.
Otherwise, please use the rescanblockchain RPC to trigger a rescan. (#23123)
Updated RPCs
-
upgradewalletwill now automatically flush the keypool if upgrading from a non-HD wallet to an HD wallet, to immediately start using the newly-generated HD keys. (#23093) -
a new RPC
newkeypoolhas been added, which will flush (entirely clear and refill) the keypool. (#23093) -
The
validateaddressRPC now returns anerror_locationsarray for invalid addresses, with the indices of invalid character locations in the address (if known). For example, this will attempt to locate up to two Bech32 errors, and return their locations if successful. Success and correctness are only guaranteed if fewer than two substitution errors have been made. The error message returned in theerrorfield now also returns more specific errors when decoding fails. (#16807) -
The
-deprecatedrpc=addressesconfiguration option has been removed. RPCsgettxout,getrawtransaction,decoderawtransaction,decodescript,gettransaction verbose=trueand REST endpoints/rest/tx,/rest/getutxos,/rest/blockno longer return theaddressesandreqSigsfields, which were previously deprecated in 22.0. (#22650) -
The
getblockRPC command now supports verbose level 3 containing transaction inputsprevoutinformation. The existing/rest/block/REST endpoint is modified to contain this information too. Everyvinfield will contain an additionalprevoutsubfield describing the spent output.prevoutcontains the following keys:generated- true if the spent coins was a coinbase.heightvaluescriptPubKey
-
listunspentnow includesancestorcount,ancestorsize, andancestorfeesfor each transaction output that is still in the mempool. (#12677) -
lockunspentnow optionally takes a third parameter,persistent, which causes the lock to be written persistently to the wallet database. This allows UTXOs to remain locked even after node restarts or crashes. (#23065) -
The top-level fee fields
fee,modifiedfee,ancestorfeesanddescendantfeesreturned by RPCsgetmempoolentry,getrawmempool(verbose=true),getmempoolancestors(verbose=true)andgetmempooldescendants(verbose=true)are deprecated and will be removed in the next major version (use-deprecated=feesif needed in this version). The same fee fields can be accessed through thefeesobject in the result. WARNING: deprecated fieldsancestorfeesanddescendantfeesare denominated in sats, whereas all fields in thefeesobject are denominated in BTC. (#22689)
New RPCs
Build System
Files
- On startup, the list of banned hosts and networks (via
setbanRPC) inbanlist.datis ignored and onlybanlist.jsonis considered. Bitcoin Core version 22.x is the only version that can readbanlist.datand also write it tobanlist.json. Ifbanlist.jsonalready exists, version 22.x will not try to translate thebanlist.datinto json. After an upgrade,listbannedcan be used to double check the parsed entries. (#22570)
New settings
Updated settings
-
In previous releases, the meaning of the command line option
-persistmempool(without a value provided) incorrectly disabled mempool persistence.-persistmempoolis now treated like other boolean options to mean-persistmempool=1. Passing-persistmempool=0,-persistmempool=1and-nopersistmempoolis unaffected. (#23061) -
-maxuploadtargetnow allows human readable byte units [k|K|m|M|g|G|t|T]. E.g.-maxuploadtarget=500g. No whitespace, +- or fractions allowed. Default isMif no suffix provided. (#23249)
Tools and Utilities
-
Update
-getinfoto return data in a user-friendly format that also reduces vertical space. (#21832) -
CLI
-addrinfonow returns a single field for the number ofonionaddresses known to the node instead of separatetorv2andtorv3fields, as support for Tor V2 addresses was removed from Bitcoin Core in 22.0. (#22544)
Wallet
GUI changes
- UTXOs which are locked via the GUI are now stored persistently in the wallet database, so are not lost on node shutdown or crash. (#23065)
Low-level changes
RPC
getblockchaininfonow returns a newtimefield, that provides the chain tip time. (#22407)
Tests
- For the
regtestnetwork the activation heights of several softforks were set to block height 1. They can be changed by the runtime setting-testactivationheight=name@height. (#22818)
Credits
Thanks to everyone who directly contributed to this release:
As well as to everyone that helped with translations on Transifex.