aboutsummaryrefslogtreecommitdiff
path: root/src/net_types.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-10-29 10:49:48 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-10-29 11:30:12 +0200
commitf44abe4bed25a40145ab168adc1589f5df4146f3 (patch)
treeaa977707d7b86d74866e0bc1de2d4ecb79c514b5 /src/net_types.h
parent4c1090c882ea15ba4d10a2f7f320f3c0eb490ebd (diff)
downloadbitcoin-f44abe4bed25a40145ab168adc1589f5df4146f3.tar.xz
refactor: Remove addrdb.h dependency from node.h
Diffstat (limited to 'src/net_types.h')
-rw-r--r--src/net_types.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net_types.h b/src/net_types.h
new file mode 100644
index 0000000000..d55a8cde6c
--- /dev/null
+++ b/src/net_types.h
@@ -0,0 +1,15 @@
+// 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_NET_TYPES_H
+#define BITCOIN_NET_TYPES_H
+
+#include <map>
+
+class CBanEntry;
+class CSubNet;
+
+using banmap_t = std::map<CSubNet, CBanEntry>;
+
+#endif // BITCOIN_NET_TYPES_H