mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-15 22:32:37 -03:00
24 lines
620 B
C
24 lines
620 B
C
|
// 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 <memory>
|
||
|
#include <vector>
|
||
|
|
||
|
namespace interfaces {
|
||
|
class Chain;
|
||
|
class ChainClient;
|
||
|
} // namespace interfaces
|
||
|
|
||
|
//! Pointers to interfaces used during init and destroyed on shutdown.
|
||
|
struct NodeContext
|
||
|
{
|
||
|
std::unique_ptr<interfaces::Chain> chain;
|
||
|
std::vector<std::unique_ptr<interfaces::ChainClient>> chain_clients;
|
||
|
};
|
||
|
|
||
|
#endif // BITCOIN_NODE_CONTEXT_H
|