aboutsummaryrefslogtreecommitdiff
path: root/src/rpc.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2011-07-12 20:22:38 -0700
committerJeff Garzik <jgarzik@exmulti.com>2011-07-12 20:22:38 -0700
commit4ea952d5c03e18b9ddd0e97f4434cd9092358dab (patch)
treef0f627dc9188eb11b02bed39ca66287ccd9634af /src/rpc.cpp
parent0ca8324f599eda83cae5f6a99ed9d1d40ec3ff2d (diff)
parentd0538a81bb7836865086d72ccc6a4d263fa49aef (diff)
Merge pull request #399 from muggenhor/warning-fixes
Warning fixes
Diffstat (limited to 'src/rpc.cpp')
-rw-r--r--src/rpc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp
index fbed626a84..4016d265c4 100644
--- a/src/rpc.cpp
+++ b/src/rpc.cpp
@@ -706,7 +706,7 @@ int64 GetAccountBalance(const string& strAccount, int nMinDepth)
Value getbalance(const Array& params, bool fHelp)
{
- if (fHelp || params.size() < 0 || params.size() > 2)
+ if (fHelp || params.size() > 2)
throw runtime_error(
"getbalance [account] [minconf=1]\n"
"If [account] is not specified, returns the server's total available balance.\n"
@@ -2419,7 +2419,6 @@ int CommandLineRPC(int argc, char *argv[])
// Parse reply
const Value& result = find_value(reply, "result");
const Value& error = find_value(reply, "error");
- const Value& id = find_value(reply, "id");
if (error.type() != null_type)
{