Skip to content

Instantly share code, notes, and snippets.

src/core/bitcoin on  HEAD (1e169a8) [$] via △ v4.1.2 via 🐍 v3.13.13 via ❄️ impure (nix-shell-env)
❯ bash -lc 'set -e
hosts="x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu riscv64-linux-gnu powerpc64-linux-gnu x86_64-w64-mingw32 x86_64-apple-darwin arm64-apple-darwin"
for h in $hosts; do
printf "===== %s =====\n" "$h"
env HOST="$h" guix time-machine --url=https://codeberg.org/guix/guix.git --commit=c5eee3336cc1d10a3cc1c97fde2809c3451624d3 --url=https://github.com/Millak/guix.git -- weather --substitute-urls=https://guix.fish.foo --display-missing -m contrib/guix/manifest_build.scm || true
done'
===== x86_64-linux-gnu =====
hint: Consider installing the `glibc-locales' package and defining `GUIX_LOCPATH', along these lines:

IBD Trace Summary

Warnings

  • ibd-usdt.out contains 1 non-timestamped or unrecognized lines

USDT Events

  • Duration: 320379 ms
  • Event counts: {'message_processing_finished': 300919, 'message_processing_started': 300918, 'block_receive_request_state': 300002, 'block_validation_enqueue': 300002, 'block_validation_dequeued': 300002, 'block_process_started': 300002, 'block_validation_started': 300002, 'block_validation_finished': 300002, 'block_process_stage': 2100014, 'block_received': 300002, 'block_connected_started': 300002, 'block_connected_finished': 300002, 'block_process_finished': 300002, 'block_validation_worker_finished': 300002, 'chainstate_flush_started': 2, 'chainstate_flush_finished': 2}
#!/usr/bin/env bash
# Copyright (c) 2026-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.
set -euo pipefail
BITCOIND="./build/bin/bitcoind"
OUTDIR="ibd-trace-$(date -u +%Y%m%dT%H%M%SZ)"
DURATION=""
core/worktrees/split_build_expr on  split_build_expr [$] via △ v4.1.2 via 🐍 v3.13.12 via ❄️ impure (nix-shell-env)
❯ find guix-build-6b3ef06b7042 \( \
-path '*/installed/bitcoin-*/bin/*' -o \
-path '*/installed/bitcoin-*/libexec/*' \
\) -type f \
| sort \
| xargs file
guix-build-6b3ef06b7042/distsrc-6b3ef06b7042-arm-linux-gnueabihf/installed/bitcoin-6b3ef06b7042/bin/bitcoin: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, stripped
guix-build-6b3ef06b7042/distsrc-6b3ef06b7042-arm-linux-gnueabihf/installed/bitcoin-6b3ef06b7042/bin/bitcoin-cli: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, stripped
guix-build-6b3ef06b7042/distsrc-6b3ef06b7042-arm-linux-gnueabihf/installed/bitcoin-6b3ef06b7042/bin/bitcoin-cli.dbg: ELF 32-bit LSB shared objec
cmake_host_system_information(RESULT HOST_NAME QUERY HOSTNAME)
set(CTEST_BUILD_FLAGS -j${nproc})
set(ctest_test_args ${ctest_test_args} PARALLEL_LEVEL ${nproc})
if(NOT CTEST_SITE)
set(CTEST_SITE ${HOST_NAME})
endif()
if(NOT CTEST_BUILD_NAME)
set(CTEST_BUILD_NAME "your-build-name")
ref: https://my.cdash.org/builds/3535291/build
• Cause: this is Darwin ranlib, not a capnp build problem.
ranlib is indexing static archives and warns when an archive member has no externally visible symbols:
ranlib: file: lib/libbitcoin_ipc.a(common.capnp.proxy-types.c++.o) has no symbols
@willcl-ark
willcl-ark / ban-bitprojects.sh
Created March 26, 2026 11:55
ban /16's belonging to bitprojects
#!/usr/bin/env bash
# Disconnect from sybil bitprojects nodes
# See https://willcl-ark.github.io/dnsseedrs/#prefix-table
# The banlist starts below.
# This file is a script! Never run a script without verifying the file contents first.
# An attacker could put a 'bitcoin-cli sendall <ATTACKER ADDRESS>' in here.
# In an attempt to stop you from running this as script I'm adding an 'exit' in here.
echo "You just got your funds stolen."
exit -1
{
"openrpc": "1.3.2",
"info": {
"title": "Bitcoin Core JSON-RPC",
"version": "v30.99.0-dev",
"description": "Autogenerated from Bitcoin Core RPC metadata."
},
"methods": [
{
"name": "abandontransaction",
#!/usr/bin/env bash
set -e
export HOST=x86_64-unknown-freebsd
export FREEBSD_SYSROOT=/opt/cross-freebsd-14
export FREEBSD_VERSION="14.2"
CLANG_REQUIRED="18"
export CFLAGS="--sysroot=$FREEBSD_SYSROOT"
export CXXFLAGS="--sysroot=$FREEBSD_SYSROOT"
@willcl-ark
willcl-ark / build-freebsd.sh
Last active October 7, 2025 12:48
Cross-compile freebsd using clang
#!/usr/bin/env bash
set -e
export HOST=x86_64-unknown-freebsd
export FREEBSD_SYSROOT=/opt/cross-freebsd-14
export FREEBSD_VERSION="14.2"
CLANG_REQUIRED="18"
export CFLAGS="--sysroot=$FREEBSD_SYSROOT"
export CXXFLAGS="--sysroot=$FREEBSD_SYSROOT"