Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
e8f7232
Merge bitcoin/bitcoin#28452: Do not use std::vector = {} to release m…
fanquake Sep 15, 2023
94a949a
Merge bitcoin/bitcoin#26794: test: test banlist database recreation
DashCoreAutoGuix Jul 24, 2025
c78607e
Merge bitcoin/bitcoin#26924: refactor: Add missing includes to fix gc…
DashCoreAutoGuix Jul 24, 2025
7454cf9
Merge bitcoin/bitcoin#26507: test: remove unused vars in `feature_block`
DashCoreAutoGuix Jul 24, 2025
b418728
Merge bitcoin/bitcoin#25158: rpc, wallet: add abandoned field for all…
DashCoreAutoGuix Jul 24, 2025
b4871f5
Merge bitcoin/bitcoin#24330: doc: release-process: Specify remote nam…
DashCoreAutoGuix Jul 24, 2025
f02283d
Merge bitcoin/bitcoin#24282: docs: Move explanation of hardened key s…
DashCoreAutoGuix Jul 24, 2025
26cd950
Merge bitcoin/bitcoin#24359: doc: Fix typos
DashCoreAutoGuix Jul 24, 2025
024f985
Merge bitcoin/bitcoin#22151: build: Follow Transifex docs to prepare …
DashCoreAutoGuix Jul 24, 2025
a30e6d6
Merge bitcoin/bitcoin#27068: wallet: SecureString to allow null chara…
DashCoreAutoGuix Jul 24, 2025
c3dd813
Merge bitcoin#26119: doc: Move -permitbaremultisig to the relay help …
PastaPastaPasta Jul 25, 2025
ab7169d
Merge bitcoin/bitcoin#27271: RPC: Fix fund transaction crash when at …
DashCoreAutoGuix Jul 25, 2025
28aed29
Merge bitcoin/bitcoin#27124: docs: add ramdisk guide for running test…
DashCoreAutoGuix Jul 26, 2025
01bc738
Merge bitcoin/bitcoin#27073: Convert ArgsManager::GetDataDir to a rea…
DashCoreAutoGuix Jul 26, 2025
5d4ef25
Merge bitcoin/bitcoin#26194: rpc, wallet: use the same `next_index` k…
DashCoreAutoGuix Jul 26, 2025
f682f33
fix: resolve race condition in quorum data recovery thread management
PastaPastaPasta Jul 29, 2025
6176d99
feat: a bit of extra logs when no DB_VVEC in database
knst Jul 27, 2025
06a3efe
fix: intermittent error in functional tests while waiting final quoru…
knst Jul 27, 2025
9dda95e
test: apply default 0.05 delay for wait_for_quorum_commitment
knst Jul 28, 2025
1551739
test: use '0'x96 instead 00000..0
knst Jul 29, 2025
b957ec0
fix: let upgradetohd work for encrypted Descriptor wallets same as le…
knst Jul 18, 2025
b158b0a
refactor: drop unused includes from wallet.cpp
knst Jul 19, 2025
92ec61f
fix: hide multiple useless warnings for default build
knst Jul 26, 2025
1d6b227
fmt: remove extra spaces in configure.ac
knst Jul 26, 2025
2ad06fc
test: remove duplicated code from wallet_mnemonicbits.py by using hel…
knst Jul 17, 2025
634d616
fix: copyright for wallet_upgradetohd.py
knst Jul 17, 2025
b0ec83b
test: make wallet_upgradetohd works for descriptor wallets too
knst Jul 17, 2025
3cfc0d5
test: ensure determinism of addresses for specific mnemonic
knst Jul 17, 2025
73809c1
test: enable --descriptors for wallet_upgradetohd.py
knst Jul 17, 2025
2209779
test: move helper get_mnemonic to test_framework/util
knst Jul 17, 2025
242cbc6
refactor: group all `CheckCbTx*` calls and their timers under one `if…
UdjinM6 Jul 18, 2025
eda39ea
refactor: drop confusing `CheckCbTxMerkleRoots`, move its logic into …
UdjinM6 Jul 22, 2025
916b16f
Merge bitcoin/bitcoin#23897: refactor: Move calculation logic out fro…
DashCoreAutoGuix Jul 26, 2025
9de051b
Merge bitcoin/bitcoin#27221: test: Default timeout factor to 4 under …
DashCoreAutoGuix Jul 26, 2025
ba84f27
Merge bitcoin/bitcoin#25666: refactor: wallet, do not translate init …
fanquake Mar 19, 2023
b5e48b2
Merge bitcoin/bitcoin#27902: fuzz: wallet, add target for `CoinControl`
PastaPastaPasta Jul 26, 2025
e8d4dff
Merge bitcoin/bitcoin#24851: init: ignore BIP-30 verification in Disc…
PastaPastaPasta Jul 26, 2025
54a273f
Merge bitcoin/bitcoin#26321: Adjust `.tx/config` for new Transifex CLI
DashCoreAutoGuix Jul 26, 2025
e79fe14
Merge bitcoin/bitcoin#26259: test: Test year 2106 block timestamps
DashCoreAutoGuix Jul 26, 2025
53646bc
Merge bitcoin/bitcoin#25491: wallet: use Mutex for g_sqlite_mutex ins…
DashCoreAutoGuix Jul 29, 2025
1977c70
test: follow-up #6762 - removed related TODO from functional test
knst Jul 30, 2025
3931770
refactor: shed avoidable casts, follow-up to bitcoin#25611
knst Jul 31, 2025
552f1c5
ci: add SKIP_ON_PUSH and SKIP_ON_PR environment variables to build wo…
PastaPastaPasta Jul 31, 2025
bd21777
ci: simplify skip logic to only affect container jobs
PastaPastaPasta Jul 31, 2025
43d194c
partial Merge bitcoin/bitcoin#27594: refactor: Remove unused GetTimeM…
DashCoreAutoGuix Jul 28, 2025
41d99b3
Merge bitcoin/bitcoin#27554: test: Treat `bitcoin-wallet` binary in t…
DashCoreAutoGuix Jul 28, 2025
06d3a92
Merge bitcoin/bitcoin#27473: bugfix: Properly handle "unknown" Addres…
DashCoreAutoGuix Jul 28, 2025
e7815ec
Merge bitcoin/bitcoin#27459: ci: explicitly install libclang-rt-dev i…
DashCoreAutoGuix Jul 28, 2025
adab39e
Merge bitcoin/bitcoin#27041: Build: Improve handling of suppressed lo…
DashCoreAutoGuix Jul 28, 2025
5e610cc
Merge bitcoin/bitcoin#27674: ci: Fix "Number of CPUs" output
DashCoreAutoGuix Jul 28, 2025
df35941
Merge bitcoin/bitcoin#27507: lint: stop ignoring LIEF imports
DashCoreAutoGuix Jul 29, 2025
c84e6f7
Merge bitcoin/bitcoin#28507: contrib/bash-completions: use package na…
DashCoreAutoGuix Jul 29, 2025
43306ea
Merge bitcoin/bitcoin#28176: tests: add coverage to feature_addrman.py
DashCoreAutoGuix Jul 29, 2025
4b02880
Merge bitcoin/bitcoin#28188: ci: Use documented `CCACHE_MAXSIZE` inst…
DashCoreAutoGuix Jul 29, 2025
664f6dc
Merge bitcoin/bitcoin#27957: net: remove unused `CConnmanTest`
DashCoreAutoGuix Jul 29, 2025
4102d65
Update test/functional/test_framework/test_framework.py
PastaPastaPasta Jul 31, 2025
681a930
merge bitcoin#24098: Use query parameters to control resource loading
kwvg Jul 28, 2025
6559000
merge bitcoin#26143: wait for the expected basic block filter index i…
kwvg Jul 28, 2025
3691d34
merge bitcoin#24576: remove redundant base58 implementation
kwvg Jul 28, 2025
18c9fe5
merge bitcoin#24739: Fix intermittent test failure in wallet_listrece…
kwvg Apr 1, 2022
28011dd
merge bitcoin#25011: Do not always create a descriptor wallet in wall…
kwvg Apr 27, 2022
155435c
merge bitcoin#25045: add coverage for invalid requests for `blockfilt…
kwvg Apr 30, 2022
8ca78db
merge bitcoin#25106: check `fopen` return code
kwvg Jul 28, 2025
2be3206
merge bitcoin#25213: fix crash at coinselection, add missing fee rate
kwvg May 25, 2022
a15317b
merge bitcoin#25003: fix `coin_selection:aps_create_tx_internal` call…
kwvg Apr 27, 2022
0481dc6
merge bitcoin#24629: Return the height of the actual last pruned block
kwvg Aug 2, 2025
a9f35e5
merge bitcoin#24640: Correct description of getblockchaininfo's prune…
kwvg Mar 22, 2022
a60f5cb
merge bitcoin#24913: Add a benchmark for wallet loading
kwvg Apr 18, 2022
fc5b0b7
merge bitcoin#24924: Make WalletLoading benchmark run faster
kwvg Apr 19, 2022
ce4c9b1
merge bitcoin#25023: Remove unused SetTip(nullptr) code
kwvg Apr 29, 2022
1aa5116
merge bitcoin#25887: avoid unsetting service bits from `nLocalServices`
kwvg Aug 20, 2022
0a16334
merge bitcoin#25810: rename MAX_{ANCESTORS,DESCENDANTS} to DEFAULT_{A…
kwvg Jul 28, 2025
d54bdf7
merge bitcoin#25792: add tests for `datacarrier` and `datacarriersize…
kwvg Aug 6, 2022
9379b1e
fix: use properly formed hex encoding in `evo_assetlock`
kwvg Jul 30, 2025
57a5d50
merge bitcoin#25227: Handle invalid hex encoding in ParseHex
kwvg Feb 27, 2023
af0e1e1
merge bitcoin#27218: Work around ParseHex gcc cross compiler bug
kwvg Mar 7, 2023
429cc06
fix: remove unnecessary blank line from bitcoin#28452
Aug 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:

