Merge bitcoin/bitcoin#36773: doc: fix up some release notes
What changed, and why it matters
This commit only updates release-note documentation files and adds a lint check to ensure those files reference their associated pull request number. It does not change any executable code, network behavior, wallet logic, or RPC behavior, so it has no security impact on Bitcoin Core users.
No security action needed. This is a documentation and lint-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The merge commit updates markdown release-note snippets under doc/ to add missing PR references, corrects a version number from 32.0 to 32.1, fixes formatting, and extends the lint_docs.rs test to verify that every release-notes-*.md file contains a PR reference in the form (#12345) or (gui#123). No C++, Rust, Python, or consensus code is modified.
Changed components
doc/release-notes-*.mddoc/developer-notes.mdtest/lint/test_runner/src/lint_docs.rstest/lint/test_runner/src/main.rsInspect captured patch +82 / −58
### doc/developer-notes.md
@@ -1300,6 +1300,8 @@ Release notes should be written for any PR that:
Release notes should be added to a uniquely named release note file, such as
`/doc/release-notes-remove-feature-foo.md`, to avoid conflicts between multiple PRs.
+Include the pull request number in the snippet, using `(#12345)` for a
+bitcoin/bitcoin PR or `(gui#123)` for a bitcoin-core/gui PR.
All `release-notes*` files are merged into a single `release-notes-<version>.md` file prior to the release.
## RPC interface guidelines
### doc/release-notes-27052.md
@@ -1,8 +1,8 @@
JSON-RPC
--------
-The `getpeerinfo` RPC now returns an additional result field,
-`last_block_announcement`, which indicates the most recent time
-this peer was the first to announce a new block to the local node.
-This timestamp, previously internal only, is used by the stale-tip
-eviction logic.
+- The `getpeerinfo` RPC now returns an additional result field,
+ `last_block_announcement`, which indicates the most recent time
+ this peer was the first to announce a new block to the local node.
+ This timestamp, previously internal only, is used by the stale-tip
+ eviction logic. (#27052)
### doc/release-notes-29278.md
@@ -1,17 +1,17 @@
Wallet
======
-- A new wallet startup option `-maxfeerate` is added.
-- This option sets the upper fee rate limit for wallet transactions.
-- The wallet will not submit or broadcast transactions whose fee rate exceeds `-maxfeerate`.
-- The default is 0.10 BTC/kvB (10,000 sat/vB).
+- A new wallet startup option `-maxfeerate` is added. This option
+ sets the upper fee rate limit for wallet transactions. The wallet
+ will not submit or broadcast transactions whose fee rate exceeds
+ `-maxfeerate`. The default is 0.10 BTC/kvB (10,000 sat/vB). (#29278)
RPC
===
- Transaction broadcasts now check the specified `maxfeerate` limit and fail
- if the transaction fee rate exceeds it.
+ if the transaction fee rate exceeds it. (#29278)
- Transaction broadcast fee limit error messages are now more specific:
`-maxtxfee` errors return "Fee exceeds maximum configured by user
(maxtxfee)", while `maxfeerate` errors return a `MAX_FEE_RATE_EXCEEDED`
- error with "Fee rate exceeds maximum configured by user (maxfeerate)".
+ error with "Fee rate exceeds maximum configured by user (maxfeerate)". (#29278)
### doc/release-notes-34566.md
@@ -5,7 +5,7 @@ Custom signets now use separate data directories, with a suffix equivalent to
the network magic (message start), so multiple signets can be synced. The
default signet continues to use the unsuffixed directory for backward
compatibility, including when the default challenge is set explicitly via
-`-signetchallenge`.
+`-signetchallenge`. (#34566)
Users currently running a custom signet will have their node select a new data
directory after upgrading. To avoid a resync, they should rename the existing
@@ -15,6 +15,3 @@ command from `bitcoin-util` to determine the suffix:
```
$ bitcoin-util -signet -signetchallenge=<challenge> getchainparams | jq -r .net.magic
```
-
-(#34566)
-
### doc/release-notes-34743.md
@@ -4,4 +4,4 @@ P2P and network changes
- Manual peers (added using `addnode` or `-connect`) are no longer disconnected
during IBD for block stalling. Instead, their in-flight block requests are
released so other peers can continue block download progress, and the manual
- peer is temporarily skipped for block downloads.
+ peer is temporarily skipped for block downloads. (#34743)
### doc/release-notes-34861.md
@@ -1,4 +1,7 @@
RPC
---
-- The minimum timestamp for `importdescriptors` is set to `0` instead of `1`. Additionally negative timestamps are now invalid in `importdescriptors`, passing a timestamp below `0` will throw with error code `-8` (`RPC_INVALID_PARAMETER`).
+- The minimum timestamp for `importdescriptors` is set to `0`
+ instead of `1`. Additionally negative timestamps are now
+ invalid in `importdescriptors`, passing a timestamp below
+ `0` will throw with error code `-8` (`RPC_INVALID_PARAMETER`). (#34861)
### doc/release-notes-35037.md
@@ -5,4 +5,4 @@ Updated settings
up to 16 client connections by default, with a maximum of 256. The limit can
be set per listener by appending `,max-connections=<n>` to the bind address,
for example `-ipcbind=unix:/path_to_socket_file.sock,max-connections=8`.
- Unix socket paths in `-ipcbind` are now URL-decoded.
+ Unix socket paths in `-ipcbind` are now URL-decoded. (#35037)
### doc/release-notes-35728.md
@@ -3,15 +3,15 @@ Updated RPCs
- The `getrawtransaction` and `gettxoutproof` RPCs now return an internal error
when block files or the transaction index cannot be read or are corrupt.
- Previously, they reported the transaction as missing.
+ Previously, they reported the transaction as missing. (#35728)
- Similarly, the `utxoupdatepsbt` and `descriptorprocesspsbt` RPCs now return
an internal error in this case, instead of silently continuing without the
- transaction data.
+ transaction data. (#35728)
Updated REST APIs
-----------------
- The `/rest/tx/<TX-HASH>` endpoint now returns an internal error when block
files or the transaction index cannot be read or are corrupt.
- Previously, it reported the transaction as not found.
+ Previously, it reported the transaction as not found. (#35728)
### doc/release-notes-35919.md
@@ -2,4 +2,4 @@ P2P and network changes
-----------------------
- `-maxconnections` now clamps values above 2,000 with a warning to reduce
- crash risk at very high peer counts.
+ crash risk at very high peer counts. (#35919)
### doc/release-notes-35989.md
@@ -4,4 +4,4 @@ Wallet
- `importdescriptors` now rejects a `range` ending at 2147483647 (2^31-1), as
the wallet cannot store it. The same applies to imports without a `range`
when `-keypool` is above 2147483647, since `-keypool` is then used as the end
- of the range. Previously such imports could crash the node.
+ of the range. Previously such imports could crash the node. (#35989)
### doc/release-notes-36081.md
@@ -5,4 +5,4 @@ Updated RPCs
the existing `next` object this lets mining software obtain the tip hash and
the next block's `nBits` atomically from a single call, without a race
against a concurrent tip change between `getblockchaininfo` and
- `getmininginfo`.
+ `getmininginfo`. (#36081)
### doc/release-notes-36251.md
@@ -4,4 +4,4 @@ Updated REST APIs
- The `/rest/spenttxouts/BLOCKHASH.json` endpoint now includes the `generated`
(whether the previous output is a coinbase output) and `height` fields for
each previous output, matching the `prevout` objects of the `getblock` RPC
- with verbosity 3. The binary and hex formats are unchanged.
+ with verbosity 3. The binary and hex formats are unchanged. (#36251)
### doc/release-notes-36336.md
@@ -5,4 +5,4 @@ Updated settings
The `CreateNewBlock(): block weight: ...` line, previously logged on every
block template build regardless of logging configuration, is now logged only
when this category is enabled. `getblocktemplate` and Mining IPC users are
- encouraged to enable it to see this log and future mining logs.
+ encouraged to enable it to see this log and future mining logs. (#36336)
### doc/release-notes-36488.md
@@ -1,8 +1,8 @@
Updated RPCs
------------
-The deprecated `confTarget` option of the `bumpfee` and `psbtbumpfee` RPCs is
-now available only when the RPC server is started with
-`-deprecatedrpc=confTarget`.
-Use `conf_target` instead. The `confTarget` option will be removed in the next
-release. (#36488)
+- The deprecated `confTarget` option of the `bumpfee` and
+ `psbtbumpfee` RPCs is now available only when the RPC
+ server is started with `-deprecatedrpc=confTarget`.
+ Use `conf_target` instead. The `confTarget` option will
+ be removed in the next release. (#36488)
### doc/release-notes-36489.md
@@ -4,4 +4,4 @@ Updated RPCs
- The `fundrawtransaction` and `walletcreatefundedpsbt` RPCs now support the
snake_case `change_address`, `change_position`, `lock_unspents`, and
`subtract_fee_from_outputs` options as named parameters. Previously,
- `subtract_fee_from_outputs` was silently ignored.
+ `subtract_fee_from_outputs` was silently ignored. (#36489)
### doc/release-notes-36494.md
@@ -4,4 +4,4 @@ Wallet
- `sendall` now rejects unknown keys in its `options` object instead of
silently ignoring them, like `send`, `fundrawtransaction` and
`walletcreatefundedpsbt` already do. Option values are also type-checked
- before any coin is selected.
+ before any coin is selected. (#36494)
### doc/release-notes-36524.md
@@ -1,6 +1,6 @@
# Util
-The UTF-8 fallback for invalid or unavailable
-environment locales has been removed. Affected
--*notify scripts may explicitly set a valid locale,
-such as LC_ALL=C.UTF-8, if needed.
+- The UTF-8 fallback for invalid or unavailable
+ environment locales has been removed. Affected
+ `-*notify` scripts may explicitly set a valid
+ locale, such as `LC_ALL=C.UTF-8`, if needed. (#36524)
### doc/release-notes-36586.md
@@ -1,6 +1,8 @@
Disk space
----------
-- Periodic background chainstate compaction is now logged by default.
- Compaction can temporarily need about as much extra disk space as the chainstate itself.
- If there is not enough free space, it is deferred with a warning and obsolete data stays on disk.
+- Periodic background chainstate compaction is now
+ logged by default. Compaction can temporarily need
+ about as much extra disk space as the chainstate itself.
+ If there is not enough free space, it is deferred with
+ a warning and obsolete data stays on disk. (#36586)
### doc/release-notes-970.md
@@ -1,5 +1,5 @@
GUI changes
-----------
-- The transaction details dialog no longer displays the merchant name for old
- BIP70 payment requests. (gui#970)
+- The transaction details dialog no longer displays the merchant
+ name for old BIP70 payment requests. (gui#970)
### doc/release-notes-hwi-minver.md
@@ -1,10 +1,10 @@
Wallet
------
-As of the introduction of PSBTv2 support in 32.0, Bitcoin Core is no longer
-compatible with external signer software that does not support PSBTv2. This does
-not mean users need to have hardware wallets that support PSBTv2, only that
-users that start bitcoind with an external signer set via `-signer=<cmd>`, will
-need to be using an external signing tool, like HWI, which supports PSBTv2. For
-users of HWI, this means a minimum version of 2.1.0 (released in 2022) is
-required. (https://github.com/bitcoin-core/HWI/releases/tag/2.1.0)
+- As of the introduction of PSBTv2 support in 32.1, Bitcoin Core is no longer
+ compatible with external signer software that does not support PSBTv2. This does
+ not mean users need to have hardware wallets that support PSBTv2, only that
+ users that start bitcoind with an external signer set via `-signer=<cmd>`, will
+ need to be using an external signing tool, like HWI, which supports PSBTv2. For
+ users of HWI, this means a minimum version of 2.1.0 (released in 2022) is
+ required. (https://github.com/bitcoin-core/HWI/releases/tag/2.1.0) (#36539)
### doc/release-notes-remove-persistmempoolv1.md
@@ -3,4 +3,4 @@ Updated settings
- The `-persistmempoolv1` startup option has been removed. It was introduced
as a temporary option in v27.0 to allow downgrading to v26.x and earlier,
- which cannot read the current `mempool.dat` format.
+ which cannot read the current `mempool.dat` format. (#36294)
### doc/release-notes-removeprunedfundsremoval.md
@@ -1,5 +1,5 @@
Updated RPCs
------------
-- The `removeprunedfunds` RPC was deprecated in v32 and is being removed in this
- release.
+- The `removeprunedfunds` RPC was deprecated in v32 and is being
+ removed in this release. (#36333)
### test/lint/test_runner/src/lint_docs.rs
@@ -2,6 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://opensource.org/license/mit/.
+use std::fs;
use std::io::ErrorKind;
use std::process::{Command, Stdio};
@@ -14,19 +15,38 @@ pub fn lint_doc_release_note_snippets() -> LintResult {
"doc/release-notes/",
":(exclude)doc/release-notes/*.*.md", // Assume that at least one dot implies a proper release note
]))?;
- if non_release_notes.is_empty() {
- Ok(())
- } else {
+ if !non_release_notes.is_empty() {
println!("{non_release_notes}");
- Err(r#"
+ return Err(r#"
Release note snippets and other docs must be put into the doc/ folder directly.
The doc/release-notes/ folder is for archived release notes of previous releases only. Snippets must
be uniquely named and placed directly in the doc/ folder.
"#
.trim()
- .to_string())
+ .to_string());
+ }
+
+ let snippets = check_output(git().args([
+ "ls-files",
+ "--",
+ ":(glob)doc/release-notes-*.md",
+ ":(exclude)doc/release-notes-empty-template.md",
+ ]))?;
+ let mut missing = Vec::new();
+ for path in snippets.lines() {
+ let note = fs::read_to_string(path).expect("must be able to read release note snippet");
+ if !note.contains("(#") && !note.contains("(gui#") {
+ missing.push(path);
+ }
+ }
+ if !missing.is_empty() {
+ return Err(format!(
+ "Release note snippets must mention their PR as (#12345) or (gui#123):\n{}",
+ missing.join("\n")
+ ));
}
+ Ok(())
}
pub fn lint_doc_args() -> LintResult {
### test/lint/test_runner/src/main.rs
@@ -84,7 +84,7 @@ fn get_linter_list() -> Vec<&'static Linter> {
lint_fn: lint_boost_assert
},
&Linter {
- description: "Check that release note snippets are in the right folder",
+ description: "Check the location and PR references of release note snippets",
name: "doc_release_note_snippets",
lint_fn: lint_doc_release_note_snippets
},Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.