File tree Expand file tree Collapse file tree 7 files changed +23
-6
lines changed Expand file tree Collapse file tree 7 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ BITCOIN_CORE_H = \
152
152
net.h \
153
153
net_permissions.h \
154
154
net_processing.h \
155
+ net_types.h \
155
156
netaddress.h \
156
157
netbase.h \
157
158
netmessagemaker.h \
Original file line number Diff line number Diff line change 7
7
#define BITCOIN_ADDRDB_H
8
8
9
9
#include < fs.h>
10
+ #include < net_types.h> // For banmap_t
10
11
#include < serialize.h>
11
12
12
13
#include < string>
@@ -79,8 +80,6 @@ class CBanEntry
79
80
}
80
81
};
81
82
82
- typedef std::map<CSubNet, CBanEntry> banmap_t ;
83
-
84
83
/* * Access to the (IP) address database (peers.dat) */
85
84
class CAddrDB
86
85
{
Original file line number Diff line number Diff line change 10
10
11
11
#include < addrdb.h>
12
12
#include < fs.h>
13
+ #include < net_types.h> // For banmap_t
13
14
#include < sync.h>
14
15
15
16
// NOTE: When adjusting this, update rpcnet:setban's help ("24h")
Original file line number Diff line number Diff line change 5
5
#ifndef BITCOIN_INTERFACES_NODE_H
6
6
#define BITCOIN_INTERFACES_NODE_H
7
7
8
- #include < addrdb.h> // For banmap_t
9
8
#include < amount.h> // For CAmount
10
9
#include < net.h> // For CConnman::NumConnections
10
+ #include < net_types.h> // For banmap_t
11
11
#include < netaddress.h> // For Network
12
12
#include < support/allocators/secure.h> // For SecureString
13
13
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2019 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ #ifndef BITCOIN_NET_TYPES_H
6
+ #define BITCOIN_NET_TYPES_H
7
+
8
+ #include < map>
9
+
10
+ class CBanEntry ;
11
+ class CSubNet ;
12
+
13
+ using banmap_t = std::map<CSubNet, CBanEntry>;
14
+
15
+ #endif // BITCOIN_NET_TYPES_H
Original file line number Diff line number Diff line change 4
4
5
5
#include < qt/bantablemodel.h>
6
6
7
- #include < qt/clientmodel.h>
8
-
9
7
#include < interfaces/node.h>
8
+ #include < net_types.h> // For banmap_t
9
+ #include < qt/clientmodel.h>
10
10
11
11
#include < algorithm>
12
12
Original file line number Diff line number Diff line change 8
8
#include < clientversion.h>
9
9
#include < core_io.h>
10
10
#include < net.h>
11
- #include < net_processing.h>
12
11
#include < net_permissions.h>
12
+ #include < net_processing.h>
13
+ #include < net_types.h> // For banmap_t
13
14
#include < netbase.h>
14
15
#include < policy/settings.h>
15
16
#include < rpc/protocol.h>
You can’t perform that action at this time.
0 commit comments