- name: Build source
run: |
CCACHE_SIZE="400M"
CCACHE_MAXSIZE="400M"
CACHE_DIR="/cache"
mkdir /output
BASE_OUTDIR="/output"
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,29 @@ concurrency:
cancel-in-progress: ${{ github.ref_type != 'tag' }}

jobs:
check-skip:
name: Check skip conditions
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.skip-check.outputs.skip }}
steps:
- name: Check skip environment variables
id: skip-check
run: |
if [[ "${{ github.event_name }}" == "push" && "${{ vars.SKIP_ON_PUSH }}" != "" ]]; then
echo "Skipping build on push due to SKIP_ON_PUSH environment variable"
echo "skip=true" >> $GITHUB_OUTPUT
elif [[ "${{ github.event_name }}" == "pull_request_target" && "${{ vars.SKIP_ON_PR }}" != "" ]]; then
echo "Skipping build on pull request due to SKIP_ON_PR environment variable"
echo "skip=true" >> $GITHUB_OUTPUT
else
echo "skip=false" >> $GITHUB_OUTPUT
fi

container:
name: Build container
needs: [check-skip]
if: ${{ needs.check-skip.outputs.skip == 'false' }}
uses: ./.github/workflows/build-container.yml
with:
context: ./contrib/containers/ci
Expand All @@ -28,6 +49,8 @@ jobs:

