Repository navigation
build: avoid pipe2 on Darwin (for now) - #36218
Conversation
macOS 27 will support pipe2 at runtime, and Xcode 27 (and Command Line Tools) support it at compile time. This means a macOS < 27 system will detect support for pipe2, but then binaries will crash at runtime, as pipe2 is not available. Just avoid pipe2 on macOS for now, and continue using pipe. Note that the compilation also produces availability warnings, and this will need to be backported.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36218. ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste |
On macOS 26.5.2 with Xcode 27, -- Looking for pipe2
-- Looking for pipe2 - not found |
Maybe there is some issue with your CI? |
hebasto
left a comment
There was a problem hiding this comment.
ACK 9c77483, tested on macOS Tahoe 26.6.2 with CLT 27.0:
% xcode-select -p
/Library/Developer/CommandLineTools
% xcrun --show-sdk-version
27.0
% xcrun --show-sdk-path
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdkAlternatively, a more general approach can be taken:
--- a/cmake/introspection.cmake
+++ b/cmake/introspection.cmake
@@ -5,6 +5,8 @@
include(CheckCXXSourceCompiles)
include(CheckCXXSymbolExists)
+set(CMAKE_REQUIRED_FLAGS ${working_compiler_werror_flag})
+
check_cxx_symbol_exists(O_CLOEXEC "fcntl.h" HAVE_O_CLOEXEC)
check_cxx_symbol_exists(fdatasync "unistd.h" HAVE_FDATASYNC)
check_cxx_symbol_exists(fork "unistd.h" HAVE_DECL_FORK)
willcl-ark
left a comment
There was a problem hiding this comment.
ACK 9c77483
Verified on MacOS 26.6.2 that master where it detects pipe2 segfaults:
…/src/core/bitcoin on master [$?⇕] via △ v4.4.2 : 🐍 (.venv) took 1m13s
₿ ./build/bin/bitcoind -datadir=/tmp/r1
fish: Job 1, './build/bin/bitcoind -datadir=/…' terminated by signal SIGSEGV (Address boundary error)
and this PR doesn't
…os_avoid_pipe2_atm:refs/pull/36218/head [$?] via △ v4.4.2 : 🐍 (.venv)
₿ ./build/bin/bitcoind -datadir=/tmp/r2
2026-09-10T15:56:50Z Bitcoin Core version v31.99.0-9c7748315d31 (release build)
2026-09-10T15:56:50Z Log output may contain privacy-sensitive information. Be cautious when sharing logs.
2026-09-10T15:56:50Z Using the 'arm_shani(1way;2way)' SHA256 implementation
2026-09-10T15:56:50Z Default data directory /Users/will/Library/Application Support/Bitcoin
2026-09-10T15:56:50Z Using data directory /tmp/r2
Maybe we can investigate the general approach in future. I'm going to merge this now, so we can also backport, and somewhat front run the segfaults. |
|
Backported to |
macOS 27 will support pipe2 at runtime, and Xcode 27 (and Command Line Tools) support it at compile time. This means a macOS < 27 system will detect support for pipe2, but then binaries will crash at runtime, as pipe2 is not available. Just avoid pipe2 on macOS for now, and continue using pipe. Note that the compilation also produces availability warnings, and this will need to be backported. Github-Pull: bitcoin#36218 Rebased-From: 9c77483
|
Backported to |
macOS 27 will support pipe2 at runtime, and Xcode 27 (and Command Line Tools) support it at compile time. This means a macOS < 27 system will detect support for pipe2, but then binaries will crash at runtime, as pipe2 is not available. Just avoid pipe2 on macOS for now, and continue using pipe. Note that the compilation also produces availability warnings, and this will need to be backported. Github-Pull: #36218 Rebased-From: 9c77483
3aa499c doc: update release notes for v29.x (fanquake) 7265ca9 build: avoid pipe2 on Darwin (for now) (fanquake) Pull request description: Backports: * #36218 ACKs for top commit: hebasto: re-ACK 3aa499c. Tree-SHA512: fcc33637f223e4a561ef3a509934e46af19bccfb85ec55f8adb9caf4157869e0cc82640b0df085069ce6322e0b02d056aae3d68b3ab6eeddfc5e46e96d0c3eeb
edc3e40 doc: update release notes for v30.x (fanquake) 78c86f0 build: avoid pipe2 on Darwin (for now) (fanquake) Pull request description: Backports: * #36218 ACKs for top commit: hebasto: re-ACK edc3e40. Tree-SHA512: 341692c94e3207d344c1b23d05fa86d2d8c6bf5fe38c6871db0fc6f6d8cd862eb743450dcf077bd5ecaa750bfbc940b042e07cdfa6da0fc6e15435a2e2c2cf1c
macOS 27 will support pipe2 at runtime, and Xcode 27 (and Command Line Tools) support it at compile time. This means a macOS < 27 system will detect support for pipe2, but then binaries will crash at runtime, as pipe2 is not available. Just avoid pipe2 on macOS for now, and continue using pipe. Note that the compilation also produces availability warnings, and this will need to be backported. Github-Pull: #36218 Rebased-From: 9c77483
475a98e doc: update release notes for v31.x (fanquake) 233b120 build: avoid pipe2 on Darwin (for now) (fanquake) Pull request description: Backports: * #36218 ACKs for top commit: hebasto: re-ACK 475a98e. Tree-SHA512: 795866db22538f7bd1942bcf68f3b9370bba8ce7a7f9bf5475958e303b0f60806250235b6ad3f35405569ecbb6a143b9d958e3965fedb3afa86f35dee5e59999
9c7748315d3124d1abe6a4606743cd9274beee66 build: avoid pipe2 on Darwin (for now) (fanquake)
Pull request description:
macOS 27 will support `pipe2` at runtime, and Xcode 27 (and Command Line Tools) support it at compile time. This means a macOS < 27 system will detect support for `pipe2`, but then binaries will crash at runtime, as pipe2 is not available.
Just avoid `pipe2` on macOS for now, and continue using `pipe`. Note that the compilation also produces availability warnings:
```bash
[415/1121] Building CXX object src/util/CMakeFiles/bitcoin_util.dir/tokenpipe.cpp.o
../src/util/tokenpipe.cpp:89:9: warning: 'pipe2' is only available on macOS 27.0 or newer [-Wunguarded-availability-new]
89 | if (pipe2(fds, O_CLOEXEC) != 0) {
| ^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/unistd.h:219:9: note: 'pipe2' has been marked as being introduced in macOS 27.0 here, but the deployment target is macOS 26.0.0
219 | int pipe2(int [2], int);
| ^
../src/util/tokenpipe.cpp:89:9: note: enclose 'pipe2' in a __builtin_available check to silence this warning
89 | if (pipe2(fds, O_CLOEXEC) != 0) {
| ^~~~~
90 | return std::nullopt;
91 | }
```
and this will need to be backported. When macOS 27 is released, we could change approach, but wanted to PR something straightforward (and backportable) for `32.x`.
ACKs for top commit:
hebasto:
ACK 9c7748315d3124d1abe6a4606743cd9274beee66, tested on macOS Tahoe 26.6.2 with CLT 27.0:
willcl-ark:
ACK 9c7748315d3124d1abe6a4606743cd9274beee66
Tree-SHA512: 5aa97b93e7038344a5118eef2660b101e443eff52ab94fb4b8eb88ec4e09b8a3000b9b4e2aa59b406d8acbb6d9add8f0c3a2dd5e1db53b1dfc97a0fcbaf48995
macOS 27 will support pipe2 at runtime, and Xcode 27 (and Command Line Tools) support it at compile time. This means a macOS < 27 system will detect support for pipe2, but then binaries will crash at runtime, as pipe2 is not available. Just avoid pipe2 on macOS for now, and continue using pipe. Note that the compilation also produces availability warnings, and this will need to be backported. Backport of bitcoin#36218 (upstream commit 9c77483). (cherry picked from commit 7265ca9)
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
macOS 27 will support pipe2 at runtime, and Xcode 27 (and Command Line Tools) support it at compile time. This means a macOS < 27 system will detect support for pipe2, but then binaries will crash at runtime, as pipe2 is not available. Just avoid pipe2 on macOS for now, and continue using pipe. Note that the compilation also produces availability warnings, and this will need to be backported. Github-Pull: bitcoin#36218 Rebased-From: 9c77483
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Bump the version to 24.1.0 to match configure.ac. - Probe for the getrandom() function and define HAVE_GETRANDOM, which random.cpp reads since the bitcoin#27699 backport, instead of the raw syscall probe and HAVE_SYS_GETRANDOM. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
macOS 27 will support pipe2 at runtime, and Xcode 27 (and Command Line Tools) support it at compile time. This means a macOS < 27 system will detect support for pipe2, but then binaries will crash at runtime, as pipe2 is not available. Just avoid pipe2 on macOS for now, and continue using pipe. Note that the compilation also produces availability warnings, and this will need to be backported. Backport of bitcoin/bitcoin#36218.
macOS 27 will support pipe2 at runtime, and Xcode 27 (and Command Line Tools) support it at compile time. This means a macOS < 27 system will detect support for pipe2, but then binaries will crash at runtime, as pipe2 is not available. Just avoid pipe2 on macOS for now, and continue using pipe. Note that the compilation also produces availability warnings, and this will need to be backported. Backport of bitcoin/bitcoin#36218.
- Bump the version to 24.1.0 to match configure.ac. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Bump the version to 24.1.0 to match configure.ac. - Stop defining BOOST_MULTI_INDEX_ENABLE_SAFE_MODE in debug and fuzz builds, as configure.ac no longer does since bitcoin#27724. - Skip the pipe2 check on Darwin (bitcoin#36218). The macOS 27 SDK declares pipe2 as available only from macOS 27, so the check passed and a WERROR build with an older deployment target failed in tokenpipe.cpp. Autotools already detects pipe2 as unavailable there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Bring the imported CMake build to parity with the Autotools build it replaces. The source lists and the config header were checked against src/Makefile*.am and configure.ac. Configuration: - Define the macros Dash sources test: ENABLE_MINER, the X11 SSSE3, AES-NI and ARM backends (with their sources), ENABLE_STACKTRACES and ENABLE_CRASH_HOOKS with libbacktrace from depends, HAVE_GETRANDOM, WITH_ZSTD and ENABLE_PLATFORM_GUI. Without them the build succeeds but behaves differently, for example every mining RPC is stubbed out. - Debug builds define DEBUG_CORE, which Dash uses in place of upstream's DEBUG. - Version 24.1.0, and the `git describe` build description that clientversion.cpp reads. - Windows targets the same API level and PE subsystem as configure.ac. - Linux binaries keep -Wl,--build-id=sha1, which the Guix release script needs to match them to their split debug files. - Appended C flags reach the X11 and secp256k1 subdirectories. - The pipe2 check is skipped on Darwin (bitcoin#36218). Warnings: a WERROR build works. The vendored sphlib C sources are built as their own -O3 library outside the C++ warning set, -Wundef is not an error, and the dashbls and immer headers are system includes. Targets: - Dash executable names, Windows resources and the NSIS installer. - The public libdashconsensus, which Dash keeps (upstream removed it in bitcoin#29648), with its libtool soname, Mach-O versions, install name and MinGW DLL name. It is not built for fuzzing. - dash-chainstate links a kernel library with the sources of libdashkernel_la_SOURCES. - dashbls is compiled from Dash's own source list, like src/Makefile.dashbls.include, with blst from depends through a new FindBLST module. The subtree's own CMake project downloads blst at configure time, so it cannot be used. ENABLE_MIMALLOC mirrors --disable-mimalloc. - Crash-hook --wrap flags are applied where the wrappers are linked. - coinjoin/walletman.cpp is in the wallet library, and the fuzz binary links test_util before the node library. Tests: every unit, fuzz, wallet, Qt and bench source in the tree is compiled. CTest also runs the dashbls and minisketch tests, which `make check` ran, and util_test_runner gets DASHUTIL and DASHTX. The multiprocess IPC test block is dropped: its sources come with bitcoin#28921, which is not backported. Maintenance targets: check-symbols and check-security use Dash's script paths, and check-stdlib-paths and osx_debug are added for Guix and CI. Co-Authored-By: UdjinM6 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bring the imported CMake build to parity with the Autotools build it replaces. The source lists and the config header were checked against src/Makefile*.am and configure.ac. Configuration: - Define the macros Dash sources test: ENABLE_MINER, the X11 SSSE3, AES-NI and ARM backends (with their sources), ENABLE_STACKTRACES and ENABLE_CRASH_HOOKS with libbacktrace from depends, HAVE_GETRANDOM, WITH_ZSTD and ENABLE_PLATFORM_GUI. Without them the build succeeds but behaves differently, for example every mining RPC is stubbed out. - Debug builds define DEBUG_CORE, which Dash uses in place of upstream's DEBUG. - Version 24.1.0, and the `git describe` build description that clientversion.cpp reads. - Windows targets the same API level and PE subsystem as configure.ac. - Linux binaries keep -Wl,--build-id=sha1, which the Guix release script needs to match them to their split debug files. - Appended C flags reach the X11 and secp256k1 subdirectories. - The pipe2 check is skipped on Darwin (bitcoin#36218). Warnings: a WERROR build works. The vendored sphlib C sources are built as their own -O3 library outside the C++ warning set, -Wundef is not an error, and the dashbls and immer headers are system includes. Targets: - Dash executable names, Windows resources and the NSIS installer. - The public libdashconsensus, which Dash keeps (upstream removed it in bitcoin#29648), with its libtool soname, Mach-O versions, install name and MinGW DLL name. It is not built for fuzzing. - dash-chainstate links a kernel library with the sources of libdashkernel_la_SOURCES. - dashbls is compiled from Dash's own source list, like src/Makefile.dashbls.include, with blst from depends through a new FindBLST module. The subtree's own CMake project downloads blst at configure time, so it cannot be used. ENABLE_MIMALLOC mirrors --disable-mimalloc. - Crash-hook --wrap flags are applied where the wrappers are linked. - coinjoin/walletman.cpp is in the wallet library, and the fuzz binary links test_util before the node library. Tests: every unit, fuzz, wallet, Qt and bench source in the tree is compiled. CTest also runs the dashbls and minisketch tests, which `make check` ran, and util_test_runner gets DASHUTIL and DASHTX. The multiprocess IPC test block is dropped: its sources come with bitcoin#28921, which is not backported. Maintenance targets: check-symbols and check-security use Dash's script paths, and check-stdlib-paths and osx_debug are added for Guix and CI. Co-Authored-By: UdjinM6 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bring the imported CMake build to parity with the Autotools build it replaces. The source lists and the config header were checked against src/Makefile*.am and configure.ac. Configuration: - Define the macros Dash sources test: ENABLE_MINER, the X11 SSSE3, AES-NI and ARM backends (with their sources), ENABLE_STACKTRACES and ENABLE_CRASH_HOOKS with libbacktrace from depends, HAVE_GETRANDOM, WITH_ZSTD and ENABLE_PLATFORM_GUI. Without them the build succeeds but behaves differently, for example every mining RPC is stubbed out. - Debug builds define DEBUG_CORE, which Dash uses in place of upstream's DEBUG. - Version 24.1.0, and the `git describe` build description that clientversion.cpp reads. - Windows targets the same API level and PE subsystem as configure.ac. - Linux binaries keep -Wl,--build-id=sha1, which the Guix release script needs to match them to their split debug files. - Appended C flags reach the X11 and secp256k1 subdirectories. - The pipe2 check is skipped on Darwin (bitcoin#36218). Warnings: a WERROR build works. The vendored sphlib C sources are built as their own -O3 library outside the C++ warning set, -Wundef is not an error, and the dashbls and immer headers are system includes. Targets: - Dash executable names, Windows resources and the NSIS installer. - The public libdashconsensus, which Dash keeps (upstream removed it in bitcoin#29648), with its libtool soname, Mach-O versions, install name and MinGW DLL name. It is not built for fuzzing. - dash-chainstate links a kernel library with the sources of libdashkernel_la_SOURCES. - dashbls is compiled from Dash's own source list, like src/Makefile.dashbls.include, with blst from depends through a new FindBLST module. The subtree's own CMake project downloads blst at configure time, so it cannot be used. ENABLE_MIMALLOC mirrors --disable-mimalloc. - Crash-hook --wrap flags are applied where the wrappers are linked. - coinjoin/walletman.cpp is in the wallet library, and the fuzz binary links test_util before the node library. Tests: every unit, fuzz, wallet, Qt and bench source in the tree is compiled. CTest also runs the dashbls and minisketch tests, which `make check` ran, and util_test_runner gets DASHUTIL and DASHTX. The multiprocess IPC test block is dropped: its sources come with bitcoin#28921, which is not backported. Maintenance targets: check-symbols and check-security use Dash's script paths, and check-stdlib-paths and osx_debug are added for Guix and CI. Co-Authored-By: UdjinM6 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bring the imported CMake build to parity with the Autotools build it replaces. The source lists and the config header were checked against src/Makefile*.am and configure.ac. Configuration: - Define the macros Dash sources test: ENABLE_MINER, the X11 SSSE3, AES-NI and ARM backends (with their sources), ENABLE_STACKTRACES and ENABLE_CRASH_HOOKS with libbacktrace from depends, HAVE_GETRANDOM, WITH_ZSTD and ENABLE_PLATFORM_GUI. Without them the build succeeds but behaves differently, for example every mining RPC is stubbed out. - Debug builds define DEBUG_CORE, which Dash uses in place of upstream's DEBUG. - Version 24.1.0, and the `git describe` build description that clientversion.cpp reads. - Windows targets the same API level and PE subsystem as configure.ac. - Linux binaries keep -Wl,--build-id=sha1, which the Guix release script needs to match them to their split debug files. - Appended C flags reach the X11 and secp256k1 subdirectories. - The pipe2 check is skipped on Darwin (bitcoin#36218). Warnings: a WERROR build works. The vendored sphlib C sources are built as their own -O3 library outside the C++ warning set, -Wundef is not an error, and the dashbls and immer headers are system includes. Targets: - Dash executable names, Windows resources and the NSIS installer. - The public libdashconsensus, which Dash keeps (upstream removed it in bitcoin#29648), with its libtool soname, Mach-O versions, install name and MinGW DLL name. It is not built for fuzzing. - dash-chainstate links a kernel library with the sources of libdashkernel_la_SOURCES. - dashbls is compiled from Dash's own source list, like src/Makefile.dashbls.include, with blst from depends through a new FindBLST module. The subtree's own CMake project downloads blst at configure time, so it cannot be used. ENABLE_MIMALLOC mirrors --disable-mimalloc. - Crash-hook --wrap flags are applied where the wrappers are linked. - coinjoin/walletman.cpp is in the wallet library, and the fuzz binary links test_util before the node library. Tests: every unit, fuzz, wallet, Qt and bench source in the tree is compiled. CTest also runs the dashbls and minisketch tests, which `make check` ran, and util_test_runner gets DASHUTIL and DASHTX. The multiprocess IPC test block is dropped: its sources come with bitcoin#28921, which is not backported. Maintenance targets: check-symbols and check-security use Dash's script paths, and check-stdlib-paths and osx_debug are added for Guix and CI. Co-Authored-By: UdjinM6 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bring the imported CMake build to parity with the Autotools build it replaces. The source lists and the config header were checked against src/Makefile*.am and configure.ac. Configuration: - Define the macros Dash sources test: ENABLE_MINER, the X11 SSSE3, AES-NI and ARM backends (with their sources), ENABLE_STACKTRACES and ENABLE_CRASH_HOOKS with libbacktrace from depends, HAVE_GETRANDOM, WITH_ZSTD and ENABLE_PLATFORM_GUI. Without them the build succeeds but behaves differently, for example every mining RPC is stubbed out. - Debug builds define DEBUG_CORE, which Dash uses in place of upstream's DEBUG. - Version 24.1.0, and the `git describe` build description that clientversion.cpp reads. - Windows targets the same API level and PE subsystem as configure.ac. - Linux binaries keep -Wl,--build-id=sha1, which the Guix release script needs to match them to their split debug files. - Appended C flags reach the X11 and secp256k1 subdirectories. - The pipe2 check is skipped on Darwin (bitcoin#36218). Warnings: a WERROR build works. The vendored sphlib C sources are built as their own -O3 library outside the C++ warning set, -Wundef is not an error, and the dashbls and immer headers are system includes. Targets: - Dash executable names, Windows resources and the NSIS installer. - The public libdashconsensus, which Dash keeps (upstream removed it in bitcoin#29648), with its libtool soname, Mach-O versions, install name and MinGW DLL name. It is not built for fuzzing. - dash-chainstate links a kernel library with the sources of libdashkernel_la_SOURCES. - dashbls is compiled from Dash's own source list, like src/Makefile.dashbls.include, with blst from depends through a new FindBLST module. The subtree's own CMake project downloads blst at configure time, so it cannot be used. ENABLE_MIMALLOC mirrors --disable-mimalloc. - Crash-hook --wrap flags are applied where the wrappers are linked. - coinjoin/walletman.cpp is in the wallet library, and the fuzz binary links test_util before the node library. Tests: every unit, fuzz, wallet, Qt and bench source in the tree is compiled. CTest also runs the dashbls and minisketch tests, which `make check` ran, and util_test_runner gets DASHUTIL and DASHTX. The multiprocess IPC test block is dropped: its sources come with bitcoin#28921, which is not backported. Maintenance targets: check-symbols and check-security use Dash's script paths, and check-stdlib-paths and osx_debug are added for Guix and CI. Co-Authored-By: UdjinM6 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bring the imported CMake build to parity with the Autotools build it replaces. The source lists and the config header were checked against src/Makefile*.am and configure.ac. Configuration: - Define the macros Dash sources test: ENABLE_MINER, the X11 SSSE3, AES-NI and ARM backends (with their sources), ENABLE_STACKTRACES and ENABLE_CRASH_HOOKS with libbacktrace from depends, HAVE_GETRANDOM, WITH_ZSTD and ENABLE_PLATFORM_GUI. Without them the build succeeds but behaves differently, for example every mining RPC is stubbed out. - Debug builds define DEBUG_CORE, which Dash uses in place of upstream's DEBUG. - Version 24.1.0, and the `git describe` build description that clientversion.cpp reads. - Windows targets the same API level and PE subsystem as configure.ac. - Linux binaries keep -Wl,--build-id=sha1, which the Guix release script needs to match them to their split debug files. - Appended C flags reach the X11 and secp256k1 subdirectories. - The pipe2 check is skipped on Darwin (bitcoin#36218). Warnings: a WERROR build works. The vendored sphlib C sources are built as their own -O3 library outside the C++ warning set, -Wundef is not an error, and the dashbls and immer headers are system includes. Targets: - Dash executable names, Windows resources and the NSIS installer. - The public libdashconsensus, which Dash keeps (upstream removed it in bitcoin#29648), with its libtool soname, Mach-O versions, install name and MinGW DLL name. It is not built for fuzzing. - dash-chainstate links a kernel library with the sources of libdashkernel_la_SOURCES. - dashbls is compiled from Dash's own source list, like src/Makefile.dashbls.include, with blst from depends through a new FindBLST module. The subtree's own CMake project downloads blst at configure time, so it cannot be used. ENABLE_MIMALLOC mirrors --disable-mimalloc. - Crash-hook --wrap flags are applied where the wrappers are linked. - coinjoin/walletman.cpp is in the wallet library, and the fuzz binary links test_util before the node library. Tests: every unit, fuzz, wallet, Qt and bench source in the tree is compiled. CTest also runs the dashbls and minisketch tests, which `make check` ran, and util_test_runner gets DASHUTIL and DASHTX. The multiprocess IPC test block is dropped: its sources come with bitcoin#28921, which is not backported. Maintenance targets: check-symbols and check-security use Dash's script paths, and check-stdlib-paths and osx_debug are added for Guix and CI. Co-Authored-By: UdjinM6 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bring the imported CMake build to parity with the Autotools build it replaces. The source lists and the config header were checked against src/Makefile*.am and configure.ac. Configuration: - Define the macros Dash sources test: ENABLE_MINER, the X11 SSSE3, AES-NI and ARM backends (with their sources), ENABLE_STACKTRACES and ENABLE_CRASH_HOOKS with libbacktrace from depends, HAVE_GETRANDOM, WITH_ZSTD and ENABLE_PLATFORM_GUI. Without them the build succeeds but behaves differently, for example every mining RPC is stubbed out. - Debug builds define DEBUG_CORE, which Dash uses in place of upstream's DEBUG. - Version 24.1.0, and the `git describe` build description that clientversion.cpp reads. - Windows targets the same API level and PE subsystem as configure.ac. - Linux binaries keep -Wl,--build-id=sha1, which the Guix release script needs to match them to their split debug files. - Appended C flags reach the X11 and secp256k1 subdirectories. - The pipe2 check is skipped on Darwin (bitcoin#36218). Warnings: a WERROR build works. The vendored sphlib C sources are built as their own -O3 library outside the C++ warning set, -Wundef is not an error, and the dashbls and immer headers are system includes. Targets: - Dash executable names, Windows resources and the NSIS installer. - The public libdashconsensus, which Dash keeps (upstream removed it in bitcoin#29648), with its libtool soname, Mach-O versions, install name and MinGW DLL name. It is not built for fuzzing. - dash-chainstate links a kernel library with the sources of libdashkernel_la_SOURCES. - dashbls is compiled from Dash's own source list, like src/Makefile.dashbls.include, with blst from depends through a new FindBLST module. The subtree's own CMake project downloads blst at configure time, so it cannot be used. ENABLE_MIMALLOC mirrors --disable-mimalloc. - Crash-hook --wrap flags are applied where the wrappers are linked. - coinjoin/walletman.cpp is in the wallet library, and the fuzz binary links test_util before the node library. Tests: every unit, fuzz, wallet, Qt and bench source in the tree is compiled. CTest also runs the dashbls and minisketch tests, which `make check` ran, and util_test_runner gets DASHUTIL and DASHTX. The multiprocess IPC test block is dropped: its sources come with bitcoin#28921, which is not backported. Maintenance targets: check-symbols and check-security use Dash's script paths, and check-stdlib-paths and osx_debug are added for Guix and CI. Co-Authored-By: UdjinM6 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bring the imported CMake build to parity with the Autotools build it replaces. The source lists and the config header were checked against src/Makefile*.am and configure.ac. Configuration: - Define the macros Dash sources test: ENABLE_MINER, the X11 SSSE3, AES-NI and ARM backends (with their sources), ENABLE_STACKTRACES and ENABLE_CRASH_HOOKS with libbacktrace from depends, HAVE_GETRANDOM, WITH_ZSTD and ENABLE_PLATFORM_GUI. Without them the build succeeds but behaves differently, for example every mining RPC is stubbed out. - Debug builds define DEBUG_CORE, which Dash uses in place of upstream's DEBUG. - Version 24.1.0, and the `git describe` build description that clientversion.cpp reads. - Windows targets the same API level and PE subsystem as configure.ac. - Linux binaries keep -Wl,--build-id=sha1, which the Guix release script needs to match them to their split debug files. - Appended C flags reach the X11 and secp256k1 subdirectories. - The pipe2 check is skipped on Darwin (bitcoin#36218). Warnings: a WERROR build works. The vendored sphlib C sources are built as their own -O3 library outside the C++ warning set, -Wundef is not an error, and the dashbls and immer headers are system includes. Targets: - Dash executable names, Windows resources and the NSIS installer. - The public libdashconsensus, which Dash keeps (upstream removed it in bitcoin#29648), with its libtool soname, Mach-O versions, install name and MinGW DLL name. It is not built for fuzzing. - dash-chainstate links a kernel library with the sources of libdashkernel_la_SOURCES. - dashbls is compiled from Dash's own source list, like src/Makefile.dashbls.include, with blst from depends through a new FindBLST module. The subtree's own CMake project downloads blst at configure time, so it cannot be used. ENABLE_MIMALLOC mirrors --disable-mimalloc. - Crash-hook --wrap flags are applied where the wrappers are linked. - coinjoin/walletman.cpp is in the wallet library, and the fuzz binary links test_util before the node library. Tests: every unit, fuzz, wallet, Qt and bench source in the tree is compiled. CTest also runs the dashbls and minisketch tests, which `make check` ran, and util_test_runner gets DASHUTIL and DASHTX. The multiprocess IPC test block is dropped: its sources come with bitcoin#28921, which is not backported. Maintenance targets: check-symbols and check-security use Dash's script paths, and check-stdlib-paths and osx_debug are added for Guix and CI. Co-Authored-By: UdjinM6 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bring the imported CMake build to parity with the Autotools build it replaces. The source lists and the config header were checked against src/Makefile*.am and configure.ac. Configuration: - Define the macros Dash sources test: ENABLE_MINER, the X11 SSSE3, AES-NI and ARM backends (with their sources), ENABLE_STACKTRACES and ENABLE_CRASH_HOOKS with libbacktrace from depends, HAVE_GETRANDOM, WITH_ZSTD and ENABLE_PLATFORM_GUI. Without them the build succeeds but behaves differently, for example every mining RPC is stubbed out. - Debug builds define DEBUG_CORE, which Dash uses in place of upstream's DEBUG. - Version 24.1.0, and the `git describe` build description that clientversion.cpp reads. - Windows targets the same API level and PE subsystem as configure.ac. - Linux binaries keep -Wl,--build-id=sha1, which the Guix release script needs to match them to their split debug files. - Appended C flags reach the X11 and secp256k1 subdirectories. - The pipe2 check is skipped on Darwin (bitcoin#36218). Warnings: a WERROR build works. The vendored sphlib C sources are built as their own -O3 library outside the C++ warning set, -Wundef is not an error, and the dashbls and immer headers are system includes. Targets: - Dash executable names, Windows resources and the NSIS installer. - The public libdashconsensus, which Dash keeps (upstream removed it in bitcoin#29648), with its libtool soname, Mach-O versions, install name and MinGW DLL name. It is not built for fuzzing. - dash-chainstate links a kernel library with the sources of libdashkernel_la_SOURCES. - dashbls is compiled from Dash's own source list, like src/Makefile.dashbls.include, with blst from depends through a new FindBLST module. The subtree's own CMake project downloads blst at configure time, so it cannot be used. ENABLE_MIMALLOC mirrors --disable-mimalloc. - Crash-hook --wrap flags are applied where the wrappers are linked. - coinjoin/walletman.cpp is in the wallet library, and the fuzz binary links test_util before the node library. Tests: every unit, fuzz, wallet, Qt and bench source in the tree is compiled. CTest also runs the dashbls and minisketch tests, which `make check` ran, and util_test_runner gets DASHUTIL and DASHTX. The multiprocess IPC test block is dropped: its sources come with bitcoin#28921, which is not backported. Maintenance targets: check-symbols and check-security use Dash's script paths, and check-stdlib-paths and osx_debug are added for Guix and CI. Co-Authored-By: UdjinM6 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bring the imported CMake build to parity with the Autotools build it replaces. The source lists and the config header were checked against src/Makefile*.am and configure.ac. Configuration: - Define the macros Dash sources test: ENABLE_MINER, the X11 SSSE3, AES-NI and ARM backends (with their sources), ENABLE_STACKTRACES and ENABLE_CRASH_HOOKS with libbacktrace from depends, HAVE_GETRANDOM, WITH_ZSTD and ENABLE_PLATFORM_GUI. Without them the build succeeds but behaves differently, for example every mining RPC is stubbed out. - Debug builds define DEBUG_CORE, which Dash uses in place of upstream's DEBUG. - Version 24.1.0, and the `git describe` build description that clientversion.cpp reads. - Windows targets the same API level and PE subsystem as configure.ac. - Linux binaries keep -Wl,--build-id=sha1, which the Guix release script needs to match them to their split debug files. - Appended C flags reach the X11 and secp256k1 subdirectories. - The pipe2 check is skipped on Darwin (bitcoin#36218). Warnings: a WERROR build works. The vendored sphlib C sources are built as their own -O3 library outside the C++ warning set, -Wundef is not an error, and the dashbls and immer headers are system includes. Targets: - Dash executable names, Windows resources and the NSIS installer. - The public libdashconsensus, which Dash keeps (upstream removed it in bitcoin#29648), with its libtool soname, Mach-O versions, install name and MinGW DLL name. It is not built for fuzzing. - dash-chainstate links a kernel library with the sources of libdashkernel_la_SOURCES. - dashbls is compiled from Dash's own source list, like src/Makefile.dashbls.include, with blst from depends through a new FindBLST module. The subtree's own CMake project downloads blst at configure time, so it cannot be used. ENABLE_MIMALLOC mirrors --disable-mimalloc. - Crash-hook --wrap flags are applied where the wrappers are linked. - coinjoin/walletman.cpp is in the wallet library, and the fuzz binary links test_util before the node library. Tests: every unit, fuzz, wallet, Qt and bench source in the tree is compiled. CTest also runs the dashbls and minisketch tests, which `make check` ran, and util_test_runner gets DASHUTIL and DASHTX. The multiprocess IPC test block is dropped: its sources come with bitcoin#28921, which is not backported. Maintenance targets: check-symbols and check-security use Dash's script paths, and check-stdlib-paths and osx_debug are added for Guix and CI. Co-Authored-By: UdjinM6 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
…: private broadcast, flatfile/sock/net fixes, tx INV dedup, asmap, tests bitcoin/pull/35878 bitcoin/pull/36312 bitcoin/pull/36309 bitcoin/pull/36665 bitcoin/pull/36667 bitcoin/pull/36669 bitcoin/pull/36199 bitcoin/pull/36201 bitcoin/pull/36177 bitcoin/pull/36218 bitcoin/pull/36045 bitcoin/pull/35937 bitcoin/pull/36599 bitcoin/pull/35168 bitcoin/pull/35914 bitcoin/pull/35978 bitcoin/pull/35908 bitcoin/pull/35928 bitcoin/pull/36377 - net_processing: process unique tx INVs only. - net: private broadcast peers are no longer discouraged; private broadcast is marked experimental and the docs/RPC help scope their claims. - flatfile/sock/net: file positions stored as 64-bit integers and 64-bit file positioning syscalls on Windows; exception monitoring aligned between poll() and select() backends; timeout interval enforced for paused send peers. - net: RFC 9637 IPv6 documentation range treated as invalid, embedded asmap updated. - proxy: network name case preserved in errors, "onion" used in help and examples. - build/test/doc: avoid pipe2 on Darwin, Boost.Test signal stacks, LSAN options, ibd_wtxid getdata flake, m_blocks_unlinked LoadBlockIndex coverage, unused variable cleanups, openrc script, NetBSD/macOS build docs, BIP 461 in bips.md. - release prep: example config updated for v31.2, version bumped to 31.3.0. All of these are in official bitcoin/bitcoin 31.x. Ported from bitcoin/bitcoin: bitcoin/bitcoin@1278a5970d -- net_processing: process unique tx INVs only (Gregory Sanders) bitcoin/bitcoin@eab6630add -- net: don't discourage private broadcast peers (Andrew Toth) bitcoin/bitcoin@2630d8e6c9 -- doc: scope claims about private broadcast feature (Greg Sanders) bitcoin/bitcoin@f413729983 -- private broadcast: mark feature as experimental (Greg Sanders) bitcoin/bitcoin@1e0c407377 -- sock: align exception monitoring between poll() and select() backends (Antoine Poinsot) bitcoin/bitcoin@cc2534cdf7 -- net: enforce timeout interval for paused send peers (Antoine Poinsot) bitcoin/bitcoin@17556cb1f5 -- flatfile: store position as a 64 bits integer (Antoine Poinsot) bitcoin/bitcoin@48092a9042 -- flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot) bitcoin/bitcoin@e6c775c6d6 -- net: treat RFC 9637 new IPv6 documentation range as invalid (Fabian Jahr) bitcoin/bitcoin@b48a27691d -- fuzz: assert invalid addresses are not routable (Fabian Jahr) bitcoin/bitcoin@3c91db262b -- net: Update embedded asmap to 1788801420 (Fabian Jahr) bitcoin/bitcoin@332c3e8e3e -- test: characterize proxy network name errors (Lőrinc) bitcoin/bitcoin@b0375749d4 -- refactor: share proxy network parsing (Lőrinc) bitcoin/bitcoin@fd65406b39 -- net: preserve network name case in proxy errors (Lőrinc) bitcoin/bitcoin@6c7c27f615 -- doc: use onion in proxy help and examples (Lőrinc) bitcoin/bitcoin@9c7748315d -- build: avoid pipe2 on Darwin (for now) (fanquake) bitcoin/bitcoin@9eba3aafa6 -- test: avoid undersized Boost.Test signal stacks (Lőrinc) bitcoin/bitcoin@fad9ab714b -- test: Append print_suppressions=0 to LSAN_OPTIONS, and suppress bitcoin-qt (MarcoFalke) bitcoin/bitcoin@7777598f87 -- test: Fix intermittent timeout waiting for ibd_wtxid getdata (MarcoFalke) bitcoin/bitcoin@3f44f9aef7 -- test: Add coverage for m_blocks_unlinked invariant in LoadBlockIndex (marcofleon) bitcoin/bitcoin@da58e55986 -- test, refactor: Remove unused `warnings` in `wallet/test/util.cpp` (Hennadii Stepanov) bitcoin/bitcoin@fc28914de4 -- fuzz, refactor: Remove unused `linearization` in `cluster_linearize.cpp` (Hennadii Stepanov) bitcoin/bitcoin@3df0d067ad -- fuzz, refactor: Remove unused `random_string` in `locale.cpp` (Hennadii Stepanov) bitcoin/bitcoin@b7ae50e2e2 -- fuzz, refactor: Remove unused `header` in `p2p_transport_serialization.cpp` (Hennadii Stepanov) bitcoin/bitcoin@e50f422d25 -- test, refactor: Remove unused variables in `test/rbf_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@e550945a39 -- test, refactor: Remove unused `removed_refs` in `txgraph_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@422f1bd92f -- test, refactor: Remove unused `utxo_pool` in `coinselector_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@3175d57628 -- test, refactor: Remove unused `error` in `wallet_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@d837bb38a4 -- contrib/init: fix unused variables in openrc script (jpk68) bitcoin/bitcoin@9b85c9814d -- doc: Drop GCC upgrade instructions for NetBSD (Hennadii Stepanov) bitcoin/bitcoin@5964c7229f -- doc: Switch `pkg-config` package to modern `pkgconf` on NetBSD (Hennadii Stepanov) bitcoin/bitcoin@222855ed11 -- doc: mention -DWITH_ZMQ=ON in macOS build guide (cyb3ralbert) bitcoin/bitcoin@d57346d682 -- doc: add 461 (Deterministic ECDSA signatures with low-R grinding) to bips.md (Sebastian Falbesoner) bitcoin/bitcoin@a48dd277ed -- doc: update example bitcoin.conf for v31.2 (fanquake) bitcoin/bitcoin@bb5978023d -- build: bump version to v31.3 (fanquake) Tree-SHA512: 91cbd45c614b2ea1bfbc47dbb66192ea61602b426dcd97c0a6851198969a86347b33e69852f0592131ae01e32ac0e76a4a90f2403eab934909116f664a2025fa
…ep): private broadcast, versionbits, flatfile/sock/net fixes, tx INV dedup, asmap, tests bitcoin/bitcoin/pull/35406 bitcoin/bitcoin/pull/35678 bitcoin/bitcoin/pull/35679 bitcoin/bitcoin/pull/35766 bitcoin/bitcoin/pull/35769 bitcoin/bitcoin/pull/34779 bitcoin/bitcoin/pull/35878 bitcoin/bitcoin/pull/36312 bitcoin/bitcoin/pull/36309 bitcoin/bitcoin/pull/36665 bitcoin/bitcoin/pull/36667 bitcoin/bitcoin/pull/36669 bitcoin/bitcoin/pull/36199 bitcoin/bitcoin/pull/36201 bitcoin/bitcoin/pull/36177 bitcoin/bitcoin/pull/36218 bitcoin/bitcoin/pull/36045 bitcoin/bitcoin/pull/35937 bitcoin/bitcoin/pull/36599 bitcoin/bitcoin/pull/35168 bitcoin/bitcoin/pull/35914 bitcoin/bitcoin/pull/35978 bitcoin/bitcoin/pull/35908 bitcoin/bitcoin/pull/35928 bitcoin/bitcoin/pull/36377 - private broadcast: outstanding txs limited to 10,000 with a new RPC_LIMIT_EXCEEDED error code, cs_main released between individual tx re-attempts, peers are no longer discouraged, feature marked experimental and docs/RPC help scope their claims. - versionbits: live activation params and activation warnings limited per BIP 323, with test coverage and doc updates. - net_processing: process unique tx INVs only. - p2p: assume v2transport for addresses from seeds. - flatfile/sock/net: file positions stored as 64-bit integers and 64-bit file positioning syscalls on Windows; exception monitoring aligned between poll() and select() backends; timeout interval enforced for paused send peers. - net: RFC 9637 IPv6 documentation range treated as invalid, embedded asmap updated. - proxy: network name case preserved in errors, "onion" used in help and examples. - depends/build/test/doc: zeromq upstream patch, avoid pipe2 on Darwin, Boost.Test signal stacks, LSAN options, ibd_wtxid getdata flake, m_blocks_unlinked LoadBlockIndex coverage, fuzz Serialize/Deserialize cleanups, unused variable cleanups, openrc script, NetBSD/macOS build docs, BIP 323/461 in bips.md. - release prep: example config updated for v31.2, version bumped to 31.3.0. All of these are in official bitcoin/bitcoin 31.x. Ported from bitcoin/bitcoin: bitcoin/bitcoin@5aea3d0373 -- private broadcast: limit outstanding txs to count of 10,000 (Gregory Sanders) bitcoin/bitcoin@cbf8c107c1 -- Release cs_main between individual private tx re-attempts (Greg Sanders) bitcoin/bitcoin@82a02a2a22 -- rpc: define and use new RPC_LIMIT_EXCEEDED error code (stickies-v) bitcoin/bitcoin@efa7f8c143 -- fuzz: Remove unused `DeserializeFromFuzzingInput` params overload (Hennadii Stepanov) bitcoin/bitcoin@afab8d4225 -- fuzz, refactor: Remove `Serialize` overload (Hennadii Stepanov) bitcoin/bitcoin@cf0f2aeae0 -- p2p: Assume v2transport for addresses from seeds (Martin Zumsande) bitcoin/bitcoin@e446ea09c4 -- depends, zeromq: Apply upstream patch (Hennadii Stepanov) bitcoin/bitcoin@f802edf57c -- versionbits: Limit live activation params and activation warnings per BIP323 (Anthony Towns) bitcoin/bitcoin@1d5240574a -- qa: test we don't warn for ignored unknown version bits deployments (Antoine Poinsot) bitcoin/bitcoin@107d4178d9 -- versionbits: update VersionBitsCache doc comment to match current behaviour (Antoine Poinsot) bitcoin/bitcoin@94e3ac0b21 -- doc: bips doc update (release notes part not ported) (Antoine Poinsot) bitcoin/bitcoin@1278a5970d -- net_processing: process unique tx INVs only (Gregory Sanders) bitcoin/bitcoin@eab6630add -- net: don't discourage private broadcast peers (Andrew Toth) bitcoin/bitcoin@2630d8e6c9 -- doc: scope claims about private broadcast feature (Greg Sanders) bitcoin/bitcoin@f413729983 -- private broadcast: mark feature as experimental (Greg Sanders) bitcoin/bitcoin@1e0c407377 -- sock: align exception monitoring between poll() and select() backends (Antoine Poinsot) bitcoin/bitcoin@cc2534cdf7 -- net: enforce timeout interval for paused send peers (Antoine Poinsot) bitcoin/bitcoin@17556cb1f5 -- flatfile: store position as a 64 bits integer (Antoine Poinsot) bitcoin/bitcoin@48092a9042 -- flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot) bitcoin/bitcoin@e6c775c6d6 -- net: treat RFC 9637 new IPv6 documentation range as invalid (Fabian Jahr) bitcoin/bitcoin@b48a27691d -- fuzz: assert invalid addresses are not routable (Fabian Jahr) bitcoin/bitcoin@3c91db262b -- net: Update embedded asmap to 1788801420 (Fabian Jahr) bitcoin/bitcoin@332c3e8e3e -- test: characterize proxy network name errors (Lőrinc) bitcoin/bitcoin@b0375749d4 -- refactor: share proxy network parsing (Lőrinc) bitcoin/bitcoin@fd65406b39 -- net: preserve network name case in proxy errors (Lőrinc) bitcoin/bitcoin@6c7c27f615 -- doc: use onion in proxy help and examples (Lőrinc) bitcoin/bitcoin@9c7748315d -- build: avoid pipe2 on Darwin (for now) (fanquake) bitcoin/bitcoin@9eba3aafa6 -- test: avoid undersized Boost.Test signal stacks (Lőrinc) bitcoin/bitcoin@fad9ab714b -- test: Append print_suppressions=0 to LSAN_OPTIONS, and suppress bitcoin-qt (MarcoFalke) bitcoin/bitcoin@7777598f87 -- test: Fix intermittent timeout waiting for ibd_wtxid getdata (MarcoFalke) bitcoin/bitcoin@3f44f9aef7 -- test: Add coverage for m_blocks_unlinked invariant in LoadBlockIndex (marcofleon) bitcoin/bitcoin@da58e55986 -- test, refactor: Remove unused `warnings` in `wallet/test/util.cpp` (Hennadii Stepanov) bitcoin/bitcoin@fc28914de4 -- fuzz, refactor: Remove unused `linearization` in `cluster_linearize.cpp` (Hennadii Stepanov) bitcoin/bitcoin@3df0d067ad -- fuzz, refactor: Remove unused `random_string` in `locale.cpp` (Hennadii Stepanov) bitcoin/bitcoin@b7ae50e2e2 -- fuzz, refactor: Remove unused `header` in `p2p_transport_serialization.cpp` (Hennadii Stepanov) bitcoin/bitcoin@e50f422d25 -- test, refactor: Remove unused variables in `test/rbf_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@e550945a39 -- test, refactor: Remove unused `removed_refs` in `txgraph_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@422f1bd92f -- test, refactor: Remove unused `utxo_pool` in `coinselector_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@3175d57628 -- test, refactor: Remove unused `error` in `wallet_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@d837bb38a4 -- contrib/init: fix unused variables in openrc script (jpk68) bitcoin/bitcoin@9b85c9814d -- doc: Drop GCC upgrade instructions for NetBSD (Hennadii Stepanov) bitcoin/bitcoin@5964c7229f -- doc: Switch `pkg-config` package to modern `pkgconf` on NetBSD (Hennadii Stepanov) bitcoin/bitcoin@222855ed11 -- doc: mention -DWITH_ZMQ=ON in macOS build guide (cyb3ralbert) bitcoin/bitcoin@d57346d682 -- doc: add 461 (Deterministic ECDSA signatures with low-R grinding) to bips.md (Sebastian Falbesoner) bitcoin/bitcoin@a48dd277ed -- doc: update example bitcoin.conf for v31.2 (fanquake) bitcoin/bitcoin@bb5978023d -- build: bump version to v31.3 (fanquake) Local adjustments (not from upstream): - node/blockstorage.cpp: BACKPORT comment for the m_blocks_unlinked dedup corrected; the BLOCK_HAVE_DATA guard is already in official 31.x, only the AddUnlinkedBlock dedup remains unmerged. - test/util/time.h: typo fixed in the FakeNodeClock BACKPORT comment. - private_broadcast.h: removed the stale BACKPORT marker for the TxSendStatus changes, now in official 31.x. Tree-SHA512: 0afeda49b755a50ff21487839b8bc8da6010136a0431ac9015aa3bd9106721a88a6d86aa8607a282c92f61757a4bf7959ab28d049276d09b8429f84c1e7e4066
…prep): private broadcast, versionbits, flatfile/sock/net fixes, tx INV dedup, asmap, tests bitcoin/bitcoin/pull/35406 bitcoin/bitcoin/pull/35678 bitcoin/bitcoin/pull/35679 bitcoin/bitcoin/pull/35766 bitcoin/bitcoin/pull/35769 bitcoin/bitcoin/pull/34779 bitcoin/bitcoin/pull/35878 bitcoin/bitcoin/pull/36312 bitcoin/bitcoin/pull/36309 bitcoin/bitcoin/pull/36665 bitcoin/bitcoin/pull/36667 bitcoin/bitcoin/pull/36669 bitcoin/bitcoin/pull/36199 bitcoin/bitcoin/pull/36201 bitcoin/bitcoin/pull/36177 bitcoin/bitcoin/pull/36218 bitcoin/bitcoin/pull/36045 bitcoin/bitcoin/pull/35937 bitcoin/bitcoin/pull/36599 bitcoin/bitcoin/pull/35168 bitcoin/bitcoin/pull/35914 bitcoin/bitcoin/pull/35978 bitcoin/bitcoin/pull/35908 bitcoin/bitcoin/pull/35928 bitcoin/bitcoin/pull/36377 - private broadcast: outstanding txs limited to 10,000 with a new RPC_LIMIT_EXCEEDED error code, cs_main released between individual tx re-attempts, peers are no longer discouraged, feature marked experimental and docs/RPC help scope their claims. - versionbits: live activation params and activation warnings limited per BIP 323, with test coverage and doc updates. - net_processing: process unique tx INVs only. - p2p: assume v2transport for addresses from seeds. - flatfile/sock/net: file positions stored as 64-bit integers and 64-bit file positioning syscalls on Windows; exception monitoring aligned between poll() and select() backends; timeout interval enforced for paused send peers. - net: RFC 9637 IPv6 documentation range treated as invalid, embedded asmap updated. - proxy: network name case preserved in errors, "onion" used in help and examples. - depends/build/test/doc: zeromq upstream patch, avoid pipe2 on Darwin, Boost.Test signal stacks, LSAN options, ibd_wtxid getdata flake, m_blocks_unlinked LoadBlockIndex coverage, fuzz Serialize/Deserialize cleanups, unused variable cleanups, openrc script, NetBSD/macOS build docs, BIP 323/461 in bips.md. - release prep: example config updated for v31.2, version bumped to 31.3.0. All of these are in official bitcoin/bitcoin 31.x. Ported from bitcoin/bitcoin: bitcoin/bitcoin@5aea3d0373 -- private broadcast: limit outstanding txs to count of 10,000 (Gregory Sanders) bitcoin/bitcoin@cbf8c107c1 -- Release cs_main between individual private tx re-attempts (Greg Sanders) bitcoin/bitcoin@82a02a2a22 -- rpc: define and use new RPC_LIMIT_EXCEEDED error code (stickies-v) bitcoin/bitcoin@efa7f8c143 -- fuzz: Remove unused `DeserializeFromFuzzingInput` params overload (Hennadii Stepanov) bitcoin/bitcoin@afab8d4225 -- fuzz, refactor: Remove `Serialize` overload (Hennadii Stepanov) bitcoin/bitcoin@cf0f2aeae0 -- p2p: Assume v2transport for addresses from seeds (Martin Zumsande) bitcoin/bitcoin@e446ea09c4 -- depends, zeromq: Apply upstream patch (Hennadii Stepanov) bitcoin/bitcoin@f802edf57c -- versionbits: Limit live activation params and activation warnings per BIP323 (Anthony Towns) bitcoin/bitcoin@1d5240574a -- qa: test we don't warn for ignored unknown version bits deployments (Antoine Poinsot) bitcoin/bitcoin@107d4178d9 -- versionbits: update VersionBitsCache doc comment to match current behaviour (Antoine Poinsot) bitcoin/bitcoin@94e3ac0b21 -- doc: bips doc update (release notes part not ported) (Antoine Poinsot) bitcoin/bitcoin@1278a5970d -- net_processing: process unique tx INVs only (Gregory Sanders) bitcoin/bitcoin@eab6630add -- net: don't discourage private broadcast peers (Andrew Toth) bitcoin/bitcoin@2630d8e6c9 -- doc: scope claims about private broadcast feature (Greg Sanders) bitcoin/bitcoin@f413729983 -- private broadcast: mark feature as experimental (Greg Sanders) bitcoin/bitcoin@1e0c407377 -- sock: align exception monitoring between poll() and select() backends (Antoine Poinsot) bitcoin/bitcoin@cc2534cdf7 -- net: enforce timeout interval for paused send peers (Antoine Poinsot) bitcoin/bitcoin@17556cb1f5 -- flatfile: store position as a 64 bits integer (Antoine Poinsot) bitcoin/bitcoin@48092a9042 -- flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot) bitcoin/bitcoin@e6c775c6d6 -- net: treat RFC 9637 new IPv6 documentation range as invalid (Fabian Jahr) bitcoin/bitcoin@b48a27691d -- fuzz: assert invalid addresses are not routable (Fabian Jahr) bitcoin/bitcoin@3c91db262b -- net: Update embedded asmap to 1788801420 (Fabian Jahr) bitcoin/bitcoin@332c3e8e3e -- test: characterize proxy network name errors (Lőrinc) bitcoin/bitcoin@b0375749d4 -- refactor: share proxy network parsing (Lőrinc) bitcoin/bitcoin@fd65406b39 -- net: preserve network name case in proxy errors (Lőrinc) bitcoin/bitcoin@6c7c27f615 -- doc: use onion in proxy help and examples (Lőrinc) bitcoin/bitcoin@9c7748315d -- build: avoid pipe2 on Darwin (for now) (fanquake) bitcoin/bitcoin@9eba3aafa6 -- test: avoid undersized Boost.Test signal stacks (Lőrinc) bitcoin/bitcoin@fad9ab714b -- test: Append print_suppressions=0 to LSAN_OPTIONS, and suppress bitcoin-qt (MarcoFalke) bitcoin/bitcoin@7777598f87 -- test: Fix intermittent timeout waiting for ibd_wtxid getdata (MarcoFalke) bitcoin/bitcoin@3f44f9aef7 -- test: Add coverage for m_blocks_unlinked invariant in LoadBlockIndex (marcofleon) bitcoin/bitcoin@da58e55986 -- test, refactor: Remove unused `warnings` in `wallet/test/util.cpp` (Hennadii Stepanov) bitcoin/bitcoin@fc28914de4 -- fuzz, refactor: Remove unused `linearization` in `cluster_linearize.cpp` (Hennadii Stepanov) bitcoin/bitcoin@3df0d067ad -- fuzz, refactor: Remove unused `random_string` in `locale.cpp` (Hennadii Stepanov) bitcoin/bitcoin@b7ae50e2e2 -- fuzz, refactor: Remove unused `header` in `p2p_transport_serialization.cpp` (Hennadii Stepanov) bitcoin/bitcoin@e50f422d25 -- test, refactor: Remove unused variables in `test/rbf_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@e550945a39 -- test, refactor: Remove unused `removed_refs` in `txgraph_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@422f1bd92f -- test, refactor: Remove unused `utxo_pool` in `coinselector_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@3175d57628 -- test, refactor: Remove unused `error` in `wallet_tests.cpp` (Hennadii Stepanov) bitcoin/bitcoin@d837bb38a4 -- contrib/init: fix unused variables in openrc script (jpk68) bitcoin/bitcoin@9b85c9814d -- doc: Drop GCC upgrade instructions for NetBSD (Hennadii Stepanov) bitcoin/bitcoin@5964c7229f -- doc: Switch `pkg-config` package to modern `pkgconf` on NetBSD (Hennadii Stepanov) bitcoin/bitcoin@222855ed11 -- doc: mention -DWITH_ZMQ=ON in macOS build guide (cyb3ralbert) bitcoin/bitcoin@d57346d682 -- doc: add 461 (Deterministic ECDSA signatures with low-R grinding) to bips.md (Sebastian Falbesoner) bitcoin/bitcoin@a48dd277ed -- doc: update example bitcoin.conf for v31.2 (fanquake) bitcoin/bitcoin@bb5978023d -- build: bump version to v31.3 (fanquake) Local adjustments (not from upstream): - node/blockstorage.cpp: BACKPORT comment for the m_blocks_unlinked dedup corrected; the BLOCK_HAVE_DATA guard is already in official 31.x, only the AddUnlinkedBlock dedup remains unmerged. - test/util/time.h: typo fixed in the FakeNodeClock BACKPORT comment. - private_broadcast.h: removed the stale BACKPORT marker for the TxSendStatus changes, now in official 31.x. Tree-SHA512: 0afeda49b755a50ff21487839b8bc8da6010136a0431ac9015aa3bd9106721a88a6d86aa8607a282c92f61757a4bf7959ab28d049276d09b8429f84c1e7e4066
macOS 27 will support
pipe2at runtime, and Xcode 27 (and Command Line Tools) support it at compile time. This means a macOS < 27 system will detect support forpipe2, but then binaries will crash at runtime, as pipe2 is not available.Just avoid
pipe2on macOS for now, and continue usingpipe. Note that the compilation also produces availability warnings:and this will need to be backported. When macOS 27 is released, we could change approach, but wanted to PR something straightforward (and backportable) for
32.x.