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# Copyright (c) 2023-present The Bitcoin Core developers2# Distributed under the MIT software license, see the accompanying3# file COPYING or https://opensource.org/license/mit/.5add_library(bitcoin_ipc STATIC EXCLUDE_FROM_ALL6capnp/mining.cpp7capnp/protocol.cpp8interfaces.cpp9process.cpp10)12target_capnp_sources(bitcoin_ipc ${CMAKE_CURRENT_SOURCE_DIR}13capnp/common.capnp14capnp/echo.capnp15capnp/init.capnp16capnp/mining.capnp17capnp/rpc.capnp18)20target_link_libraries(bitcoin_ipc21PRIVATE22core_interface23univalue24Boost::headers25)27if(BUILD_TESTS)28# bitcoin_ipc_test library target is defined here in src/ipc/CMakeLists.txt29# instead of src/ipc/test/CMakeLists.txt so capnp files in src/ipc/test/ are able to30# reference capnp files in src/ipc/capnp/ by relative path. The Cap'n Proto31# compiler only allows importing by relative path when the importing and32# imported files are underneath the same compilation source prefix, so the33# source prefix must be src/ipc, not src/ipc/test/34add_library(bitcoin_ipc_test OBJECT EXCLUDE_FROM_ALL35test/ipc_tests.cpp36)37target_capnp_sources(bitcoin_ipc_test ${CMAKE_CURRENT_SOURCE_DIR}38test/ipc_test.capnp39)40add_dependencies(bitcoin_ipc_test bitcoin_ipc_headers)42target_link_libraries(bitcoin_ipc_test43PRIVATE44core_interface45univalue46Boost::headers47)48endif()50if (BUILD_FUZZ_BINARY)51add_library(bitcoin_ipc_fuzz STATIC EXCLUDE_FROM_ALL)52target_capnp_sources(bitcoin_ipc_fuzz ${CMAKE_CURRENT_SOURCE_DIR}53test/fuzz/ipc_fuzz.capnp54)55add_dependencies(bitcoin_ipc_fuzz bitcoin_ipc_headers)57target_link_libraries(bitcoin_ipc_fuzz58PRIVATE59core_interface60univalue61Boost::headers62)63endif()65configure_file(.clang-tidy.in .clang-tidy USE_SOURCE_PERMISSIONS COPYONLY)
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.