Skip to content

[31.x] Backports - #36928

Draft
fanquake wants to merge 11 commits into
bitcoin:31.xfrom
fanquake:more_31_x_backports
Draft

fanquake wants to merge 11 commits into
bitcoin:31.xfrom
fanquake:more_31_x_backports

Conversation

@fanquake fanquake added this to the 31.4 milestone Nov 20, 2026
@DrahtBot

DrahtBot commented Nov 20, 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.
A summary of reviews will appear here.

…_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
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
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
theStack and others added 2 commits November 30, 2026 14:14
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
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.

8 participants