You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
argsman.AddArg("-addrinfo", "Get the number of addresses known to the node, per network and total, after filtering for quality and recency. The total number of addresses known to the node may be higher.", ArgsManager::ALLOW_ANY, OptionsCategory::CLI_COMMANDS);
92
93
argsman.AddArg("-getinfo", "Get general information from the remote server. Note that unlike server-side RPC calls, the output of -getinfo is the result of multiple non-atomic requests. Some entries in the output may represent results from different states (e.g. wallet balance may be as of a different block from the chain state reported)", ArgsManager::ALLOW_ANY, OptionsCategory::CLI_COMMANDS);
93
-
argsman.AddArg("-netinfo", "Get network peer connection information from the remote server. An optional integer argument from 0 to 4 can be passed for different peers listings (default: 0). Pass \"help\" for detailed help documentation.", ArgsManager::ALLOW_ANY, OptionsCategory::CLI_COMMANDS);
94
+
argsman.AddArg("-netinfo", strprintf("Get network peer connection information from the remote server. An optional integer argument from 0 to %d can be passed for different peers listings (default: 0). Pass \"help\" for detailed help documentation.", NETINFO_MAX_LEVEL), ArgsManager::ALLOW_ANY, OptionsCategory::CLI_COMMANDS);
94
95
95
96
SetupChainParamsBaseOptions(argsman);
96
97
argsman.AddArg("-color=<when>", strprintf("Color setting for CLI output (default: %s). Valid values: always, auto (add color codes when standard output is connected to a terminal and OS is not WIN32), never.", DEFAULT_COLOR_SETTING), ArgsManager::ALLOW_ANY | ArgsManager::DISALLOW_NEGATION, OptionsCategory::OPTIONS);
@@ -379,7 +380,6 @@ class GetinfoRequestHandler: public BaseRequestHandler
@@ -652,12 +652,12 @@ class NetinfoRequestHandler : public BaseRequestHandler
652
652
"Returns a network peer connections dashboard with information from the remote server.\n"
653
653
"This human-readable interface will change regularly and is not intended to be a stable API.\n"
654
654
"Under the hood, -netinfo fetches the data by calling getpeerinfo and getnetworkinfo.\n"
655
-
+ strprintf("An optional integer argument from 0 to %d can be passed for different peers listings; %d to 255 are parsed as %d.\n", MAX_DETAIL_LEVEL, MAX_DETAIL_LEVEL, MAX_DETAIL_LEVEL) +
655
+
+ strprintf("An optional integer argument from 0 to %d can be passed for different peers listings; values from %d to 255 are parsed as %d.\n", NETINFO_MAX_LEVEL, NETINFO_MAX_LEVEL, NETINFO_MAX_LEVEL) +
656
656
"Pass \"help\" to see this detailed help documentation.\n"
657
657
"If more than one argument is passed, only the first one is read and parsed.\n"
658
658
"Suggestion: use with the Linux watch(1) command for a live dashboard; see example below.\n\n"
659
659
"Arguments:\n"
660
-
+ strprintf("1. level (integer 0-%d, optional) Specify the info level of the peers dashboard (default 0):\n", MAX_DETAIL_LEVEL) +
660
+
+ strprintf("1. level (integer 0-%d, optional) Specify the info level of the peers dashboard (default 0):\n", NETINFO_MAX_LEVEL) +
661
661
" 0 - Peer counts for each reachable network as well as for block relay peers\n"
662
662
" and manual peers, and the list of local addresses and ports\n"
663
663
" 1 - Like 0 but preceded by a peers listing (without address and version columns)\n"
@@ -666,7 +666,7 @@ class NetinfoRequestHandler : public BaseRequestHandler
666
666
" 4 - Like 1 but with both address and version columns\n"
667
667
"2. help (string \"help\", optional) Print this help documentation instead of the dashboard.\n\n"
668
668
"Result:\n\n"
669
-
+ strprintf("* The peers listing in levels 1-%d displays all of the peers sorted by direction and minimum ping time:\n\n", MAX_DETAIL_LEVEL) +
669
+
+ strprintf("* The peers listing in levels 1-%d displays all of the peers sorted by direction and minimum ping time:\n\n", NETINFO_MAX_LEVEL) +
670
670
" Column Description\n"
671
671
" ------ -----------\n"
672
672
" <-> Direction\n"
@@ -716,9 +716,9 @@ class NetinfoRequestHandler : public BaseRequestHandler
716
716
"The same, preceded by a peers listing without address and version columns\n"
0 commit comments