File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 6
6
#define BITCOIN_TEST_UTIL_NET_H
7
7
8
8
#include < compat.h>
9
+ #include < netaddress.h>
9
10
#include < net.h>
10
11
#include < util/sock.h>
11
12
13
+ #include < array>
12
14
#include < cassert>
13
15
#include < cstring>
14
16
#include < string>
@@ -67,6 +69,16 @@ constexpr ConnectionType ALL_CONNECTION_TYPES[]{
67
69
ConnectionType::ADDR_FETCH,
68
70
};
69
71
72
+ constexpr auto ALL_NETWORKS = std::array{
73
+ Network::NET_UNROUTABLE,
74
+ Network::NET_IPV4,
75
+ Network::NET_IPV6,
76
+ Network::NET_ONION,
77
+ Network::NET_I2P,
78
+ Network::NET_CJDNS,
79
+ Network::NET_INTERNAL,
80
+ };
81
+
70
82
/* *
71
83
* A mocked Sock alternative that returns a statically contained data upon read and succeeds
72
84
* and ignores all writes. The data to be returned is given to the constructor and when it is
You can’t perform that action at this time.
0 commit comments