container-slim:
name: Build slim container
needs: [check-skip]
if: ${{ needs.check-skip.outputs.skip == 'false' }}
uses: ./.github/workflows/build-container.yml
with:
context: ./contrib/containers/ci
Expand Down
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[main]
host = https://www.transifex.com

[dash.dash_ents]
[o:dash:p:dash:r:dash_ents]
file_filter = src/qt/locale/dash_<lang>.ts
source_file = src/qt/locale/dash_en.xlf
source_lang = en
2 changes: 1 addition & 1 deletion ci/dash/build_src.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if [ "$CHECK_DOC" = 1 ]; then
test/lint/all-lint.py
fi

ccache --zero-stats --max-size="$CCACHE_SIZE"
ccache --zero-stats

if [ -n "$CONFIG_SHELL" ]; then
export CONFIG_SHELL="$CONFIG_SHELL"
Expand Down
1 change: 1 addition & 0 deletions ci/lint/04_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fi

${CI_RETRY_EXE} pip3 install codespell==2.0.0
${CI_RETRY_EXE} pip3 install flake8==3.8.3
${CI_RETRY_EXE} pip3 install lief==0.13.1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Pinning lief==0.13.1 may break reproducibility on future CI images

lief often publishes manylinux wheels only for a subset of Python versions and glibc combos.
Consider:

  1. Adding a comment why 0.13.1 is chosen (latest with wheels?).
  2. Falling back to --no-binary :all: compile path if wheels disappear.
  3. Caching the wheel in contrib/ci like other toolchain pins.

This prevents sudden CI breakage when upstream yanks/relocates binaries.


