Page MenuHomePhabricator

D5725.diff
No OneTemporary

D5725.diff

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

Mime Type
text/plain
Expires
Mon, May 12, 01:42 (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5777043
Default Alt Text
D5725.diff (1 KB)

Event Timeline