diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-17 20:59:17 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-19 13:04:23 +0200 |
commit | fafb68add5e16e8bd5b9428bcffcaee2639747cf (patch) | |
tree | 990c05dc7743dadfc8e0c280b92169c16f5494f1 /src/rpc/net.h | |
parent | faabeb854a6e46b46e4f26b22dc2c81e68e2d863 (diff) |
refactor: Add and use EnsureConnman in rpc code
Diffstat (limited to 'src/rpc/net.h')
-rw-r--r-- | src/rpc/net.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/rpc/net.h b/src/rpc/net.h new file mode 100644 index 0000000000..7a4d8440ba --- /dev/null +++ b/src/rpc/net.h @@ -0,0 +1,15 @@ +// Copyright (c) 2021 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_RPC_NET_H +#define BITCOIN_RPC_NET_H + +class CConnman; +class PeerManager; +struct NodeContext; + +CConnman& EnsureConnman(const NodeContext& node); +PeerManager& EnsurePeerman(const NodeContext& node); + +#endif // BITCOIN_RPC_NET_H |