Skip to content

Commit 9aacb02

Browse files
committed
Merge branch 'bitcoin' into auxpow
2 parents d0d925a + 48cf3da commit 9aacb02

File tree

126 files changed

+945
-659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+945
-659
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
# Run tests on commits after the last merge commit and before the PR head commit
7474
# Use clang++, because it is a bit faster and uses less memory than g++
75-
git rebase --exec "echo Running test-one-commit on \$( git log -1 ) && CC=clang CXX=clang++ cmake -B build -DWITH_ZMQ=ON -DBUILD_GUI=ON -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWITH_BDB=ON -DWITH_MINIUPNPC=ON -DWITH_USDT=ON && cmake --build build -j $(nproc) && ctest --test-dir build -j $(nproc) && ./build/test/functional/test_runner.py -j $(( $(nproc) * 2 ))" ${{ env.TEST_BASE }}
75+
git rebase --exec "echo Running test-one-commit on \$( git log -1 ) && CC=clang CXX=clang++ cmake -B build -DWERROR=ON -DWITH_ZMQ=ON -DBUILD_GUI=ON -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWITH_BDB=ON -DWITH_MINIUPNPC=ON -DWITH_USDT=ON && cmake --build build -j $(nproc) && ctest --test-dir build -j $(nproc) && ./build/test/functional/test_runner.py -j $(( $(nproc) * 2 ))" ${{ env.TEST_BASE }}
7676
7777
macos-native-arm64:
7878
name: 'macOS 14 native, arm64, no depends, sqlite only, gui'
@@ -105,7 +105,7 @@ jobs:
105105
run: |
106106
# A workaround for "The `brew link` step did not complete successfully" error.
107107
brew install --quiet python@3 || brew link --overwrite python@3
108-
brew install --quiet ninja pkg-config gnu-getopt ccache boost libevent miniupnpc zeromq qt@5 qrencode
108+
brew install --quiet coreutils ninja pkg-config gnu-getopt ccache boost libevent miniupnpc zeromq qt@5 qrencode
109109
110110
- name: Set Ccache directory
111111
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ if(BUILD_GUI)
177177
if(BUILD_GUI_TESTS)
178178
list(APPEND qt_components Test)
179179
endif()
180-
find_package(Qt5 5.11.3 MODULE REQUIRED
180+
find_package(Qt 5.11.3 MODULE REQUIRED
181181
COMPONENTS ${qt_components}
182182
)
183183
unset(qt_components)

ci/test/03_test_script.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ export LSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/l
1313
export TSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/tsan:halt_on_error=1"
1414
export UBSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1"
1515

16+
echo "Number of available processing units: $(nproc)"
1617
if [ "$CI_OS_NAME" == "macos" ]; then
1718
top -l 1 -s 0 | awk ' /PhysMem/ {print}'
18-
echo "Number of CPUs: $(sysctl -n hw.logicalcpu)"
1919
else
2020
free -m -h
21-
echo "Number of CPUs (nproc): $(nproc)"
2221
echo "System info: $(uname --kernel-name --kernel-release)"
2322
lscpu
2423
fi
@@ -146,7 +145,7 @@ if [ "$RUN_CHECK_DEPS" = "true" ]; then
146145
fi
147146

148147
if [ "$RUN_UNIT_TESTS" = "true" ]; then
149-
DIR_UNIT_TEST_DATA="${DIR_UNIT_TEST_DATA}" LD_LIBRARY_PATH="${DEPENDS_DIR}/${HOST}/lib" CTEST_OUTPUT_ON_FAILURE=ON ctest "${MAKEJOBS}"
148+
DIR_UNIT_TEST_DATA="${DIR_UNIT_TEST_DATA}" LD_LIBRARY_PATH="${DEPENDS_DIR}/${HOST}/lib" CTEST_OUTPUT_ON_FAILURE=ON ctest "${MAKEJOBS}" --timeout $(( TEST_RUNNER_TIMEOUT_FACTOR * 60 ))
150149
fi
151150

152151
if [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]; then
File renamed without changes.

cmake/introspection.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include(CheckCXXSourceCompiles)
66
include(CheckCXXSymbolExists)
77
include(CheckIncludeFileCXX)
88

9-
# The following HAVE_{HEADER}_H variables go to the bitcoin-config.h header.
9+
# The following HAVE_{HEADER}_H variables go to the bitcoin-build-config.h header.
1010
check_include_file_cxx(sys/prctl.h HAVE_SYS_PRCTL_H)
1111
check_include_file_cxx(sys/resources.h HAVE_SYS_RESOURCES_H)
1212
check_include_file_cxx(sys/vmmeter.h HAVE_SYS_VMMETER_H)

cmake/module/FindQt5.cmake renamed to cmake/module/FindQt.cmake

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# file COPYING or https://opensource.org/license/mit/.
44

55
#[=======================================================================[
6-
FindQt5
7-
-------
6+
FindQt
7+
------
88
9-
Finds the Qt 5 headers and libraries.
9+
Finds the Qt headers and libraries.
1010
1111
This is a wrapper around find_package() command that:
1212
- facilitates searching in various build environments
@@ -19,7 +19,7 @@ if(CMAKE_HOST_APPLE)
1919
find_program(HOMEBREW_EXECUTABLE brew)
2020
if(HOMEBREW_EXECUTABLE)
2121
execute_process(
22-
COMMAND ${HOMEBREW_EXECUTABLE} --prefix qt@5
22+
COMMAND ${HOMEBREW_EXECUTABLE} --prefix qt@${Qt_FIND_VERSION_MAJOR}
2323
OUTPUT_VARIABLE _qt_homebrew_prefix
2424
ERROR_QUIET
2525
OUTPUT_STRIP_TRAILING_WHITESPACE
@@ -40,10 +40,10 @@ endif()
4040
# /usr/x86_64-w64-mingw32/lib/libm.a or /usr/arm-linux-gnueabihf/lib/libm.a.
4141
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
4242

43-
find_package(Qt5 ${Qt5_FIND_VERSION}
44-
COMPONENTS ${Qt5_FIND_COMPONENTS}
43+
find_package(Qt${Qt_FIND_VERSION_MAJOR} ${Qt_FIND_VERSION}
44+
COMPONENTS ${Qt_FIND_COMPONENTS}
4545
HINTS ${_qt_homebrew_prefix}
46-
PATH_SUFFIXES Qt5 # Required on OpenBSD systems.
46+
PATH_SUFFIXES Qt${Qt_FIND_VERSION_MAJOR} # Required on OpenBSD systems.
4747
)
4848
unset(_qt_homebrew_prefix)
4949

@@ -56,11 +56,11 @@ else()
5656
endif()
5757

5858
include(FindPackageHandleStandardArgs)
59-
find_package_handle_standard_args(Qt5
60-
REQUIRED_VARS Qt5_DIR
61-
VERSION_VAR Qt5_VERSION
59+
find_package_handle_standard_args(Qt
60+
REQUIRED_VARS Qt${Qt_FIND_VERSION_MAJOR}_DIR
61+
VERSION_VAR Qt${Qt_FIND_VERSION_MAJOR}_VERSION
6262
)
6363

64-
foreach(component IN LISTS Qt5_FIND_COMPONENTS ITEMS "")
65-
mark_as_advanced(Qt5${component}_DIR)
64+
foreach(component IN LISTS Qt_FIND_COMPONENTS ITEMS "")
65+
mark_as_advanced(Qt${Qt_FIND_VERSION_MAJOR}${component}_DIR)
6666
endforeach()

contrib/devtools/check-deps.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ check_disallowed() {
133133
dst_obj=$(obj_names "$symbol" "${temp_dir}/${dst}_exports.txt")
134134
while read src_obj; do
135135
if ! check_suppress "$src_obj" "$dst_obj" "$symbol"; then
136-
echo "Error: $src_obj depends on $dst_obj symbol '$(c++filt "$symbol")', can suppess with:"
136+
echo "Error: $src_obj depends on $dst_obj symbol '$(c++filt "$symbol")', can suppress with:"
137137
echo " SUPPRESS[\"$src_obj $dst_obj $symbol\"]=1"
138138
result=1
139139
fi
@@ -145,7 +145,7 @@ check_disallowed() {
145145
# Declare array to track errors which were suppressed.
146146
declare -A SUPPRESSED
147147

148-
# Return whether error should be suppressed and record suppresssion in
148+
# Return whether error should be suppressed and record suppression in
149149
# SUPPRESSED array.
150150
check_suppress() {
151151
local src_obj="$1"
@@ -161,7 +161,7 @@ check_suppress() {
161161
return 1
162162
}
163163

164-
# Warn about error which were supposed to be suppress, but were not encountered.
164+
# Warn about error which were supposed to be suppressed, but were not encountered.
165165
check_not_suppressed() {
166166
for suppress in "${!SUPPRESS[@]}"; do
167167
if [[ ! -v SUPPRESSED[$suppress] ]]; then

depends/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ $(host_prefix)/.stamp_$(final_build_id): $(native_packages) $(packages)
189189
echo copying packages: $^
190190
echo to: $(@D)
191191
cd $(@D); $(foreach package,$^, $(build_TAR) xf $($(package)_cached); )
192+
echo To build Bitcoin Core with these packages, pass \'--toolchain $(@D)/toolchain.cmake\' to the first CMake invocation.
192193
touch $@
193194

194195
ifeq ($(host),$(build))

depends/hosts/mingw32.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "command -v $(host)-gcc-posix"),)
2+
mingw32_CC := $(host)-gcc-posix
3+
endif
14
ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "command -v $(host)-g++-posix"),)
25
mingw32_CXX := $(host)-g++-posix
36
endif

doc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Bitcoin Core
33

44
Setup
55
---------------------
6-
Bitcoin Core is the original Bitcoin client and it builds the backbone of the network. It downloads and, by default, stores the entire history of Bitcoin transactions, which requires a few hundred gigabytes of disk space. Depending on the speed of your computer and network connection, the synchronization process can take anywhere from a few hours to a day or more.
6+
Bitcoin Core is the original Bitcoin client and it builds the backbone of the network. It downloads and, by default, stores the entire history of Bitcoin transactions, which requires several hundred gigabytes or more of disk space. Depending on the speed of your computer and network connection, the synchronization process can take anywhere from a few hours to several days or more.
77

88
To download Bitcoin Core, visit [bitcoincore.org](https://bitcoincore.org/en/download/).
99

0 commit comments

Comments
 (0)