refactor: Remove addrdb.h dependency from node.h

This commit is contained in:
Hennadii Stepanov
2019-10-29 10:49:48 +02:00
parent 4c1090c882
commit f44abe4bed
7 changed files with 23 additions and 6 deletions

15
src/net_types.h Normal file
View File

@@ -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