mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-19 06:30:45 +02:00

This commit is part of the libbitcoinkernel project and seeks to remove the ChainstateManager's and, more generally, the kernel library's dependency on interface_ui with options methods in this and the following few commits. By removing interface_ui from the kernel library, its dependency on boost is reduced to just boost::multi_index. Define a new kernel notification class with virtual methods for notifying about internal kernel events. Create a new file in the node library for defining a function creating the default set of notification methods such that these do not need to be re-defined all over the codebase. As a first step, add a `blockTip` method, wrapping `uiInterface.NotifyBlockTip`.
24 lines
637 B
C++
24 lines
637 B
C++
// Copyright (c) 2019-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.
|
|
|
|
#include <node/context.h>
|
|
|
|
#include <addrman.h>
|
|
#include <banman.h>
|
|
#include <interfaces/chain.h>
|
|
#include <kernel/context.h>
|
|
#include <net.h>
|
|
#include <net_processing.h>
|
|
#include <netgroup.h>
|
|
#include <node/kernel_notifications.h>
|
|
#include <policy/fees.h>
|
|
#include <scheduler.h>
|
|
#include <txmempool.h>
|
|
#include <validation.h>
|
|
|
|
namespace node {
|
|
NodeContext::NodeContext() = default;
|
|
NodeContext::~NodeContext() = default;
|
|
} // namespace node
|