Skip to content

[32.x] Backports - #36984

Merged
fanquake merged 13 commits into
bitcoin:32.xfrom
fanquake:more_32_x_backports
Dec 1, 2026
Merged

fanquake merged 13 commits into
bitcoin:32.xfrom
fanquake:more_32_x_backports

Conversation

Mainnet functional tests write debug.log directly under node0/.
The helper used to skip that log, but since bitcoin#16973, the recursive glob finds it, but the regex still expects a chain subdirectory and raises AttributeError.

Derive the relative directory from the discovered path so the helper can include the mainnet node log in its output.

Github-Pull: bitcoin#36982
Rebased-From: 4e1dc2e
@fanquake fanquake added this to the 32.2 milestone Nov 25, 2026
@DrahtBot

DrahtBot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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

External sites

Reviews

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

Type Reviewers
ACK Sjors, willcl-ark

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

jespada and others added 2 commits November 25, 2026 20:33
building-on read %current-system when manifest_build.scm was loaded. guix
shell loads the manifest before it applies --system, so a
--system=aarch64-linux build on an x86_64 machine configured the aarch64
toolchain with --build=x86_64-guix-linux-gnu, and gcc-cross failed to
configure. Make building-on a procedure so each derivation uses its own
system. Native builds produce the same derivations as before.

Github-Pull: bitcoin#36709
Rebased-From: d7a8360
…_PATH

Local packages (packages with $(package)_local_dir set) are built from a
tarball of the local directory, which is regenerated at parse time when any
file in the directory is newer than the tarball. The tarball was stored in
SOURCES_PATH next to downloaded sources. But unlike downloaded sources, it has
no fixed name or hash identifying its contents, so when SOURCES_PATH is shared
between checkouts, a checkout can find another checkout's tarball, see no
newer files, and build from the wrong sources.

This happens reliably with contrib/guix/guix-build, which shares SOURCES_PATH
with its build container and mounts every checkout at /bitcoin inside it, so
all checkouts use the same tarball path. The host `make download-*` step it
runs first also sets the mtimes of local directory files to 2000-01-01, so no
checkout ever sees files newer than a tarball another checkout created.

Store local package tarballs and their download stamps in
WORK_PATH/local-sources instead. WORK_PATH defaults to the checkout's
depends/work directory, so each checkout gets its own tarball.

A side benefit is that when sources have been downloaded beforehand, as
guix-build does, building no longer writes to SOURCES_PATH, so a shared
SOURCES_PATH can be mounted read-only in build containers.

This change was written with Claude Opus 5.5 (1M context).

Github-Pull: bitcoin#35765
Rebased-From: 01491f2
Windows uses the select() error set to report a failed non-blocking
connect(). Make ErrorEvent an event that can be requested from
Sock::Wait(), like RecvEvent and SendEvent: with select() it adds the
socket to the error set. ConnectToSocket() requests it while
connecting. This is safe on all platforms, as any error condition is
worth waking for there.

All other uses of select() now leave the error set empty. With
select(), sockets waited on without ErrorEvent no longer wake up for
or report exceptional conditions, such as TCP urgent data on an
established connection. No behavior change with poll().

Add a unit test: with an urgent byte pending, waiting for RecvEvent
must not report ErrorEvent.

Co-authored-by: Cory Fields <[email protected]>
Co-authored-by: Vasil Dimov <[email protected]>
Co-authored-by: Antoine Poinsot <[email protected]>

Github-Pull: bitcoin#36716
Rebased-From: 97e3c95
The seeds.txt.gz file was last generated on 2026-05-22 (as per the
comment in the first line and the most recent entry). This is about
6 months old now, and probably 10 months when used for the next release.
There is no point in feeding (mostly) stale addresses into makeseeds.py
and keeping the domain around just risks someone else getting access to
the host or the domain to insert malicious or fake addresses into it.

My understanding is that the owner of 21.ninja stepped away from Bitcoin
development and probably will not maintain the seeder going forward. I'm
reaching out to them directly and ping them in a comment below. Happy to
close this if they come back and plan to keep maintaining the seeds.

Github-Pull: bitcoin#36818
Rebased-From: 6b27e16
It was removed in bitcoin#35691 but
the documentation was not updated.

Github-Pull: bitcoin#36818
Rebased-From: 027f13c
The asmap-data repository was moved to bitcoin-core/asmap-data
The current URL resolves correctly, but should be updated to reflect the
current repository tenant.

Github-Pull: bitcoin#37000
Rebased-From: cd88fbd
@DrahtBot

Copy link
Copy Markdown
Contributor

🚧 At least one of the CI tasks failed.
Task Windows native, VS: https://github.com/bitcoin/bitcoin/actions/runs/46061520916/job/140716667113
LLM reason (✨ experimental): functional_test_fail: The interface_http.py functional test failed; the log tail does not show the specific cause.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • Intermittent network issues can occur; re-run CI for now, and report the issue if they keep happening.

  • A functional or integration test failure may be intermittent or unrelated to this pull request.
    If no dedicated issue thread exists, create a new one to track it.

Leave a comment here, if you need help tracking down a confusing failure.

This commit fixes a small (likely copy-pasta) mistake: after bumping
the fee, the test meant to check that the replacement transaction still
has a single input spending from the unconfirmed parent, but mistakenly
checked the original transaction again (which had already been checked
before the bump).

Github-Pull: bitcoin#37011
Rebased-From: 5b43f22
`SignatureHash` and `SignatureHashSchnorr` are defined in
`interpreter.cpp` but are also used from other translation units,
which have relied on implicit instantiations being emitted there.
The standard does not guarantee that.

This fixes linker errors when building with Clang 24, where module-local
optimizer hints are now enabled by default.
See llvm/llvm-project#238529.

Github-Pull: bitcoin#37007
Rebased-From: 7ec6081
The no-immediate-response check in p2p_orphan_handling.py currently
can't fail and thus doesn't test anything: `assert_no_immediate_response`
saves `self.last_message` before and after `send_and_ping`, but both
names refer to the same dict, which `on_message` updates in place. Fix
it by copying the dict before sending. The second copy isn't strictly
needed, since nothing changes the dict after the ping returns, but it's
added so both snapshots are taken the same way.

This affects both call sites, including the check that the node doesn't
serve a not-yet-announced parent to a spy peer.

Github-Pull: bitcoin#37010
Rebased-From: a62be85
nervana21 and others added 2 commits November 30, 2026 17:35
Pass "mempool chunks" as the RPCResult description so help renders it.

Github-Pull: bitcoin#37020
Rebased-From: 0b17fa0
@Sjors

Sjors commented Nov 30, 2026

Copy link
Copy Markdown
Member

utACK 11bcb7c

@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 11bcb7c

These look faithful to me.

@fanquake
fanquake merged commit 68ecd2c into bitcoin:32.x Dec 1, 2026
29 checks passed
@fanquake
fanquake deleted the more_32_x_backports branch December 1, 2026 11:10
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.