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("-generate", strprintf("Generate blocks immediately, equivalent to RPC getnewaddress followed by RPC generatetoaddress. Optional positional integer arguments are number of blocks to generate (default: %s) and maximum iterations to try (default: %s), equivalent to RPC generatetoaddress nblocks and maxtries arguments. Example: bitcoin-cli -generate 4 1000", DEFAULT_NBLOCKS, DEFAULT_MAX_TRIES), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
64
65
argsman.AddArg("-addrinfo", "Get the number of addresses known to the node, per network and total.", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
65
66
argsman.AddArg("-getinfo", "Get general information from the remote server. Note that unlike server-side RPC calls, the results of -getinfo is the result of multiple non-atomic requests. Some entries in the result 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::OPTIONS);
66
-
argsman.AddArg("-netinfo", "Get network peer connection information from the remote server. An optional integer argument from 0 to 5 can be passed for different peers listings (default: 0). Pass \"help\" for detailed help documentation.", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
67
-
67
+
argsman.AddArg("-netinfo", strprintf("Get network peer connection information from the remote server. An optional integer argument from 0 to %u can be passed for different peers listings (default: 0). Pass \"help\" for detailed help documentation.", NETINFO_MAX_DETAIL_LEVEL), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
68
68
SetupChainParamsBaseOptions(argsman);
69
69
argsman.AddArg("-named", strprintf("Pass named instead of positional arguments (default: %s)", DEFAULT_NAMED), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
70
70
argsman.AddArg("-rpcclienttimeout=<n>", strprintf("Timeout in seconds during HTTP requests, or 0 for no timeout. (default: %d)", DEFAULT_HTTP_CLIENT_TIMEOUT), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
@@ -357,7 +357,6 @@ class GetinfoRequestHandler: public BaseRequestHandler
@@ -582,12 +581,12 @@ class NetinfoRequestHandler : public BaseRequestHandler
582
581
"Returns a network peer connections dashboard with information from the remote server.\n"
583
582
"This human-readable interface will change regularly and is not intended to be a stable API.\n"
584
583
"Under the hood, -netinfo fetches the data by calling getpeerinfo and getnetworkinfo.\n"
585
-
+ 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) +
584
+
+ strprintf("An optional integer argument from 0 to %u can be passed for different peers listings; %u to 255 are parsed as %u.\n", NETINFO_MAX_DETAIL_LEVEL, NETINFO_MAX_DETAIL_LEVEL, NETINFO_MAX_DETAIL_LEVEL) +
586
585
"Pass \"help\" to see this detailed help documentation.\n"
587
586
"If more than one argument is passed, only the first one is read and parsed.\n"
588
587
"Suggestion: use with the Linux watch(1) command for a live dashboard; see example below.\n\n"
589
588
"Arguments:\n"
590
-
+ strprintf("1. level (integer 0-%d, optional) Specify the info level of the peers dashboard (default 0):\n", MAX_DETAIL_LEVEL) +
589
+
+ strprintf("1. level (integer 0-%u, optional) Specify the info level of the peers dashboard (default 0):\n", NETINFO_MAX_DETAIL_LEVEL) +
591
590
" 0 - Connection counts and local addresses\n"
592
591
" 1 - Like 0 but with a peers listing (without address or version columns)\n"
593
592
" 2 - Like 1 but with an address column\n"
@@ -596,7 +595,7 @@ class NetinfoRequestHandler : public BaseRequestHandler
596
595
" 5 - Like 4 but with additional data for development and testing purposes\n"
597
596
"2. help (string \"help\", optional) Print this help documentation instead of the dashboard.\n\n"
598
597
"Result:\n\n"
599
-
+ 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) +
598
+
+ strprintf("* The peers listing in levels 1-%u displays all of the peers sorted by direction and minimum ping time:\n\n", NETINFO_MAX_DETAIL_LEVEL) +
600
599
" Column Description\n"
601
600
" ------ -----------\n"
602
601
" <-> Direction\n"
@@ -635,9 +634,9 @@ class NetinfoRequestHandler : public BaseRequestHandler
0 commit comments