Skip to content

[32.x] More Backports - #36300

Merged
fanquake merged 24 commits into
bitcoin:32.xfrom
fanquake:more_32_0_backports
Oct 1, 2026
Merged

fanquake merged 24 commits into
bitcoin:32.xfrom
fanquake:more_32_0_backports

Conversation

Correct six argument metadata entries that produce misleading or invalid
OpenRPC defaults.

The getdeploymentinfo blockhash fallback and four sighashtype fallbacks
describe how omitted arguments are resolved. They are not literal values
accepted by the RPCs, so mark them as DefaultHint values.

The send include_watching option is boolean, but its string default makes
the generated schema internally inconsistent. Use a boolean value,
matching the analogous sendall option.

Runtime behavior is unchanged.

Github-Pull: bitcoin#36297
Rebased-From: b7f740c
@fanquake fanquake added this to the 32.0 milestone Sep 19, 2026
@DrahtBot

DrahtBot commented Sep 19, 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/36300.

Reviews

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

Type Reviewers
ACK marcofleon, willcl-ark
Approach ACK ismaelsadeeq

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

LLM Linter (✨ experimental)

Possible places where named args for integral literals may be used (e.g. func(x, /*named_arg=*/0) in C++, and func(x, named_arg=0) in Python):

  • Parse(descriptor_str, keys, error, true) in src/wallet/walletutil.cpp

Possible places where comparison-specific test macros should replace generic comparisons:

  • [test/functional/interface_http.py] assert count < num_req, f"Server handled the whole batch of {num_req}: nothing was throttled" -> use assert_greater_than(num_req, count) for the comparison instead.

2026-10-01 15:57:12

Drop the default constructor and add a factory function to construct a
WalletDescriptor from stream

Github-Pull: bitcoin#36230
Rebased-From: 4cc00f7
The canonical string comparison was slow because it would compute the
canonical string for each comparison. This can be sped up by holding the
canonical string in memory, computed upon construction of
WalletDescriptor. To reduce memory usage, this string is further hashed
so that the comparison operates over the hash of the canonical string.

Github-Pull: bitcoin#36230
Rebased-From: 64abb3e
The hardened indicator for Minscript expressions in
CompatDescriptorHash uses whichever hardened indicator was originally
given by the user.

Github-Pull: bitcoin#36230
Rebased-From: f0f6dce
Reframe in terms of risk reduction rather than absolutes

Github-Pull: bitcoin#36309
Rebased-From: 2630d8e
The Windows cross-toolchain build can exceed BuildKit's default 2 MiB
per-step log limit, which hides useful output.

Raise the limit to 5 MiB for both CI builder configurations. This
retains substantially more diagnostics without enabling unlimited logs.

Github-Pull: bitcoin#36316
Rebased-From: 96d487c
Guix release binaries use the POSIX GCC thread model, but the pinned
Nixpkgs cross compiler defaults to MCF. Select POSIX through the
Nixpkgs threads hook so GCC and its target libraries agree.

Leave threads.package null because making winpthreads a target
dependency exposes its headers to native GCC build tools. Supply its
headers and libraries through EXTRA_*_FOR_TARGET for target libraries
instead.

Add winpthreads to the compiler wrapper so builds in the shell get
its include and library paths without manual NIX_CFLAGS_COMPILE or
NIX_LDFLAGS exports.

Github-Pull: bitcoin#36316
Rebased-From: 1d59d5a
BuildKit can truncate the compiler build log, hiding its configure
flags. Print the compiler version and thread model when CI enters the
Nix test shell so a mismatch is visible in the job output.

Github-Pull: bitcoin#36316
Rebased-From: 9fd18ae
Keep private broadcast connections outside normal discouragement handling.
Misbehaving private broadcast peers are still disconnected.

Github-Pull: bitcoin#36312
Rebased-From: eab6630
Shutdown saves and unregisters the fee estimator before draining queued validation callbacks, so a pending block update can be missing from the saved estimates.
The mempool estimator also ignores its saved file on restart when the saved tip no longer matches the active tip.

Queue a block update after the scheduler stops and check that the block-policy height in the saved estimates does not reflect it.

Co-authored-by: Rob Hamilton <[email protected]>

Github-Pull: bitcoin#36322
Rebased-From: 08729e6
Save and unregister the fee estimator after the existing callback drain so queued block updates are reflected in the saved estimates.

