@@ -111,7 +111,8 @@ struct CSerializedNetMsg
111
111
* connection. Aside from INBOUND, all types are initiated by us.
112
112
*
113
113
* If adding or removing types, please update CONNECTION_TYPE_DOC in
114
- * src/rpc/net.cpp. */
114
+ * src/rpc/net.cpp and src/qt/rpcconsole.cpp, as well as the descriptions in
115
+ * src/qt/guiutil.cpp and src/bitcoin-cli.cpp::NetinfoRequestHandler. */
115
116
enum class ConnectionType {
116
117
/* *
117
118
* Inbound connections are those initiated by a peer. This is the only
@@ -122,16 +123,16 @@ enum class ConnectionType {
122
123
123
124
/* *
124
125
* These are the default connections that we use to connect with the
125
- * network. There is no restriction on what is relayed- by default we relay
126
+ * network. There is no restriction on what is relayed; by default we relay
126
127
* blocks, addresses & transactions. We automatically attempt to open
127
128
* MAX_OUTBOUND_FULL_RELAY_CONNECTIONS using addresses from our AddrMan.
128
129
*/
129
130
OUTBOUND_FULL_RELAY,
130
131
131
132
132
133
/* *
133
- * We open manual connections to addresses that users explicitly inputted
134
- * via the addnode RPC, or the -connect command line argument . Even if a
134
+ * We open manual connections to addresses that we explicitly requested via
135
+ * the addnode RPC or the -addnode/- connect configuration options . Even if a
135
136
* manual connection is misbehaving, we do not automatically disconnect or
136
137
* add it to our discouragement filter.
137
138
*/
@@ -150,7 +151,7 @@ enum class ConnectionType {
150
151
* although in our codebase feeler connections encompass test-before-evict as well.
151
152
* We make these connections approximately every FEELER_INTERVAL:
152
153
* first we resolve previously found collisions if they exist (test-before-evict),
153
- * otherwise connect to a node from the new table.
154
+ * otherwise we connect to a node from the new table.
154
155
*/
155
156
FEELER,
156
157
0 commit comments