File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -116,17 +116,12 @@ struct CSerializedNetMsg
116
116
std::string m_type;
117
117
};
118
118
119
- const std::vector<std::string> CONNECTION_TYPE_DOC{
120
- " outbound-full-relay (default automatic connections)" ,
121
- " block-relay-only (does not relay transactions or addresses)" ,
122
- " inbound (initiated by the peer)" ,
123
- " manual (added via addnode RPC or -addnode/-connect configuration options)" ,
124
- " addr-fetch (short-lived automatic connection for soliciting addresses)" ,
125
- " feeler (short-lived automatic connection for testing addresses)" };
126
-
127
119
/* * Different types of connections to a peer. This enum encapsulates the
128
120
* information we have available at the time of opening or accepting the
129
- * connection. Aside from INBOUND, all types are initiated by us. */
121
+ * connection. Aside from INBOUND, all types are initiated by us.
122
+ *
123
+ * If adding or removing types, please update CONNECTION_TYPE_DOC in
124
+ * src/rpc/net.cpp. */
130
125
enum class ConnectionType {
131
126
/* *
132
127
* Inbound connections are those initiated by a peer. This is the only
Original file line number Diff line number Diff line change 29
29
30
30
#include < univalue.h>
31
31
32
+ const std::vector<std::string> CONNECTION_TYPE_DOC{
33
+ " outbound-full-relay (default automatic connections)" ,
34
+ " block-relay-only (does not relay transactions or addresses)" ,
35
+ " inbound (initiated by the peer)" ,
36
+ " manual (added via addnode RPC or -addnode/-connect configuration options)" ,
37
+ " addr-fetch (short-lived automatic connection for soliciting addresses)" ,
38
+ " feeler (short-lived automatic connection for testing addresses)"
39
+ };
40
+
32
41
static RPCHelpMan getconnectioncount ()
33
42
{
34
43
return RPCHelpMan{" getconnectioncount" ,
You can’t perform that action at this time.
0 commit comments