We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384e090 commit 62bf5b7Copy full SHA for 62bf5b7
src/bitcoin-cli.cpp
@@ -351,6 +351,14 @@ class NetinfoRequestHandler : public BaseRequestHandler
351
const double milliseconds{round(1000 * seconds)};
352
return milliseconds > 999999 ? "-" : ToString(milliseconds);
353
}
354
+ std::string ConnectionTypeForNetinfo(const std::string& conn_type) const
355
+ {
356
+ if (conn_type == "outbound-full-relay") return "full";
357
+ if (conn_type == "block-relay-only") return "block";
358
+ if (conn_type == "manual" || conn_type == "feeler") return conn_type;
359
+ if (conn_type == "addr-fetch") return "addr";
360
+ return "";
361
+ }
362
const UniValue NetinfoHelp()
363
{
364
return std::string{
0 commit comments