aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Alberto Ferraris <[email protected]>2011-05-07 18:34:32 +0200
committerCarlo Alberto Ferraris <[email protected]>2011-05-07 18:34:32 +0200
commitec86134a0daa116dfbcc3403fae78ebb5d57368a (patch)
tree8103c65d6438981447913d6c98a291bedae10855
parentadd parameter from to listtransactions this allows querying for ranges, i.e. ... (diff)
downloaddiscoin-ec86134a0daa116dfbcc3403fae78ebb5d57368a.tar.xz
discoin-ec86134a0daa116dfbcc3403fae78ebb5d57368a.zip
Allow using the [from] parameter also from command-line
-rw-r--r--rpc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc.cpp b/rpc.cpp
index 69db71a80..e8335cd51 100644
--- 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)
{