Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1#!/usr/bin/env bash2#3# Copyright (c) 2018-present The Bitcoin Core developers4# Distributed under the MIT software license, see the accompanying5# file COPYING or http://www.opensource.org/licenses/mit-license.php.7export LC_ALL=C.UTF-89set -o errexit -o pipefail -o xtrace11# Fixes permission issues when there is a container UID/GID mismatch with the owner12# of the mounted bitcoin src dir.13git config --global --add safe.directory /bitcoin15export PATH="/python_env/bin:${PATH}"17if [ -n "${LINT_CI_IS_PR}" ]; then18export COMMIT_RANGE="HEAD~..HEAD"19if [ "$(git rev-list -1 HEAD)" != "$(git rev-list -1 --merges HEAD)" ]; then20echo "Error: The top commit must be a merge commit, usually the remote 'pull/<PR_NUMBER>/merge' branch."21false22fi23fi25RUST_BACKTRACE=1 cargo run --manifest-path "./test/lint/test_runner/Cargo.toml" -- "$@"27if [ "${LINT_CI_SANITY_CHECK_COMMIT_SIG}" = "1" ] ; then28# Sanity check only the last few commits to get notified of missing sigs,29# missing keys, or expired keys. Usually there is only one new merge commit30# per push on the master branch and a few commits on release branches, so31# sanity checking only a few (10) commits seems sufficient and cheap.32git log HEAD~10 -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit33git log HEAD~10 -1 --format='%H' > ./contrib/verify-commits/trusted-git-root34mapfile -t KEYS < contrib/verify-commits/trusted-keys35git config user.email "[email protected]"36git config user.name "ci"37${CI_RETRY_EXE} gpg --keyserver hkps://keys.openpgp.org --recv-keys "${KEYS[@]}" &&38./contrib/verify-commits/verify-commits.py;39fi
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.