Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14362711
D5725.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D5725.diff
View Options
diff --git a/src/rpc/avalanche.cpp b/src/rpc/avalanche.cpp
--- a/src/rpc/avalanche.cpp
+++ b/src/rpc/avalanche.cpp
@@ -18,7 +18,7 @@
RPCHelpMan{"getavalanchekey",
"\nReturns the key used to sign avalanche messages.\n",
{}}
- .ToString() +
+ .ToStringWithArgs() +
"\nExamples:\n" + HelpExampleRpc("getavalanchekey", ""));
}
@@ -37,13 +37,12 @@
"addavalanchepeer",
"\nAdd a peer to the set of peer to poll for avalanche.\n",
{
- {"nodeid", RPCArg::Type::NUM, false},
- {"publickey", RPCArg::Type::STR_HEX, false},
+ {"nodeid", RPCArg::Type::NUM, /* opt */ false,
+ /* default_value */ "", "Node to be added to avalanche."},
+ {"publickey", RPCArg::Type::STR_HEX, /* opt */ false,
+ /* default_value */ "", "The public key of the node."},
}}
- .ToString() +
- "\nArguments\n" +
- "1. nodeid (number, required) Node to be added to avalanche.\n" +
- "2. publickey (sring, required) The public key of the node.\n" +
+ .ToStringWithArgs() +
"\nExamples:\n" + HelpExampleRpc("addavalanchepeer", "5"));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 12, 01:42 (1 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5777043
Default Alt Text
D5725.diff (1 KB)
Attached To
D5725: Pass rpc/avalanche RPC argument descriptions to RPCHelpMan
Event Timeline
Log In to Comment