Skip to content

[31.x] Backports - #35231

Merged
fanquake merged 10 commits into
bitcoin:31.xfrom
fanquake:more_31_x_backports
May 19, 2026
Merged

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

Conversation

@fanquake fanquake added this to the 31.1 milestone May 7, 2026
@DrahtBot

DrahtBot commented May 7, 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/35231.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK marcofleon, willcl-ark

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

send_batch_request() was building raw dicts without a "jsonrpc" version, which made Core to treat them as version 1.0 requests.
This worked in normal mode, but failed with --usecli because TestNodeCLI.batch() expects callables, not dicts.

This commit fixes it by using get_request() which is defined in both AuthServiceProxy and TestNodeCLIAttr.
The assert is changed because by using get_reques() AuthServiceProxy treats it as "jsonrpc" version 2.0 requests, which don't return "error" keys.

Github-Pull: bitcoin#34991
Rebased-From: 5603ae0
Add the flag --extended to a test (00_setup_env_i686_no_ipc.sh) with the --usecli flag to cover all tests with --usecli.

Github-Pull: bitcoin#34991
Rebased-From: a49bc1e
@fanquake
fanquake force-pushed the more_31_x_backports branch from 10ff9f4 to 0b56eec Compare May 7, 2026 09:42
@DrahtBot DrahtBot removed the CI failed label May 7, 2026
MarcoFalke and others added 2 commits May 8, 2026 15:49
The `coinscache_sim` fuzz target builds a 23-byte P2SH scriptPubKey manually.
Place `OP_EQUAL` at index 22, after `OP_HASH160`, the 20-byte push opcode, and the 20-byte script hash.
This matches `CScript::IsPayToScriptHash()`, which checks byte 22 for `OP_EQUAL`, see src/script/script.cpp#L229

Github-Pull: bitcoin#35218
Rebased-From: ac58e6c
@fanquake
fanquake force-pushed the more_31_x_backports branch from 9554240 to a6967e9 Compare May 8, 2026 13:51
The BDB metadata field `last_page` stores the last valid page number, not the number of pages.
The read-only wallet migration parser currently checks reset LSNs with a half-open loop, so it skips the final page and may accept a database whose last page still depends on BDB log files.

Github-Pull: bitcoin#35227
Rebased-From: e2b0984
The FreeBSD, NetBSD, and OpenBSD build guides state that ZMQ support is compiled in when the package is installed. Since WITH_ZMQ defaults to OFF, update the wording to mention the required CMake option.

Github-Pull: bitcoin#35283
Rebased-From: ca93ab8
torkelrogstad and others added 2 commits May 15, 2026 13:50
The logging.warning call referenced `bci["bestblockhash"]`, a variable
from the calling scope `do_generate()` that is not available inside the
`Generate.gbt()` method. This would crash with a NameError when
getblocktemplate returned a template based on an unexpected previous
block.

Use the `bestblockhash` parameter that was already being passed in and
used correctly in the comparison on the line above.

The bug was introduced in 7b31332 when the gbt logic was extracted
into its own method — the if-condition was updated but the logging
call was not.

Github-Pull: bitcoin#35044
Rebased-From: 701bc2d
@fanquake
fanquake marked this pull request as ready for review May 19, 2026 13:12

@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 506051c

This looks production ready. The release notes here include the additional backport from #35210.

@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 506051c

backports are all clean and present in release notes.

@fanquake
fanquake merged commit dbaf0f4 into bitcoin:31.x May 19, 2026
26 checks passed
@fanquake
fanquake deleted the more_31_x_backports branch May 19, 2026 15:30
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.

9 participants