git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5aef2c0
)
Allow using the [from] parameter also from command-line
author
Carlo Alberto Ferraris
<github@cafxx.strayorange.com>
Sat, 7 May 2011 16:34:32 +0000 (18:34 +0200)
committer
Carlo Alberto Ferraris
<github@cafxx.strayorange.com>
Sat, 7 May 2011 16:34:32 +0000 (18:34 +0200)
rpc.cpp
patch
|
blob
|
history
diff --git
a/rpc.cpp
b/rpc.cpp
index
69db71a
..
e8335cd
100644
(file)
--- a/
rpc.cpp
+++ b/
rpc.cpp
@@
-2087,6
+2087,7
@@
int CommandLineRPC(int argc, char *argv[])
if (strMethod == "sendfrom" && n > 2) ConvertTo<double>(params[2]);
if (strMethod == "sendfrom" && n > 3) ConvertTo<boost::int64_t>(params[3]);
if (strMethod == "listtransactions" && n > 1) ConvertTo<boost::int64_t>(params[1]);
+ if (strMethod == "listtransactions" && n > 2) ConvertTo<boost::int64_t>(params[2]);
if (strMethod == "listaccounts" && n > 0) ConvertTo<boost::int64_t>(params[0]);
if (strMethod == "sendmany" && n > 1)
{