mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-29 20:47:31 -03:00
fed085a1a4
...instead of explicitly calling init::{Set,Unset}Globals. Cool thing about this is that in both the testing and bitcoin-chainstate codepaths, we no longer need to explicitly unset globals. The kernel::Context goes out of scope and the globals are unset "automatically". Also construct kernel::Context outside of AppInitSanityChecks()
22 lines
598 B
C++
22 lines
598 B
C++
// Copyright (c) 2019-2020 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 <policy/fees.h>
|
|
#include <scheduler.h>
|
|
#include <txmempool.h>
|
|
#include <validation.h>
|
|
|
|
namespace node {
|
|
NodeContext::NodeContext() = default;
|
|
NodeContext::~NodeContext() = default;
|
|
} // namespace node
|