#!/bin/bash
set -e

echo "=== Searching for all pip3 install commands in the repository ==="
rg "pip3 install" -n .

echo "=== Checking for any use of --no-binary in CI or install scripts ==="
rg "--no-binary" -n .

echo "=== Looking for a contrib/ci directory (cached wheels area) ==="
find . -type d | grep -E "contrib/ci" || echo "No contrib/ci directory found"


🏁 Script executed:

#!/bin/bash
set -e

echo "===== Locate 04_install.sh ====="
fd "04_install.sh" || echo "04_install.sh not found"

INSTALL_FILE=$(fd 04_install.sh | head -n1)
echo "File located: $INSTALL_FILE"

echo
echo "===== Display lines 30–45 from the install script ====="
if [ -n "$INSTALL_FILE" ]; then
  sed -n '30,45p' "$INSTALL_FILE"
else
  echo "Skipping display: file not found"
fi

echo
echo "===== Check for existing --no-binary usage across the repo ====="
rg --no-heading --color=never "--no-binary" -n .

echo
echo "===== Look for contrib/ci directory ====="
find . -type d | grep -E "./contrib/ci" || echo "No contrib/ci directory found"

Length of output: 320993


Ensure reproducible LIEF installation in CI

File: ci/lint/04_install.sh (around line 38)

The current line pins LIEF to 0.13.1 but provides no rationale, no build-from-source fallback, and no cached wheel if PyPI wheels vanish. To avoid future CI failures, please:

  • Add a comment explaining why lief==0.13.1 is chosen (e.g. last version with manylinux wheels for our Python/glibc matrix).
  • Try installing from source if the wheel is removed, e.g.:
    ${CI_RETRY_EXE} pip3 install lief==0.13.1 || \
      ${CI_RETRY_EXE} pip3 install --no-binary :all: lief==0.13.1
  • Vendor or cache the wheel under a new contrib/ci/ directory (as with other toolchain pins) and prefer it before falling back to PyPI.

These steps will guard against upstream wheel removals and keep CI builds stable.

🤖 Prompt for AI Agents
In ci/lint/04_install.sh at line 38, add a comment explaining why lief==0.13.1
is pinned, noting it is the last version with manylinux wheels compatible with
our Python/glibc matrix. Modify the install command to first try installing the
pinned wheel from PyPI, and if that fails, retry installing from source using
the --no-binary option. Additionally, set up caching or vendoring of the lief
wheel under contrib/ci/ and update the script to prefer installing from this
local cache before falling back to PyPI to ensure CI stability.

${CI_RETRY_EXE} pip3 install mypy==0.910
${CI_RETRY_EXE} pip3 install pyzmq==22.3.0
${CI_RETRY_EXE} pip3 install vulture==2.3
Expand Down
2 changes: 1 addition & 1 deletion ci/test/00_setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export BOOST_TEST_RANDOM=${BOOST_TEST_RANDOM:-1}
export DEBIAN_FRONTEND=noninteractive
export HOST_CACHE_DIR=${HOST_CACHE_DIR:-$BASE_ROOT_DIR/ci-cache-$BUILD_TARGET}
export CACHE_DIR=${CACHE_DIR:-$HOST_CACHE_DIR}
export CCACHE_SIZE=${CCACHE_SIZE:-100M}
export CCACHE_MAXSIZE=${CCACHE_MAXSIZE:-100M}
export CCACHE_TEMPDIR=${CCACHE_TEMPDIR:-/tmp/.ccache-temp}
export CCACHE_COMPRESS=${CCACHE_COMPRESS:-1}
Comment on lines 57 to 60
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Renamed variable needs follow-up clean-up

CCACHE_MAXSIZE replaces CCACHE_SIZE, but the rest of the CI scripts (e.g. build helpers or
GitHub-Actions workflow steps) may still export or reference the old name. A quick repo-wide check
avoids silent regressions where the limit reverts to the ccache default.

#!/usr/bin/env bash
# Verify no stale reference remains
rg --fixed-strings 'CCACHE_SIZE' -n
🤖 Prompt for AI Agents
In ci/test/00_setup_env.sh around lines 57 to 60, the variable CCACHE_MAXSIZE
replaces CCACHE_SIZE, but other CI scripts and workflow steps might still
reference the old CCACHE_SIZE variable. Perform a repository-wide search for
'CCACHE_SIZE' and update all occurrences to 'CCACHE_MAXSIZE' to ensure
consistency and prevent fallback to default values.

