diff options
| author | Gavin Andresen <[email protected]> | 2013-08-07 04:44:57 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-08-07 04:44:57 -0700 |
| commit | 9d23db58c19117bbadd79aa658e730f703e36f0e (patch) | |
| tree | 74a4fd2d6203888bfb57c310ac99019bf45587e0 | |
| parent | Merge pull request #2871 from gavinandresen/simplify_maporphan (diff) | |
| parent | Use existing RPC_INVALID_PARAMETER constant (diff) | |
| download | discoin-9d23db58c19117bbadd79aa658e730f703e36f0e.tar.xz discoin-9d23db58c19117bbadd79aa658e730f703e36f0e.zip | |
Merge pull request #2883 from codler/patch-5
Replace with existing constants
| -rw-r--r-- | src/rpcwallet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 5388bd4d8..c4f14b492 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -1492,18 +1492,18 @@ Value lockunspent(const Array& params, bool fHelp) BOOST_FOREACH(Value& output, outputs) { if (output.type() != obj_type) - throw JSONRPCError(-8, "Invalid parameter, expected object"); + throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected object"); const Object& o = output.get_obj(); RPCTypeCheck(o, map_list_of("txid", str_type)("vout", int_type)); string txid = find_value(o, "txid").get_str(); if (!IsHex(txid)) - throw JSONRPCError(-8, "Invalid parameter, expected hex txid"); + throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected hex txid"); int nOutput = find_value(o, "vout").get_int(); if (nOutput < 0) - throw JSONRPCError(-8, "Invalid parameter, vout must be positive"); + throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout must be positive"); COutPoint outpt(uint256(txid), nOutput); |