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
Copy file name to clipboardExpand all lines: src/bitcoin-cli.cpp
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -512,20 +512,20 @@ class NetinfoRequestHandler : public BaseRequestHandler
512
512
"Returns a network peer connections dashboard with information from the remote server.\n"
513
513
"This human-readable interface will change regularly and is not intended to be a stable API.\n"
514
514
"Under the hood, -netinfo fetches the data by calling getpeerinfo and getnetworkinfo.\n"
515
-
"An optional integer argument from 0 to 4 can be passed for different peers listings.\n"
515
+
+ 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) +
516
516
"Pass \"help\" to see this detailed help documentation.\n"
517
517
"If more than one argument is passed, only the first one is read and parsed.\n"
518
518
"Suggestion: use with the Linux watch(1) command for a live dashboard; see example below.\n\n"
519
519
"Arguments:\n"
520
-
"1. level (integer 0-4, optional) Specify the info level of the peers dashboard (default 0):\n"
520
+
+ strprintf("1. level (integer 0-%d, optional) Specify the info level of the peers dashboard (default 0):\n", MAX_DETAIL_LEVEL) +
521
521
" 0 - Connection counts and local addresses\n"
522
522
" 1 - Like 0 but with a peers listing (without address or version columns)\n"
523
523
" 2 - Like 1 but with an address column\n"
524
524
" 3 - Like 1 but with a version column\n"
525
525
" 4 - Like 1 but with both address and version columns\n"
526
526
"2. help (string \"help\", optional) Print this help documentation instead of the dashboard.\n\n"
527
527
"Result:\n\n"
528
-
"* The peers listing in levels 1-4 displays all of the peers sorted by direction and minimum ping time:\n\n"
528
+
+ 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) +
529
529
" Column Description\n"
530
530
" ------ -----------\n"
531
531
" <-> Direction\n"
@@ -562,9 +562,9 @@ class NetinfoRequestHandler : public BaseRequestHandler
0 commit comments