# The cache dir.
Expand Down
2 changes: 1 addition & 1 deletion ci/test/00_setup_env_mac_native_x86_64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export BITCOIN_CONFIG="--with-gui --enable-reduce-exports --disable-miner --with
export CI_OS_NAME="macos"
export NO_DEPENDS=1
export OSX_SDK=""
export CCACHE_SIZE=300M
export CCACHE_MAXSIZE=300M

export RUN_SECURITY_TESTS="true"
4 changes: 2 additions & 2 deletions ci/test/00_setup_env_native_fuzz_with_valgrind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export LC_ALL=C.UTF-8

export CONTAINER_NAME=ci_native_fuzz_valgrind
export PACKAGES="clang llvm python3 libevent-dev bsdmainutils libboost-dev valgrind"
export PACKAGES="clang llvm libclang-rt-dev python3 libevent-dev bsdmainutils libboost-dev valgrind"
export NO_DEPENDS=1
export RUN_UNIT_TESTS=false
export RUN_FUNCTIONAL_TESTS=false
Expand All @@ -16,4 +16,4 @@ export FUZZ_TESTS_CONFIG="--valgrind"
export GOAL="install"
# Temporarily pin dwarf 4, until valgrind can understand clang's dwarf 5
export BITCOIN_CONFIG="--enable-fuzz --with-sanitizers=fuzzer CC=clang-18 CXX=clang++-18 CFLAGS='-gdwarf-4' CXXFLAGS='-gdwarf-4'"
export CCACHE_SIZE=200M
export CCACHE_MAXSIZE=200M
2 changes: 1 addition & 1 deletion ci/test/00_setup_env_native_valgrind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

export LC_ALL=C.UTF-8

export PACKAGES="valgrind clang llvm python3-zmq libevent-dev bsdmainutils libboost-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev"
export PACKAGES="valgrind clang llvm libclang-rt-dev python3-zmq libevent-dev bsdmainutils libboost-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev"
export USE_VALGRIND=1
export NO_DEPENDS=1
export TEST_RUNNER_EXTRA="--exclude rpc_bind,feature_bind_extra --timeout-factor=4" # Excluded for now, see https://github.com/bitcoin/bitcoin/issues/17765#issuecomment-602068547
Expand Down
2 changes: 1 addition & 1 deletion ci/test/04_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ if [ "$CI_OS_NAME" == "macos" ]; then
echo "Number of CPUs: $(sysctl -n hw.logicalcpu)"
else
CI_EXEC free -m -h
CI_EXEC echo "Number of CPUs \(nproc\):" \$\(nproc\)
CI_EXEC echo "Number of CPUs (nproc): $(nproc)"
CI_EXEC echo "$(lscpu | grep Endian)"
Comment on lines 99 to 101
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

nproc still executed on host – command substitution happens before CI_EXEC

CI_EXEC echo "Number of CPUs (nproc): $(nproc)" expands $(nproc) before entering the container, so the printed value is from the host, not the CI container. Wrap it in a second shell inside the container:

-CI_EXEC echo "Number of CPUs (nproc): $(nproc)"
+CI_EXEC bash -c 'echo "Number of CPUs (nproc): $(nproc)"'

This ensures the nproc binary runs in the same namespace as the rest of the build.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
CI_EXEC free -m -h
CI_EXEC echo "Number of CPUs \(nproc\):" \$\(nproc\)
CI_EXEC echo "Number of CPUs (nproc): $(nproc)"
CI_EXEC echo "$(lscpu | grep Endian)"
CI_EXEC free -m -h
CI_EXEC bash -c 'echo "Number of CPUs (nproc): $(nproc)"'
CI_EXEC echo "$(lscpu | grep Endian)"
🤖 Prompt for AI Agents
In ci/test/04_install.sh around lines 99 to 101, the command substitution
$(nproc) is executed on the host before being passed to CI_EXEC, causing the CPU
count to reflect the host instead of the container. To fix this, wrap the
command substitution in a shell inside the container by changing the line to
execute a shell that runs nproc, ensuring nproc runs in the container's
namespace and returns the correct CPU count.

fi
CI_EXEC echo "Free disk space:"
Expand Down
46 changes: 23 additions & 23 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -450,15 +450,6 @@ if test "$enable_werror" = "yes"; then
fi
ERROR_CXXFLAGS=$CXXFLAG_WERROR

