Skip to content

Commit dc6ac5c

Browse files
authored
Merge pull request #1771 from RoboticMind/rpc-code-cleanup
rpc: Cleanup Help Message and Fix Typo
2 parents 5a1ca46 + 4a94fbb commit dc6ac5c

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/rpcblockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ UniValue rainbymagnitude(const UniValue& params, bool fHelp)
427427
"rainbymagnitude <whitelisted project> <amount> [message]\n"
428428
"\n"
429429
"<whitelisted project> --> Required: If a project is specified, rain will be limited to that project. Use * for network-wide.\n"
430-
"<amount> --> Required: Specify amount of coints in double to be rained\n"
430+
"<amount> --> Required: Specify amount of coins to be rained in double precision float\n"
431431
"[message] -> Optional: Provide a message rained to all rainees\n"
432432
"\n"
433433
"rain coins by magnitude on network");

src/rpcmining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ UniValue getmininginfo(const UniValue& params, bool fHelp)
5454
diff.pushKV("target", nTargetDiff);
5555

5656
{ LOCK(MinerStatus.lock);
57-
// not using real weigh to not break calculation
57+
// not using real weight to not break calculation
5858
bool staking = MinerStatus.nLastCoinStakeSearchInterval && MinerStatus.WeightSum;
5959
diff.pushKV("last-search-interval", MinerStatus.nLastCoinStakeSearchInterval);
6060
weight.pushKV("minimum", MinerStatus.WeightMin);

src/rpcnet.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ UniValue setban(const UniValue& params, bool fHelp)
180180
if (fHelp || params.size() < 2 || params.size() > 4 || (strCommand != "add" && strCommand != "remove"))
181181
{
182182
throw runtime_error(
183-
"setban <ip or subnet> <command> [bantime] [absolute]: add or remove an IP/Subnet from the banned list.\n"
183+
"setban <ip or subnet> <command> [bantime] [absolute]\n"
184+
"\n"
185+
"add or remove an IP/Subnet from the banned list.\n"
184186
"subnet: The IP/Subnet (see getpeerinfo for nodes IP) with an optional netmask (default is /32 = single IP) \n"
185187
"command: 'add' to add an IP/Subnet to the list, 'remove' to remove an IP/Subnet from the list \n"
186188
"bantime: time in seconds how long (or until when if [absolute] is set) the IP is banned \n"

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,9 @@ UniValue getbalance(const UniValue& params, bool fHelp)
763763
UniValue getunconfirmedbalance(const UniValue& params, bool fHelp)
764764
{
765765
if (fHelp || params.size() > 0)
766-
throw runtime_error("getunconfirmedbalance: returns unconfirmed balance in wallet\n");
766+
throw runtime_error("getunconfirmedbalance\n"
767+
"\n"
768+
"returns the unconfirmed balance in the wallet\n");
767769

768770
return ValueFromAmount(pwalletMain->GetUnconfirmedBalance());
769771
}

0 commit comments

Comments
 (0)