From 79d3f30ebe11adee1d4ef372484098ef0b09e526 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Fri, 14 Jun 2024 18:33:08 +0200 Subject: [PATCH] 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. --- src/bitcoin-chainstate.cpp | 406 +++++++++++++----------------- test/lint/test_runner/src/main.rs | 1 + 2 files changed, 171 insertions(+), 236 deletions(-) diff --git a/src/bitcoin-chainstate.cpp b/src/bitcoin-chainstate.cpp index 46e6f06e27f..6c3bd9cfe01 100644 --- a/src/bitcoin-chainstate.cpp +++ b/src/bitcoin-chainstate.cpp @@ -1,53 +1,135 @@ -// Copyright (c) 2022 The Bitcoin Core developers -// Distributed under the MIT software license, see the accompanying -// file COPYING or http://www.opensource.org/licenses/mit-license.php. -// -// The bitcoin-chainstate executable serves to surface the dependencies required -// by a program wishing to use Bitcoin Core's consensus engine as it is right -// now. -// -// DEVELOPER NOTE: Since this is a "demo-only", experimental, etc. executable, -// it may diverge from Bitcoin Core's coding style. -// -// It is part of the libbitcoinkernel project. - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include