Skip to content

Commit d3f5df4

Browse files
committed
kernel: Add pure kernel bitcoin-chainstate
Re-write the bitcoin-chainstate utility by only using the kernel C++ API header instead of internal Bitcoin Core code.
1 parent e5009f3 commit d3f5df4

File tree

3 files changed

+187
-253
lines changed

3 files changed

+187
-253
lines changed

src/CMakeLists.txt

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -407,27 +407,26 @@ if(BUILD_KERNEL_LIB)
407407
if (BUILD_KERNEL_TEST)
408408
add_subdirectory(test/kernel)
409409
endif()
410-
endif()
411-
412-
if(BUILD_UTIL_CHAINSTATE)
413-
add_executable(bitcoin-chainstate
414-
bitcoin-chainstate.cpp
415-
)
416-
# TODO: The `SKIP_BUILD_RPATH` property setting can be deleted
417-
# in the future after reordering Guix script commands to
418-
# perform binary checks after the installation step.
419-
# Relevant discussions:
420-
# - https://github.com/hebasto/bitcoin/pull/236#issuecomment-2183120953
421-
# - https://github.com/bitcoin/bitcoin/pull/30312#issuecomment-2191235833
422-
set_target_properties(bitcoin-chainstate PROPERTIES
423-
SKIP_BUILD_RPATH OFF
424-
)
425-
target_link_libraries(bitcoin-chainstate
426-
PRIVATE
427-
core_interface
428-
bitcoinkernel
429-
)
430-
install_binary_component(bitcoin-chainstate INTERNAL)
410+
if(BUILD_UTIL_CHAINSTATE)
411+
add_executable(bitcoin-chainstate
412+
bitcoin-chainstate.cpp
413+
)
414+
# TODO: The `SKIP_BUILD_RPATH` property setting can be deleted
415+
# in the future after reordering Guix script commands to
416+
# perform binary checks after the installation step.
417+
# Relevant discussions:
418+
# - https://github.com/hebasto/bitcoin/pull/236#issuecomment-2183120953
419+
# - https://github.com/bitcoin/bitcoin/pull/30312#issuecomment-2191235833
420+
set_target_properties(bitcoin-chainstate PROPERTIES
421+
SKIP_BUILD_RPATH OFF
422+
)
423+
target_link_libraries(bitcoin-chainstate
424+
PRIVATE
425+
core_interface
426+
bitcoinkernel
427+
)
428+
install_binary_component(bitcoin-chainstate INTERNAL)
429+
endif()
431430
endif()
432431

433432

0 commit comments

Comments
 (0)