diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2019-09-17 17:11:31 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2019-10-28 10:30:51 -0400 |
commit | 4d5448c76b71c9d91399c31b043237091be2e5e7 (patch) | |
tree | e3062b6fbf5d853ba5084889e993ba01091b8e2f /src/node | |
parent | 301bd41a2e6765b185bd55f4c541f9e27aeea29d (diff) | |
download | bitcoin-4d5448c76b71c9d91399c31b043237091be2e5e7.tar.xz |
MOVEONLY: Move NodeContext struct to node/context.h
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/context.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 <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 |