Repository navigation
[32.x] Backports - #36727
Merged
Merged
[32.x] Backports#36727
Conversation
Github-Pull: bitcoin#36701 Rebased-From: fa01c3c
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste |
Github-Pull: bitcoin#36615 Rebased-From: d2e5108
fanquake
force-pushed
the
more_32_backports
branch
from
November 4, 2026 12:13
3d9d06b to
6a07dd3
Compare
Github-Pull: bitcoin#36617 Rebased-From: faf819b
added 2 commits
November 5, 2026 11:11
PeerTxRelayer.assert_never_requested compares the hash of every request received, an int, with its argument, and test_orphan_inherit_rejection passed it hex strings. An int never equals a str, so these checks passed whatever the node requested. Pass ints instead. Two more changes let the checks see the requests they are about: - Relay the parent from peer2 rather than peer1. Relaying it made the node request it from peer1, so the check that peer1 never requested the parent fails once it compares ints. - Bump mocktime by TXREQUEST_TIME_SKIP before the peer1 and peer2 checks. The node requests an orphan's missing parent after a delay, so without the bump the request has not been sent when they run. Also correct the comment on why the parent is rejected: it exceeds the maximum standard weight, and the node rejects it with tx-size. To check each assertion can fail, the scenario was mutated in a scratch copy so that the node does request the hash, and each call site was evaluated with both the old and the new argument. The old one passed every time, and the new one failed: - parent not relayed: peer1 is asked for the parent, peer2 for the child's txid; - child not relayed: peer2 is asked for the child's txid; - child relayed from peer2: peer2 is asked for the child's wtxid; - neither child nor grandchild relayed: peer3 is asked for the child's txid. Without the mocktime bumps, the first two mutations pass with ints too. Github-Pull: bitcoin#36406 Rebased-From: a3c4ad1
The requests it checks carry int hashes, so any other type never matches and the check passes whatever the node requested. Github-Pull: bitcoin#36406 Rebased-From: 5f22014
fanquake
force-pushed
the
more_32_backports
branch
from
November 5, 2026 11:12
6a07dd3 to
dd6ca4e
Compare
The connection that checks a transaction submitted over RPC is not announced to a block-relay-only peer uses P2PTxInvStore, which negotiates wtxidrelay. The node would therefore announce the transaction by its wtxid, and the assertion looked for the txid, which cannot be in the store for a transaction carrying a witness: it passed whether or not the transaction was announced. Assert on the wtxid instead. With the connection opened as outbound-full-relay rather than block-relay-only, the old assertion still passes and the new one fails. Also open an outbound-full-relay connection and assert that the wtxid was announced on it. The two assertions differ only by `not`, so if the announcement or its id changes, the test fails instead of the absence check passing silently. Github-Pull: bitcoin#36405 Rebased-From: 22535b4
fanquake
force-pushed
the
more_32_backports
branch
from
November 5, 2026 11:20
dd6ca4e to
077a7fc
Compare
Merged
PSBTv2 is not very interesting for current GUI users, and defaulting to it causes issues for existing users. To make this change minimal and avoid touching strings, this commit, only changes the default back instead of making the version configurable. The external signer PSBT will still be version 2, and I've added an explicit argument here to show that. This will break users who are using HWI versions < 2.1.0. (https://github.com/bitcoin-core/HWI/releases/tag/2.1.0) Github-Pull: bitcoin#36539 Rebased-From: 23dcb03
Github-Pull: bitcoin#36539 Rebased-From: 3fdc45d
fanquake
force-pushed
the
more_32_backports
branch
from
November 5, 2026 17:03
077a7fc to
9d833b5
Compare
The `stl_tree_node`, `list_node` and `unordered_node` class templates only mimic the layout of the standard library's container nodes, so that `sizeof` yields an estimate of the memory they use. Their fields are never accessed. Since llvm/llvm-project#237374, Clang 24 diagnoses these fields with `-Wunused-private-field`. This change drops the `private:` access specifiers. It does not affect the size or alignment of the structs, as all their fields keep the same access control, and it is consistent with `stl_shared_counter`. Github-Pull: bitcoin#36869 Rebased-From: b9a6b0c
fanquake
force-pushed
the
more_32_backports
branch
from
November 16, 2026 18:37
9d833b5 to
392ee5b
Compare
fanquake
force-pushed
the
more_32_backports
branch
from
November 18, 2026 11:58
392ee5b to
91333bd
Compare
This was referenced Nov 18, 2026
Member
Author
|
cc @instagibbs |
fanquake
force-pushed
the
more_32_backports
branch
from
November 18, 2026 16:09
91333bd to
b10cf70
Compare
MaybeDiscourageAndDisconnect calls DisconnectNode which creates a CSubNet containing only the CNode's address. This will disconnect every CNode with the same IP address. This is normally not a problem, except for clearnet-over-tor. If a node has an honest clearnet-over-tor inbound connection, the IP of the inbound peer will be the exit node's IP address. If an attacker connects to the node through the same exit node and sends an invalid message, they can cause every inbound peer sharing the exit node's IP to get disconnect. Fix this by only disconnecting the misbehaving CNode rather than every CNode sharing the IP. Github-Pull: bitcoin#36894 Rebased-From: d63068c
Otherwise, `ipc/stub.cpp` is compiled without the project-wide build flags. Github-Pull: bitcoin#36889 Rebased-From: 4ef05d6
Use of non-target directives is not recommended. As of CMake 4.5.0, it triggers `-Wnon-target-directive` warnings. Github-Pull: bitcoin#36889 Rebased-From: 460f877
The module is superseded by CMake's `-Wnon-target-directive` warnings, which are enabled when using the "dev-mode" preset. Github-Pull: bitcoin#36889 Rebased-From: 435d5b2
fanquake
force-pushed
the
more_32_backports
branch
from
November 18, 2026 16:26
b10cf70 to
a34fe8f
Compare
Member
|
clACK a34fe8f |
Member
|
I think #36848 can be dropped from the description now. |
fanquake
marked this pull request as ready for review
November 18, 2026 16:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Backports:
include_directories->target_include_directories#36889