Inside Bitcoin
Opening the selected file…
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(univalue STATIC EXCLUDE_FROM_ALL6lib/univalue.cpp7lib/univalue_get.cpp8lib/univalue_read.cpp9lib/univalue_write.cpp10)11target_include_directories(univalue12PUBLIC13$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>14)15target_link_libraries(univalue PRIVATE core_interface)17if(BUILD_TESTS)18add_executable(unitester19test/unitester.cpp20)21include(TargetDataSources)22target_json_data_sources(unitester23test/fail1.json24test/fail10.json25test/fail11.json26test/fail12.json27test/fail13.json28test/fail14.json29test/fail15.json30test/fail16.json31test/fail17.json32test/fail18.json33test/fail19.json34test/fail2.json35test/fail20.json36test/fail21.json37test/fail22.json38test/fail23.json39test/fail24.json40test/fail25.json41test/fail26.json42test/fail27.json43test/fail28.json44test/fail29.json45test/fail3.json46test/fail30.json47test/fail31.json48test/fail32.json49test/fail33.json50test/fail34.json51test/fail35.json52test/fail36.json53test/fail37.json54test/fail38.json55test/fail39.json56test/fail4.json57test/fail40.json58test/fail41.json59test/fail42.json60test/fail44.json61test/fail45.json62test/fail5.json63test/fail6.json64test/fail7.json65test/fail8.json66test/fail9.json67test/pass1.json68test/pass2.json69test/pass3.json70test/pass4.json71test/round1.json72test/round2.json73test/round3.json74test/round4.json75test/round5.json76test/round6.json77test/round7.json78)79target_link_libraries(unitester80PRIVATE81core_interface82univalue83)84add_test(NAME univalue_test85COMMAND unitester86)88add_executable(object test/object.cpp)89target_link_libraries(object90PRIVATE91core_interface92univalue93)94add_test(NAME univalue_object_test95COMMAND object96)97endif()
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.