dnl -Warray-bounds cause problems with GCC. Do not treat these warnings as errors.
dnl Suppress -Warray-bounds entirely because of noisy output, currently unhappy with immer implementation.
AX_CHECK_COMPILE_FLAG([-Warray-bounds], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-array-bounds"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([
#if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__)
#error Non-GCC compiler detected, not setting flag
#endif
int main(void) { return 0; }
])])

dnl -Wattributes cause problems with some versions of GCC. Do not treat these warnings as errors.
AX_CHECK_COMPILE_FLAG([-Wattributes], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-error=attributes"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([
#if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__)
Expand All @@ -478,22 +469,31 @@ if test "$enable_werror" = "yes"; then
#endif
int main(void) { return 0; }
])])

dnl -Wstringop-overread and -Wstringop-overflow are broken in GCC. Suppress warnings entirely to avoid noisy output.
AX_CHECK_COMPILE_FLAG([-Wstringop-overread], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-stringop-overread"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([
#if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__)
#error Non-GCC compiler detected, not setting flag
#endif
int main(void) { return 0; }
])])
AX_CHECK_COMPILE_FLAG([-Wstringop-overflow], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-stringop-overflow"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([
#if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__)
#error Non-GCC compiler detected, not setting flag
#endif
int main(void) { return 0; }
])])
fi

dnl -Warray-bounds cause problems with GCC. Do not treat these warnings as errors.
dnl Suppress -Warray-bounds entirely because of noisy output, currently unhappy with immer implementation.
AX_CHECK_COMPILE_FLAG([-Warray-bounds], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-array-bounds"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([
#if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__)
#error Non-GCC compiler detected, not setting flag
#endif
int main(void) { return 0; }
])])

dnl -Wstringop-overread and -Wstringop-overflow are broken in GCC. Suppress warnings entirely to avoid noisy output.
AX_CHECK_COMPILE_FLAG([-Wstringop-overread], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-stringop-overread"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([
#if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__)
#error Non-GCC compiler detected, not setting flag
#endif
int main(void) { return 0; }
])])
AX_CHECK_COMPILE_FLAG([-Wstringop-overflow], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-stringop-overflow"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([
#if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__)
#error Non-GCC compiler detected, not setting flag
#endif
int main(void) { return 0; }
])])

AX_CHECK_COMPILE_FLAG([-Wall], [WARN_CXXFLAGS="$WARN_CXXFLAGS -Wall"], [], [$CXXFLAG_WERROR])
AX_CHECK_COMPILE_FLAG([-Wextra], [WARN_CXXFLAGS="$WARN_CXXFLAGS -Wextra"], [], [$CXXFLAG_WERROR])
AX_CHECK_COMPILE_FLAG([-Wgnu], [WARN_CXXFLAGS="$WARN_CXXFLAGS -Wgnu"], [], [$CXXFLAG_WERROR])
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion contrib/devtools/security-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import sys
from typing import List

import lief #type:ignore
import lief

def check_ELF_RELRO(binary) -> bool:
'''
Expand Down
2 changes: 1 addition & 1 deletion contrib/devtools/symbol-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import sys
from typing import Dict, List

import lief #type:ignore
import lief

# Debian 11 (Bullseye) EOL: 2026. https://wiki.debian.org/LTS
#
Expand Down
2 changes: 1 addition & 1 deletion contrib/devtools/test-security-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'''
Test script for security-check.py
'''
import lief #type:ignore
import lief
import os
import subprocess
from typing import List
Expand Down
4 changes: 2 additions & 2 deletions contrib/testgen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Utilities to generate test vectors for the data-driven Dash tests.

Usage:

PYTHONPATH=../../test/functional/test_framework ./gen_key_io_test_vectors.py valid 50 > ../../src/test/data/key_io_valid.json
PYTHONPATH=../../test/functional/test_framework ./gen_key_io_test_vectors.py invalid 50 > ../../src/test/data/key_io_invalid.json
./gen_key_io_test_vectors.py valid 50 > ../../src/test/data/key_io_valid.json
./gen_key_io_test_vectors.py invalid 50 > ../../src/test/data/key_io_invalid.json
115 changes: 0 additions & 115 deletions contrib/testgen/base58.py

This file was deleted.

Loading
Loading