|
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",
|
@@ -119,7 +128,9 @@ static RPCHelpMan getpeerinfo()
|
119 | 128 | {RPCResult::Type::BOOL, "inbound", "Inbound (true) or Outbound (false)"},
|
120 | 129 | {RPCResult::Type::BOOL, "addnode", "Whether connection was due to addnode/-connect or if it was an automatic/inbound connection\n"
|
121 | 130 | "(DEPRECATED, returned only if the config option -deprecatedrpc=getpeerinfo_addnode is passed)"},
|
122 |
| - {RPCResult::Type::STR, "connection_type", "Type of connection: \n" + Join(CONNECTION_TYPE_DOC, ",\n") + "."}, |
| 131 | + {RPCResult::Type::STR, "connection_type", "Type of connection: \n" + Join(CONNECTION_TYPE_DOC, ",\n") + ".\n" |
| 132 | + "Please note this output is unlikely to be stable in upcoming releases as we iterate to\n" |
| 133 | + "best capture connection behaviors."}, |
123 | 134 | {RPCResult::Type::NUM, "startingheight", "The starting height (block) of the peer"},
|
124 | 135 | {RPCResult::Type::NUM, "banscore", "The ban score (DEPRECATED, returned only if config option -deprecatedrpc=banscore is passed)"},
|
125 | 136 | {RPCResult::Type::NUM, "synced_headers", "The last header we have in common with this peer"},
|
|
0 commit comments