From 4d5448c76b71c9d91399c31b043237091be2e5e7 Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Tue, 17 Sep 2019 17:11:31 -0400 Subject: MOVEONLY: Move NodeContext struct to node/context.h --- src/node/context.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/node/context.h (limited to 'src/node') diff --git a/src/node/context.h b/src/node/context.h new file mode 100644 index 0000000000..3dd90ba961 --- /dev/null +++ b/src/node/context.h @@ -0,0 +1,23 @@ +// Copyright (c) 2019 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_NODE_CONTEXT_H +#define BITCOIN_NODE_CONTEXT_H + +#include +#include + +namespace interfaces { +class Chain; +class ChainClient; +} // namespace interfaces + +//! Pointers to interfaces used during init and destroyed on shutdown. +struct NodeContext +{ + std::unique_ptr chain; + std::vector> chain_clients; +}; + +#endif // BITCOIN_NODE_CONTEXT_H -- cgit v1.2.3