mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-25 17:43:54 +01:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d82283950f | ||
|
|
910e3e8728 | ||
|
|
2d2a0a369e | ||
|
|
9442ea82da | ||
|
|
fe51aceeca | ||
|
|
bde54b7627 | ||
|
|
753c68dc0f | ||
|
|
c4da61b323 | ||
|
|
b3cd952495 | ||
|
|
a7116c8feb | ||
|
|
05f69b36d1 | ||
|
|
603f0368a5 | ||
|
|
5d381cfb6f | ||
|
|
f4be4d7447 |
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -62,7 +62,7 @@ jobs:
|
||||
echo "TEST_BASE=$(git rev-list -n$((${{ env.MAX_COUNT }} + 1)) --reverse HEAD ^$(git rev-list -n1 --merges HEAD)^@ | head -1)" >> "$GITHUB_ENV"
|
||||
- run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install clang-15 ccache build-essential libtool autotools-dev automake pkg-config bsdmainutils python3-zmq libevent-dev libboost-dev libsqlite3-dev libdb++-dev systemtap-sdt-dev libminiupnpc-dev libnatpmp-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qtwayland5 libqrencode-dev -y
|
||||
sudo apt-get install clang-15 ccache build-essential libtool autotools-dev automake pkg-config bsdmainutils python3-zmq libevent-dev libboost-dev libsqlite3-dev libdb++-dev systemtap-sdt-dev libminiupnpc-dev libnatpmp-dev qtbase5-dev qttools5-dev qttools5-dev-tools qtwayland5 libqrencode-dev -y
|
||||
- name: Compile and run tests
|
||||
run: |
|
||||
# Run tests on commits after the last merge commit and before the PR head commit
|
||||
@@ -96,7 +96,10 @@ jobs:
|
||||
- name: Install Homebrew packages
|
||||
env:
|
||||
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
|
||||
run: brew install automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq qt@5 qrencode
|
||||
run: |
|
||||
# A workaround for "The `brew link` step did not complete successfully" error.
|
||||
brew install python@3 || brew link --overwrite python@3
|
||||
brew install automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq qt@5 qrencode
|
||||
|
||||
- name: Set Ccache directory
|
||||
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
|
||||
|
||||
@@ -66,9 +66,10 @@ Discussion about codebase improvements happens in GitHub issues and pull
|
||||
requests.
|
||||
|
||||
The developer
|
||||
[mailing list](https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev)
|
||||
[mailing list](https://groups.google.com/g/bitcoindev)
|
||||
should be used to discuss complicated or controversial consensus or P2P protocol changes before working on
|
||||
a patch set.
|
||||
Archives can be found on [https://gnusha.org/pi/bitcoindev/](https://gnusha.org/pi/bitcoindev/).
|
||||
|
||||
|
||||
Contributor Workflow
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
export LC_ALL=C.UTF-8
|
||||
|
||||
export HOST=x86_64-apple-darwin
|
||||
export PIP_PACKAGES="zmq"
|
||||
# Homebrew's python@3.12 is marked as externally managed (PEP 668).
|
||||
# Therefore, `--break-system-packages` is needed.
|
||||
export PIP_PACKAGES="--break-system-packages zmq"
|
||||
export GOAL="install"
|
||||
export BITCOIN_CONFIG="--with-gui --with-miniupnpc --with-natpmp --enable-reduce-exports"
|
||||
export CI_OS_NAME="macos"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
export LC_ALL=C.UTF-8
|
||||
|
||||
export CI_IMAGE_NAME_TAG="docker.io/ubuntu:22.04"
|
||||
export CI_IMAGE_NAME_TAG="docker.io/ubuntu:24.04"
|
||||
LIBCXX_DIR="/msan/cxx_build/"
|
||||
export MSAN_FLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -g -O1 -fno-optimize-sibling-calls"
|
||||
LIBCXX_FLAGS="-nostdinc++ -nostdlib++ -isystem ${LIBCXX_DIR}include/c++/v1 -L${LIBCXX_DIR}lib -Wl,-rpath,${LIBCXX_DIR}lib -lc++ -lc++abi -lpthread -Wno-unused-command-line-argument"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
export LC_ALL=C.UTF-8
|
||||
|
||||
export CI_IMAGE_NAME_TAG="docker.io/ubuntu:22.04"
|
||||
export CI_IMAGE_NAME_TAG="docker.io/ubuntu:24.04"
|
||||
LIBCXX_DIR="/msan/cxx_build/"
|
||||
export MSAN_FLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -g -O1 -fno-optimize-sibling-calls"
|
||||
LIBCXX_FLAGS="-nostdinc++ -nostdlib++ -isystem ${LIBCXX_DIR}include/c++/v1 -L${LIBCXX_DIR}lib -Wl,-rpath,${LIBCXX_DIR}lib -lc++ -lc++abi -lpthread -Wno-unused-command-line-argument"
|
||||
|
||||
@@ -9,7 +9,7 @@ export LC_ALL=C.UTF-8
|
||||
export CI_IMAGE_NAME_TAG="docker.io/ubuntu:24.04"
|
||||
export CONTAINER_NAME=ci_native_tidy
|
||||
export TIDY_LLVM_V="17"
|
||||
export PACKAGES="clang-${TIDY_LLVM_V} libclang-${TIDY_LLVM_V}-dev llvm-${TIDY_LLVM_V}-dev libomp-${TIDY_LLVM_V}-dev clang-tidy-${TIDY_LLVM_V} jq bear libevent-dev libboost-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev systemtap-sdt-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libqrencode-dev libsqlite3-dev libdb++-dev"
|
||||
export PACKAGES="clang-${TIDY_LLVM_V} libclang-${TIDY_LLVM_V}-dev llvm-${TIDY_LLVM_V}-dev libomp-${TIDY_LLVM_V}-dev clang-tidy-${TIDY_LLVM_V} jq bear libevent-dev libboost-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev systemtap-sdt-dev qtbase5-dev qttools5-dev qttools5-dev-tools libqrencode-dev libsqlite3-dev libdb++-dev"
|
||||
export NO_DEPENDS=1
|
||||
export RUN_UNIT_TESTS=false
|
||||
export RUN_FUNCTIONAL_TESTS=false
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Copyright (c) 2018-2022 The Bitcoin Core developers
|
||||
# Copyright (c) 2018-present The Bitcoin Core developers
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
@@ -36,7 +36,7 @@ if [ -n "$PIP_PACKAGES" ]; then
|
||||
fi
|
||||
|
||||
if [[ ${USE_MEMORY_SANITIZER} == "true" ]]; then
|
||||
${CI_RETRY_EXE} git clone --depth=1 https://github.com/llvm/llvm-project -b llvmorg-17.0.6 /msan/llvm-project
|
||||
${CI_RETRY_EXE} git clone --depth=1 https://github.com/llvm/llvm-project -b "llvmorg-18.1.1" /msan/llvm-project
|
||||
|
||||
cmake -G Ninja -B /msan/clang_build/ \
|
||||
-DLLVM_ENABLE_PROJECTS="clang" \
|
||||
@@ -53,13 +53,14 @@ if [[ ${USE_MEMORY_SANITIZER} == "true" ]]; then
|
||||
update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /msan/clang_build/bin/llvm-symbolizer 100
|
||||
|
||||
cmake -G Ninja -B /msan/cxx_build/ \
|
||||
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi' \
|
||||
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DLLVM_USE_SANITIZER=MemoryWithOrigins \
|
||||
-DCMAKE_C_COMPILER=clang \
|
||||
-DCMAKE_CXX_COMPILER=clang++ \
|
||||
-DLLVM_TARGETS_TO_BUILD=Native \
|
||||
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
|
||||
-DLIBCXXABI_USE_LLVM_UNWINDER=OFF \
|
||||
-DLIBCXX_HARDENING_MODE=debug \
|
||||
-S /msan/llvm-project/runtimes
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ set -ex
|
||||
|
||||
export ASAN_OPTIONS="detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1"
|
||||
export LSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/lsan"
|
||||
export TSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/tsan:halt_on_error=1:log_path=${BASE_SCRATCH_DIR}/sanitizer-output/tsan"
|
||||
export TSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/tsan:halt_on_error=1"
|
||||
export UBSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1"
|
||||
|
||||
if [ "$CI_OS_NAME" == "macos" ]; then
|
||||
@@ -71,8 +71,6 @@ elif [ "$RUN_UNIT_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]
|
||||
fi
|
||||
fi
|
||||
|
||||
mkdir -p "${BASE_SCRATCH_DIR}/sanitizer-output/"
|
||||
|
||||
if [ "$USE_BUSY_BOX" = "true" ]; then
|
||||
echo "Setup to use BusyBox utils"
|
||||
# tar excluded for now because it requires passing in the exact archive type in ./depends (fixed in later BusyBox version)
|
||||
|
||||
@@ -2,7 +2,7 @@ AC_PREREQ([2.69])
|
||||
define(_CLIENT_VERSION_MAJOR, 27)
|
||||
define(_CLIENT_VERSION_MINOR, 0)
|
||||
define(_CLIENT_VERSION_BUILD, 0)
|
||||
define(_CLIENT_VERSION_RC, 1)
|
||||
define(_CLIENT_VERSION_RC, 0)
|
||||
define(_CLIENT_VERSION_IS_RELEASE, true)
|
||||
define(_COPYRIGHT_YEAR, 2024)
|
||||
define(_COPYRIGHT_HOLDERS,[The %s developers])
|
||||
|
||||
@@ -81,7 +81,7 @@ To build without GUI pass `--without-gui`.
|
||||
|
||||
To build with Qt 5 you need the following:
|
||||
|
||||
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools
|
||||
sudo apt-get install qtbase5-dev qttools5-dev qttools5-dev-tools
|
||||
|
||||
Additionally, to support Wayland protocol for modern desktop environments:
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ related to the DNS seed operation.
|
||||
If these expectations cannot be satisfied the operator should
|
||||
discontinue providing services and contact the active Bitcoin
|
||||
Core development team as well as posting on
|
||||
[bitcoin-dev](https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev).
|
||||
[bitcoin-dev](https://groups.google.com/g/bitcoindev).
|
||||
|
||||
Behavior outside of these expectations may be reasonable in some
|
||||
situations but should be discussed in public in advance.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
|
||||
.TH BITCOIN-CLI "1" "March 2024" "bitcoin-cli v27.0.0rc1" "User Commands"
|
||||
.TH BITCOIN-CLI "1" "April 2024" "bitcoin-cli v27.0.0" "User Commands"
|
||||
.SH NAME
|
||||
bitcoin-cli \- manual page for bitcoin-cli v27.0.0rc1
|
||||
bitcoin-cli \- manual page for bitcoin-cli v27.0.0
|
||||
.SH SYNOPSIS
|
||||
.B bitcoin-cli
|
||||
[\fI\,options\/\fR] \fI\,<command> \/\fR[\fI\,params\/\fR] \fI\,Send command to Bitcoin Core\/\fR
|
||||
@@ -15,7 +15,7 @@ bitcoin-cli \- manual page for bitcoin-cli v27.0.0rc1
|
||||
.B bitcoin-cli
|
||||
[\fI\,options\/\fR] \fI\,help <command> Get help for a command\/\fR
|
||||
.SH DESCRIPTION
|
||||
Bitcoin Core RPC client version v27.0.0rc1
|
||||
Bitcoin Core RPC client version v27.0.0
|
||||
.SH OPTIONS
|
||||
.HP
|
||||
\-?
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
|
||||
.TH BITCOIN-QT "1" "March 2024" "bitcoin-qt v27.0.0rc1" "User Commands"
|
||||
.TH BITCOIN-QT "1" "April 2024" "bitcoin-qt v27.0.0" "User Commands"
|
||||
.SH NAME
|
||||
bitcoin-qt \- manual page for bitcoin-qt v27.0.0rc1
|
||||
bitcoin-qt \- manual page for bitcoin-qt v27.0.0
|
||||
.SH SYNOPSIS
|
||||
.B bitcoin-qt
|
||||
[\fI\,command-line options\/\fR] [\fI\,URI\/\fR]
|
||||
.SH DESCRIPTION
|
||||
Bitcoin Core version v27.0.0rc1
|
||||
Bitcoin Core version v27.0.0
|
||||
.PP
|
||||
Optional URI is a Bitcoin address in BIP21 URI format.
|
||||
.SH OPTIONS
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
|
||||
.TH BITCOIN-TX "1" "March 2024" "bitcoin-tx v27.0.0rc1" "User Commands"
|
||||
.TH BITCOIN-TX "1" "April 2024" "bitcoin-tx v27.0.0" "User Commands"
|
||||
.SH NAME
|
||||
bitcoin-tx \- manual page for bitcoin-tx v27.0.0rc1
|
||||
bitcoin-tx \- manual page for bitcoin-tx v27.0.0
|
||||
.SH SYNOPSIS
|
||||
.B bitcoin-tx
|
||||
[\fI\,options\/\fR] \fI\,<hex-tx> \/\fR[\fI\,commands\/\fR] \fI\,Update hex-encoded bitcoin transaction\/\fR
|
||||
@@ -9,7 +9,7 @@ bitcoin-tx \- manual page for bitcoin-tx v27.0.0rc1
|
||||
.B bitcoin-tx
|
||||
[\fI\,options\/\fR] \fI\,-create \/\fR[\fI\,commands\/\fR] \fI\,Create hex-encoded bitcoin transaction\/\fR
|
||||
.SH DESCRIPTION
|
||||
Bitcoin Core bitcoin\-tx utility version v27.0.0rc1
|
||||
Bitcoin Core bitcoin\-tx utility version v27.0.0
|
||||
.SH OPTIONS
|
||||
.HP
|
||||
\-?
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
|
||||
.TH BITCOIN-UTIL "1" "March 2024" "bitcoin-util v27.0.0rc1" "User Commands"
|
||||
.TH BITCOIN-UTIL "1" "April 2024" "bitcoin-util v27.0.0" "User Commands"
|
||||
.SH NAME
|
||||
bitcoin-util \- manual page for bitcoin-util v27.0.0rc1
|
||||
bitcoin-util \- manual page for bitcoin-util v27.0.0
|
||||
.SH SYNOPSIS
|
||||
.B bitcoin-util
|
||||
[\fI\,options\/\fR] [\fI\,commands\/\fR] \fI\,Do stuff\/\fR
|
||||
.SH DESCRIPTION
|
||||
Bitcoin Core bitcoin\-util utility version v27.0.0rc1
|
||||
Bitcoin Core bitcoin\-util utility version v27.0.0
|
||||
.SH OPTIONS
|
||||
.HP
|
||||
\-?
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
|
||||
.TH BITCOIN-WALLET "1" "March 2024" "bitcoin-wallet v27.0.0rc1" "User Commands"
|
||||
.TH BITCOIN-WALLET "1" "April 2024" "bitcoin-wallet v27.0.0" "User Commands"
|
||||
.SH NAME
|
||||
bitcoin-wallet \- manual page for bitcoin-wallet v27.0.0rc1
|
||||
bitcoin-wallet \- manual page for bitcoin-wallet v27.0.0
|
||||
.SH DESCRIPTION
|
||||
Bitcoin Core bitcoin\-wallet version v27.0.0rc1
|
||||
Bitcoin Core bitcoin\-wallet version v27.0.0
|
||||
.PP
|
||||
bitcoin\-wallet is an offline tool for creating and interacting with Bitcoin Core wallet files.
|
||||
By default bitcoin\-wallet will act on wallets in the default mainnet wallet directory in the datadir.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
|
||||
.TH BITCOIND "1" "March 2024" "bitcoind v27.0.0rc1" "User Commands"
|
||||
.TH BITCOIND "1" "April 2024" "bitcoind v27.0.0" "User Commands"
|
||||
.SH NAME
|
||||
bitcoind \- manual page for bitcoind v27.0.0rc1
|
||||
bitcoind \- manual page for bitcoind v27.0.0
|
||||
.SH SYNOPSIS
|
||||
.B bitcoind
|
||||
[\fI\,options\/\fR] \fI\,Start Bitcoin Core\/\fR
|
||||
.SH DESCRIPTION
|
||||
Bitcoin Core version v27.0.0rc1
|
||||
Bitcoin Core version v27.0.0
|
||||
.SH OPTIONS
|
||||
.HP
|
||||
\-?
|
||||
|
||||
@@ -1 +1,217 @@
|
||||
See https://github.com/bitcoin-core/bitcoin-devwiki/wiki/27.0-Release-Notes-Draft
|
||||
Bitcoin Core version 27.0 is now available from:
|
||||
|
||||
<https://bitcoincore.org/bin/bitcoin-core-27.0/>
|
||||
|
||||
This release includes new features, various bug fixes and performance
|
||||
improvements, as well as updated translations.
|
||||
|
||||
Please report bugs using the issue tracker at GitHub:
|
||||
|
||||
<https://github.com/bitcoin/bitcoin/issues>
|
||||
|
||||
To receive security and update notifications, please subscribe to:
|
||||
|
||||
<https://bitcoincore.org/en/list/announcements/join/>
|
||||
|
||||
How to Upgrade
|
||||
==============
|
||||
|
||||
If you are running an older version, shut it down. Wait until it has completely
|
||||
shut down (which might take a few minutes in some cases), then run the
|
||||
installer (on Windows) or just copy over `/Applications/Bitcoin-Qt` (on macOS)
|
||||
or `bitcoind`/`bitcoin-qt` (on Linux).
|
||||
|
||||
Upgrading directly from a version of Bitcoin Core that has reached its EOL is
|
||||
possible, but it might take some time if the data directory needs to be migrated. Old
|
||||
wallet versions of Bitcoin Core are generally supported.
|
||||
|
||||
Compatibility
|
||||
==============
|
||||
|
||||
Bitcoin Core is supported and extensively tested on operating systems
|
||||
using the Linux Kernel 3.17+, macOS 11.0+, and Windows 7 and newer. Bitcoin
|
||||
Core should also work on most other Unix-like systems but is not as
|
||||
frequently tested on them. It is not recommended to use Bitcoin Core on
|
||||
unsupported systems.
|
||||
|
||||
Notable changes
|
||||
===============
|
||||
|
||||
libbitcoinconsensus
|
||||
-------------------
|
||||
|
||||
- libbitcoinconsensus is deprecated and will be removed for v28. This library has
|
||||
existed for nearly 10 years with very little known uptake or impact. It has
|
||||
become a maintenance burden.
|
||||
|
||||
The underlying functionality does not change between versions, so any users of
|
||||
the library can continue to use the final release indefinitely, with the
|
||||
understanding that Taproot is its final consensus update.
|
||||
|
||||
In the future, libbitcoinkernel will provide a much more useful API that is
|
||||
aware of the UTXO set, and therefore be able to fully validate transactions and
|
||||
blocks. (#29189)
|
||||
|
||||
mempool.dat compatibility
|
||||
-------------------------
|
||||
|
||||
- The `mempool.dat` file created by -persistmempool or the savemempool RPC will
|
||||
be written in a new format. This new format includes the XOR'ing of transaction
|
||||
contents to mitigate issues where external programs (such as anti-virus) attempt
|
||||
to interpret and potentially modify the file.
|
||||
|
||||
This new format can not be read by previous software releases. To allow for a
|
||||
downgrade, a temporary setting `-persistmempoolv1` has been added to fall back
|
||||
to the legacy format. (#28207)
|
||||
|
||||
P2P and network changes
|
||||
-----------------------
|
||||
|
||||
- BIP324 v2 transport is now enabled by default. It remains possible to disable v2
|
||||
by running with `-v2transport=0`. (#29347)
|
||||
- Manual connection options (`-connect`, `-addnode` and `-seednode`) will
|
||||
now follow `-v2transport` to connect with v2 by default. They will retry with
|
||||
v1 on failure. (#29058)
|
||||
|
||||
- Network-adjusted time has been removed from consensus code. It is replaced
|
||||
with (unadjusted) system time. The warning for a large median time offset
|
||||
(70 minutes or more) is kept. This removes the implicit security assumption of
|
||||
requiring an honest majority of outbound peers, and increases the importance
|
||||
of the node operator ensuring their system time is (and stays) correct to not
|
||||
fall out of consensus with the network. (#28956)
|
||||
|
||||
Mempool Policy Changes
|
||||
----------------------
|
||||
|
||||
- Opt-in Topologically Restricted Until Confirmation (TRUC) Transactions policy
|
||||
(aka v3 transaction policy) is available for use on test networks when
|
||||
`-acceptnonstdtxn=1` is set. By setting the transaction version number to 3, TRUC transactions
|
||||
request the application of limits on spending of their unconfirmed outputs. These
|
||||
restrictions simplify the assessment of incentive compatibility of accepting or
|
||||
replacing TRUC transactions, thus ensuring any replacements are more profitable for
|
||||
the node and making fee-bumping more reliable. TRUC transactions are currently
|
||||
nonstandard and can only be used on test networks where the standardness rules are
|
||||
relaxed or disabled (e.g. with `-acceptnonstdtxn=1`). (#28948)
|
||||
|
||||
External Signing
|
||||
----------------
|
||||
|
||||
- Support for external signing on Windows has been disabled. It will be re-enabled
|
||||
once the underlying dependency (Boost Process), has been replaced with a different
|
||||
library. (#28967)
|
||||
|
||||
Updated RPCs
|
||||
------------
|
||||
|
||||
- The addnode RPC now follows the `-v2transport` option (now on by default, see above) for making connections.
|
||||
It remains possible to specify the transport type manually with the v2transport argument of addnode. (#29239)
|
||||
|
||||
Build System
|
||||
------------
|
||||
|
||||
- A C++20 capable compiler is now required to build Bitcoin Core. (#28349)
|
||||
- MacOS releases are configured to use the hardened runtime libraries (#29127)
|
||||
|
||||
Wallet
|
||||
------
|
||||
|
||||
- The CoinGrinder coin selection algorithm has been introduced to mitigate unnecessary
|
||||
large input sets and lower transaction costs at high feerates. CoinGrinder
|
||||
searches for the input set with minimal weight. Solutions found by
|
||||
CoinGrinder will produce a change output. CoinGrinder is only active at
|
||||
elevated feerates (default: 30+ sat/vB, based on `-consolidatefeerate`×3). (#27877)
|
||||
- The Branch And Bound coin selection algorithm will be disabled when the subtract fee
|
||||
from outputs feature is used. (#28994)
|
||||
- If the birth time of a descriptor is detected to be later than the first transaction
|
||||
involving that descriptor, the birth time will be reset to the earlier time. (#28920)
|
||||
|
||||
Low-level changes
|
||||
=================
|
||||
|
||||
Pruning
|
||||
-------
|
||||
|
||||
- When pruning during initial block download, more blocks will be pruned at each
|
||||
flush in order to speed up the syncing of such nodes. (#20827)
|
||||
|
||||
Init
|
||||
----
|
||||
|
||||
- Various fixes to prevent issues where subsequent instances of Bitcoin Core would
|
||||
result in deletion of files in use by an existing instance. (#28784, #28946)
|
||||
- Improved handling of empty `settings.json` files. (#29144)
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Thanks to everyone who directly contributed to this release:
|
||||
|
||||
- 22388o⚡️
|
||||
- Aaron Clauson
|
||||
- Amiti Uttarwar
|
||||
- Andrew Toth
|
||||
- Anthony Towns
|
||||
- Antoine Poinsot
|
||||
- Ava Chow
|
||||
- Brandon Odiwuor
|
||||
- brunoerg
|
||||
- Chris Stewart
|
||||
- Cory Fields
|
||||
- dergoegge
|
||||
- djschnei21
|
||||
- Fabian Jahr
|
||||
- fanquake
|
||||
- furszy
|
||||
- Gloria Zhao
|
||||
- Greg Sanders
|
||||
- Hennadii Stepanov
|
||||
- Hernan Marino
|
||||
- iamcarlos94
|
||||
- ismaelsadeeq
|
||||
- Jameson Lopp
|
||||
- Jesse Barton
|
||||
- John Moffett
|
||||
- Jon Atack
|
||||
- josibake
|
||||
- jrakibi
|
||||
- Justin Dhillon
|
||||
- Kashif Smith
|
||||
- kevkevin
|
||||
- Kristaps Kaupe
|
||||
- L0la L33tz
|
||||
- Luke Dashjr
|
||||
- Lőrinc
|
||||
- marco
|
||||
- MarcoFalke
|
||||
- Mark Friedenbach
|
||||
- Marnix
|
||||
- Martin Leitner-Ankerl
|
||||
- Martin Zumsande
|
||||
- Max Edwards
|
||||
- Murch
|
||||
- muxator
|
||||
- naiyoma
|
||||
- Nikodemas Tuckus
|
||||
- ns-xvrn
|
||||
- pablomartin4btc
|
||||
- Peter Todd
|
||||
- Pieter Wuille
|
||||
- Richard Myers
|
||||
- Roman Zeyde
|
||||
- Russell Yanofsky
|
||||
- Ryan Ofsky
|
||||
- Sebastian Falbesoner
|
||||
- Sergi Delgado Segura
|
||||
- Sjors Provoost
|
||||
- stickies-v
|
||||
- stratospher
|
||||
- Supachai Kheawjuy
|
||||
- TheCharlatan
|
||||
- UdjinM6
|
||||
- Vasil Dimov
|
||||
- w0xlt
|
||||
- willcl-ark
|
||||
|
||||
|
||||
As well as to everyone that helped with translations on
|
||||
[Transifex](https://www.transifex.com/bitcoin/bitcoin/).
|
||||
|
||||
@@ -37,6 +37,7 @@ uint64_t TestDouble(double f) {
|
||||
} // namespace
|
||||
|
||||
BOOST_AUTO_TEST_CASE(double_serfloat_tests) {
|
||||
// Test specific values against their expected encoding.
|
||||
BOOST_CHECK_EQUAL(TestDouble(0.0), 0U);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-0.0), 0x8000000000000000);
|
||||
BOOST_CHECK_EQUAL(TestDouble(std::numeric_limits<double>::infinity()), 0x7ff0000000000000U);
|
||||
@@ -46,55 +47,76 @@ BOOST_AUTO_TEST_CASE(double_serfloat_tests) {
|
||||
BOOST_CHECK_EQUAL(TestDouble(2.0), 0x4000000000000000ULL);
|
||||
BOOST_CHECK_EQUAL(TestDouble(4.0), 0x4010000000000000ULL);
|
||||
BOOST_CHECK_EQUAL(TestDouble(785.066650390625), 0x4088888880000000ULL);
|
||||
BOOST_CHECK_EQUAL(TestDouble(3.7243058682384174), 0x400dcb60e0031440);
|
||||
BOOST_CHECK_EQUAL(TestDouble(91.64070592566159), 0x4056e901536d447a);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-98.63087668642575), 0xc058a860489c007a);
|
||||
BOOST_CHECK_EQUAL(TestDouble(4.908737756962054), 0x4013a28c268b2b70);
|
||||
BOOST_CHECK_EQUAL(TestDouble(77.9247330021754), 0x40537b2ed3547804);
|
||||
BOOST_CHECK_EQUAL(TestDouble(40.24732825357566), 0x40441fa873c43dfc);
|
||||
BOOST_CHECK_EQUAL(TestDouble(71.39395607929222), 0x4051d936938f27b6);
|
||||
BOOST_CHECK_EQUAL(TestDouble(58.80100710817612), 0x404d668766a2bd70);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-30.10665786964975), 0xc03e1b4dee1e01b8);
|
||||
BOOST_CHECK_EQUAL(TestDouble(60.15231509068704), 0x404e137f0f969814);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-48.15848711335961), 0xc04814494e445bc6);
|
||||
BOOST_CHECK_EQUAL(TestDouble(26.68450101125353), 0x403aaf3b755169b0);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-65.72071986604303), 0xc0506e2046378ede);
|
||||
BOOST_CHECK_EQUAL(TestDouble(17.95575825512381), 0x4031f4ac92b0a388);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-35.27171863226279), 0xc041a2c7ad17a42a);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-8.58810329425124), 0xc0212d1bdffef538);
|
||||
BOOST_CHECK_EQUAL(TestDouble(88.51393044338977), 0x405620e43c83b1c8);
|
||||
BOOST_CHECK_EQUAL(TestDouble(48.07224932612732), 0x4048093f77466ffc);
|
||||
BOOST_CHECK_EQUAL(TestDouble(9.867348871395659e+117), 0x586f4daeb2459b9f);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-1.5166424385129721e+206), 0xeabe3bbc484bd458);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-8.585156555624594e-275), 0x8707c76eee012429);
|
||||
BOOST_CHECK_EQUAL(TestDouble(2.2794371091628822e+113), 0x5777b2184458f4ee);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-1.1290476594131867e+163), 0xe1c91893d3488bb0);
|
||||
BOOST_CHECK_EQUAL(TestDouble(9.143848423979275e-246), 0x0d0ff76e5f2620a3);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-2.8366718125941117e+81), 0xd0d7ec7e754b394a);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-1.2754409481684012e+229), 0xef80d32f8ec55342);
|
||||
BOOST_CHECK_EQUAL(TestDouble(6.000577060053642e-186), 0x197a1be7c8209b6a);
|
||||
BOOST_CHECK_EQUAL(TestDouble(2.0839423284378986e-302), 0x014c94f8689cb0a5);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-1.422140051483753e+259), 0xf5bd99271d04bb35);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-1.0593973991188853e+46), 0xc97db0cdb72d1046);
|
||||
BOOST_CHECK_EQUAL(TestDouble(2.62945125875249e+190), 0x67779b36366c993b);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-2.920377657275094e+115), 0xd7e7b7b45908e23b);
|
||||
BOOST_CHECK_EQUAL(TestDouble(9.790289014855851e-118), 0x27a3c031cc428bcc);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-4.629317182034961e-114), 0xa866ccf0b753705a);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-1.7674605603846528e+279), 0xf9e8ed383ffc3e25);
|
||||
BOOST_CHECK_EQUAL(TestDouble(2.5308171727712605e+120), 0x58ef5cd55f0ec997);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-1.05034156412799e+54), 0xcb25eea1b9350fa0);
|
||||
|
||||
// Roundtrip test on IEC559-compatible systems
|
||||
if (std::numeric_limits<double>::is_iec559) {
|
||||
BOOST_CHECK_EQUAL(sizeof(double), 8U);
|
||||
BOOST_CHECK_EQUAL(sizeof(uint64_t), 8U);
|
||||
// Test extreme values
|
||||
TestDouble(std::numeric_limits<double>::min());
|
||||
TestDouble(-std::numeric_limits<double>::min());
|
||||
TestDouble(std::numeric_limits<double>::max());
|
||||
TestDouble(-std::numeric_limits<double>::max());
|
||||
TestDouble(std::numeric_limits<double>::lowest());
|
||||
TestDouble(-std::numeric_limits<double>::lowest());
|
||||
TestDouble(std::numeric_limits<double>::quiet_NaN());
|
||||
TestDouble(-std::numeric_limits<double>::quiet_NaN());
|
||||
TestDouble(std::numeric_limits<double>::signaling_NaN());
|
||||
TestDouble(-std::numeric_limits<double>::signaling_NaN());
|
||||
TestDouble(std::numeric_limits<double>::denorm_min());
|
||||
TestDouble(-std::numeric_limits<double>::denorm_min());
|
||||
// Test exact encoding: on currently supported platforms, EncodeDouble
|
||||
// should produce exactly the same as the in-memory representation for non-NaN.
|
||||
for (int j = 0; j < 1000; ++j) {
|
||||
// Iterate over 9 specific bits exhaustively; the others are chosen randomly.
|
||||
// These specific bits are the sign bit, and the 2 top and bottom bits of
|
||||
// exponent and mantissa in the IEEE754 binary64 format.
|
||||
for (int x = 0; x < 512; ++x) {
|
||||
uint64_t v = InsecureRandBits(64);
|
||||
v &= ~(uint64_t{1} << 0);
|
||||
if (x & 1) v |= (uint64_t{1} << 0);
|
||||
v &= ~(uint64_t{1} << 1);
|
||||
if (x & 2) v |= (uint64_t{1} << 1);
|
||||
v &= ~(uint64_t{1} << 50);
|
||||
if (x & 4) v |= (uint64_t{1} << 50);
|
||||
v &= ~(uint64_t{1} << 51);
|
||||
if (x & 8) v |= (uint64_t{1} << 51);
|
||||
v &= ~(uint64_t{1} << 52);
|
||||
if (x & 16) v |= (uint64_t{1} << 52);
|
||||
v &= ~(uint64_t{1} << 53);
|
||||
if (x & 32) v |= (uint64_t{1} << 53);
|
||||
v &= ~(uint64_t{1} << 61);
|
||||
if (x & 64) v |= (uint64_t{1} << 61);
|
||||
v &= ~(uint64_t{1} << 62);
|
||||
if (x & 128) v |= (uint64_t{1} << 62);
|
||||
v &= ~(uint64_t{1} << 63);
|
||||
if (x & 256) v |= (uint64_t{1} << 63);
|
||||
double f;
|
||||
memcpy(&f, &v, 8);
|
||||
uint64_t v2 = TestDouble(f);
|
||||
if (!std::isnan(f)) BOOST_CHECK_EQUAL(v, v2);
|
||||
// Test extreme values
|
||||
BOOST_CHECK_EQUAL(TestDouble(std::numeric_limits<double>::min()), 0x10000000000000);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-std::numeric_limits<double>::min()), 0x8010000000000000);
|
||||
BOOST_CHECK_EQUAL(TestDouble(std::numeric_limits<double>::max()), 0x7fefffffffffffff);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-std::numeric_limits<double>::max()), 0xffefffffffffffff);
|
||||
BOOST_CHECK_EQUAL(TestDouble(std::numeric_limits<double>::lowest()), 0xffefffffffffffff);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-std::numeric_limits<double>::lowest()), 0x7fefffffffffffff);
|
||||
BOOST_CHECK_EQUAL(TestDouble(std::numeric_limits<double>::denorm_min()), 0x1);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-std::numeric_limits<double>::denorm_min()), 0x8000000000000001);
|
||||
// Note that all NaNs are encoded the same way.
|
||||
BOOST_CHECK_EQUAL(TestDouble(std::numeric_limits<double>::quiet_NaN()), 0x7ff8000000000000);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-std::numeric_limits<double>::quiet_NaN()), 0x7ff8000000000000);
|
||||
BOOST_CHECK_EQUAL(TestDouble(std::numeric_limits<double>::signaling_NaN()), 0x7ff8000000000000);
|
||||
BOOST_CHECK_EQUAL(TestDouble(-std::numeric_limits<double>::signaling_NaN()), 0x7ff8000000000000);
|
||||
|
||||
// Construct doubles to test from the encoding.
|
||||
static_assert(sizeof(double) == 8);
|
||||
static_assert(sizeof(uint64_t) == 8);
|
||||
for (int j = 0; j < 1000; ++j) {
|
||||
// Iterate over 9 specific bits exhaustively; the others are chosen randomly.
|
||||
// These specific bits are the sign bit, and the 2 top and bottom bits of
|
||||
// exponent and mantissa in the IEEE754 binary64 format.
|
||||
for (int x = 0; x < 512; ++x) {
|
||||
uint64_t v = InsecureRandBits(64);
|
||||
int x_pos = 0;
|
||||
for (int v_pos : {0, 1, 50, 51, 52, 53, 61, 62, 63}) {
|
||||
v &= ~(uint64_t{1} << v_pos);
|
||||
if ((x >> (x_pos++)) & 1) v |= (uint64_t{1} << v_pos);
|
||||
}
|
||||
double f;
|
||||
memcpy(&f, &v, 8);
|
||||
TestDouble(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user