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 | +extern const std::vector<std::string> CONNECTION_TYPE_DOC;
f476fbdf84c88b7ab90aa3e9240b39806525a8b6
not sure if this was asked before, CONNECTION_TYPE_DOC is used only in src/rpc/net.cpp, why not just have it there?
hmm, good point!
history: Marco suggested extracting in #19725 (review). I thought a benefit was to keep CONNECTION_TYPE_DOC next to ConnectionType definition for future updates, but now we don't have that regardless. I've moved into src/rpc/net.cpp and added a comment on the ConnectionType enum for future code changes.