The estimator comment now says its shutdown actions follow the callback drain.
The old paragraph below the indexes claimed the drain only let wallets catch up, although wallets are already unloaded.
The new comment beside the final chainstate flush keeps the accurate point that callbacks queued there can be dropped.

Github-Pull: bitcoin#36322
Rebased-From: 8c27c38
@hebasto

hebasto commented Sep 28, 2026

Copy link
Copy Markdown
Member

Can we have #36233 here?

…wallet

Only kernel::Context users selected a hardware SHA256 implementation,
so these tools fell back to the generic one. On an M2 Max, grind is
~5x faster and signing 2000 P2PKH inputs with bitcoin-tx ~2.3x.

Github-Pull: bitcoin#36364
Rebased-From: 4048909
@ismaelsadeeq

Copy link
Copy Markdown
Member

Approach ACK, please include #36365 and #36336.

fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Sep 30, 2026
"none" read as though fee estimation was disabled, so rename the public
value (and the FeeRateEstimatorType::NONE enumerator) to "auto", which
describes what it does.

Also reject unknown fee_rate_estimator values instead of silently
coercing them to the default, so a mistyped value surfaces an error. The
previous "none" spelling was never released, so it is rejected too.

Co-authored-by: w0xlt <[email protected]>

Github-Pull: bitcoin#36300
Rebased-From: 4056908
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Sep 30, 2026
…mate

When the mempool policy estimator cannot produce an estimate, GetFeeRateEstimate()
now returns the block policy estimate rather than an error. The combined estimate
starts from the block policy estimate and lowers it with the mempool estimate only
when present, so the fallback path shares the log that reports the selected fee
rate. An error is returned only when the block policy estimate itself is unavailable.

Github-Pull: bitcoin#36300
Rebased-From: c0b7ca3
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Sep 30, 2026
When the mempool fails to load at startup (persistence disabled, or a
missing or corrupt mempool.dat), init notifies the fee_rate_estimator_man,
which clears its tracked mined-block window. Otherwise the estimator
would keep a window describing a mempool the node no longer has and,
once the mempool refilled, serve an estimate built on it.

Clearing makes the estimator report insufficient data until the window refills from the
current tip, so the combined estimate falls back to the block policy
estimate meanwhile.

Github-Pull: bitcoin#36300
Rebased-From: 5b77288
@willcl-ark

willcl-ark commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

ACK 7f0ffc9

All nice clean backports, all appear functionally correct too.

Many missing release notes, but IIUC this is fine here as we are going to update the wiki directly (should remember to do this though!)

@kravens kravens mentioned this pull request Sep 30, 2026
@fanquake
fanquake marked this pull request as ready for review October 1, 2026 09:03
"none" read as though fee estimation was disabled, so rename the public
value (and the FeeRateEstimatorType::NONE enumerator) to "auto", which
describes what it does.

Also reject unknown fee_rate_estimator values instead of silently
coercing them to the default, so a mistyped value surfaces an error. The
previous "none" spelling was never released, so it is rejected too.

Co-authored-by: w0xlt <[email protected]>

Github-Pull: bitcoin#36365
Rebased-From: 4056908
…mate

When the mempool policy estimator cannot produce an estimate, GetFeeRateEstimate()
now returns the block policy estimate rather than an error. The combined estimate
starts from the block policy estimate and lowers it with the mempool estimate only
when present, so the fallback path shares the log that reports the selected fee
rate. An error is returned only when the block policy estimate itself is unavailable.

Github-Pull: bitcoin#36365
Rebased-From: c0b7ca3
When the mempool fails to load at startup (persistence disabled, or a
missing or corrupt mempool.dat), init notifies the fee_rate_estimator_man,
which clears its tracked mined-block window. Otherwise the estimator
would keep a window describing a mempool the node no longer has and,
once the mempool refilled, serve an estimate built on it.

Clearing makes the estimator report insufficient data until the window refills from the
current tip, so the combined estimate falls back to the block policy
estimate meanwhile.

Github-Pull: bitcoin#36365
Rebased-From: 5b77288
@fanquake
fanquake force-pushed the more_32_0_backports branch from 7f0ffc9 to 532b496 Compare October 1, 2026 15:56

@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.

ACK 532b496

Backports are clean.

@DrahtBot
DrahtBot requested a review from willcl-ark October 1, 2026 15:59

@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 532b496

metadata update in git range-diff 7f0ffc9b10c...532b496bc11 only

@fanquake
fanquake merged commit 5ac9f35 into bitcoin:32.x Oct 1, 2026
26 of 27 checks passed
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.