Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc: Cleanup Help Message and Fix Typo #1771

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/rpcblockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ UniValue rainbymagnitude(const UniValue& params, bool fHelp)
"rainbymagnitude <whitelisted project> <amount> [message]\n"
"\n"
"<whitelisted project> --> Required: If a project is specified, rain will be limited to that project. Use * for network-wide.\n"
"<amount> --> Required: Specify amount of coints in double to be rained\n"
"<amount> --> Required: Specify amount of coins to be rained in double precision float\n"
"[message] -> Optional: Provide a message rained to all rainees\n"
"\n"
"rain coins by magnitude on network");
Expand Down
2 changes: 1 addition & 1 deletion src/rpcmining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ UniValue getmininginfo(const UniValue& params, bool fHelp)
diff.pushKV("target", nTargetDiff);

{ LOCK(MinerStatus.lock);
// not using real weigh to not break calculation
// not using real weight to not break calculation
bool staking = MinerStatus.nLastCoinStakeSearchInterval && MinerStatus.WeightSum;
diff.pushKV("last-search-interval", MinerStatus.nLastCoinStakeSearchInterval);
weight.pushKV("minimum", MinerStatus.WeightMin);
Expand Down
4 changes: 3 additions & 1 deletion src/rpcnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ UniValue setban(const UniValue& params, bool fHelp)
if (fHelp || params.size() < 2 || params.size() > 4 || (strCommand != "add" && strCommand != "remove"))
{
throw runtime_error(
"setban <ip or subnet> <command> [bantime] [absolute]: add or remove an IP/Subnet from the banned list.\n"
"setban <ip or subnet> <command> [bantime] [absolute]\n"
"\n"
"add or remove an IP/Subnet from the banned list.\n"
"subnet: The IP/Subnet (see getpeerinfo for nodes IP) with an optional netmask (default is /32 = single IP) \n"
"command: 'add' to add an IP/Subnet to the list, 'remove' to remove an IP/Subnet from the list \n"
"bantime: time in seconds how long (or until when if [absolute] is set) the IP is banned \n"
Expand Down
4 changes: 3 additions & 1 deletion src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,9 @@ UniValue getbalance(const UniValue& params, bool fHelp)
UniValue getunconfirmedbalance(const UniValue& params, bool fHelp)
{
if (fHelp || params.size() > 0)
throw runtime_error("getunconfirmedbalance: returns unconfirmed balance in wallet\n");
throw runtime_error("getunconfirmedbalance\n"
"\n"
"returns the unconfirmed balance in the wallet\n");

return ValueFromAmount(pwalletMain->GetUnconfirmedBalance());
}
Expand Down