Skip to content

[31.x] More Backports - #35699

Merged
fanquake merged 15 commits into
bitcoin:31.xfrom
fanquake:more_31_x_backports
Aug 10, 2026
Merged

fanquake merged 15 commits into
bitcoin:31.xfrom
fanquake:more_31_x_backports

Conversation

@fanquake fanquake added this to the 31.2 milestone Jul 10, 2026
@DrahtBot

DrahtBot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35699.

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK marcofleon, darosior, willcl-ark
Stale ACK optout21

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Mccalabrese and others added 4 commits July 10, 2026 12:03
Add a belt-and-suspenders feature, limit the amount of
memory and cpu possible when unlucky or simply misconfigured.
The worst case limit is roughly 400kB * 10,000 = 4GB, regardless
of usage pattern.

Before this change, sheer volume of broadcasts, mismatches in
standardness rules, or simply fee mismatches may result in unbounded
growth of memory usage. As the feature may be expanded in
the future, explicit bounds helps reasoning going forward.

Github-Pull: bitcoin#35406
Rebased-From: 5aea3d0
This queue may be hundreds to thousands of items, each of
which are being revalidated at short interval. Allow the
node to be more responsive in this scenario.

Github-Pull: bitcoin#35406
Rebased-From: cbf8c10
The server isn't running out of memory when the private broadcast
transaction queue is full. Add a new RPC_LIMIT_EXCEEDED code that
can be used whenever a resource is bound and currently at capacity.

Github-Pull: bitcoin#35678
Rebased-From: 82a02a2
@instagibbs

Copy link
Copy Markdown
Member

private tx commits lgtm 1f432b2

@optout21

Copy link
Copy Markdown
Contributor

ACK 1f432b28b262fa65cce15df27dc109085f890491

I've reviewed commits, compared commits to the originals, checked local build & unit tests.
I've noticed out of the 4 commits of #35678 only the first one is included, two test-only and one minor change not. I suppose they were not deemed important.

hebasto added 2 commits July 20, 2026 09:16
This overload has been unused since it was added in fac81af.

Github-Pull: bitcoin#35679
Rebased-From: efa7f8c
Serialization parameters should be embedded into the object being
serialized rather than passed as a separate argument. This works here
because only serialization is performed and no new object needs to be
constructed.

Github-Pull: bitcoin#35679
Rebased-From: afab8d4
By now, the vast majority of nodes in the network supports BIP324.
Even if the optimistic guess would turn out to be wrong for a given
node, we would just reconnect with v1.
This is better than making v1 connections with peers when both nodes support v2.

Github-Pull: bitcoin#35766
Rebased-From: cf0f2ae
@fanquake
fanquake force-pushed the more_31_x_backports branch from 57b14ac to 869dcca Compare July 23, 2026 13:29
@darosior

darosior commented Aug 3, 2026

Copy link
Copy Markdown
Member

Could you add #34779? Was about to open a PR for it, but probably better here. If we are going to have BIP 323 in 32 i think it makes sense to also have it in previous major versions (at least, those for which we plan to cut another release).

ajtowns and others added 2 commits August 4, 2026 12:08
… BIP323

Test bits are conserved. This only has an effect on the warnings.

Co-Authored-By: Antoine Poinsot <[email protected]>

Github-Pull: bitcoin#34779
Rebased-From: f802edf
@fanquake

fanquake commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

Could you add #34779?

Added.

@fanquake
fanquake marked this pull request as ready for review August 4, 2026 13:39
@fanquake
fanquake requested a review from marcofleon August 4, 2026 13:40
Comment thread doc/bips.md Resolved
mraksoll4 added a commit to dpowcore-project/dpowcoin that referenced this pull request Aug 5, 2026
bitcoin/pull/35699/changes#diff-54409bbc1a072860afa5d3e2c920ac585b819f1db7ba0d894a4c64d7a66f8464
bitcoin/pull/35699

BIP 9 bits 5 to 28 inclusive are now ignored for soft fork signaling, as per
BIP 323. We won't warn about unknown deployments when receiving blocks that
set any of those bits in their version.

The private-broadcast queue (transactions submitted via `sendrawtransaction`
when `-privatebroadcast` is enabled and not yet echoed back from the network)
is now capped at 10,000 entries. When full, new submissions are rejected. It is
up to the caller to inspect the queue via `getprivatebroadcastinfo` and free
up space when stuck via `abortprivatebroadcast`.

### Versionbits

BIP 323: reserve version bits 5-28 as extra nonce space

### Validation

### P2P

net: fix premature stale flagging of unpicked private broadcast txs
private broadcast: limit outstanding txs to count of 10,000
private broadcast: define and use new RPC_LIMIT_EXCEEDED error code

### Fuzz

fuzz: Remove unused DeserializeFromFuzzingInput params overload

### Build
depends, zeromq: Apply upstream patch

Tree-SHA512: 89d66ebe355eb31f9395facf8edc69afa11344f83642acd093801e8497182fb8c4c07659f3c665468c90fd63b95646defee7044d57108da0ac8e6fee326e8392
@fanquake
fanquake force-pushed the more_31_x_backports branch from 35bb5ef to 859c920 Compare August 5, 2026 07:49

@marcofleon marcofleon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ACK 859c920

@darosior darosior left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 859c920

@willcl-ark willcl-ark left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 859c920

Backports all look good.

All commits are in the release notes, and partial backports are documented correctly. Cleanup commits from 35678 are not included along with the fuzz changes from 35406, as 31.x doesn't have that target.

@fanquake
fanquake merged commit 017eb43 into bitcoin:31.x Aug 10, 2026
26 checks passed
@fanquake
fanquake deleted the more_31_x_backports branch August 10, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.