git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6511bd8
)
Use existing RPC_INVALID_PARAMETER constant
author
alex
<alex@alex-VirtualBox.(none)>
Sat, 24 Aug 2013 14:34:15 +0000 (18:34 +0400)
committer
alex
<alex@alex-VirtualBox.(none)>
Sat, 24 Aug 2013 14:34:15 +0000 (18:34 +0400)
src/rpcwallet.cpp
patch
|
blob
|
history
diff --git
a/src/rpcwallet.cpp
b/src/rpcwallet.cpp
index
4550667
..
47ebec0
100644
(file)
--- a/
src/rpcwallet.cpp
+++ b/
src/rpcwallet.cpp
@@
-1346,7
+1346,7
@@
Value keypoolrefill(const Array& params, bool fHelp)
unsigned int nSize = max(GetArg("-keypool", 100), 0LL);
if (params.size() > 0) {
if (params[0].get_int() < 0)
- throw JSONRPCError(-8, "Invalid parameter, expected valid size");
+ throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected valid size");
nSize = (unsigned int) params[0].get_int();
}