Browse Source

Allow using the [from] parameter also from command-line

miguelfreitas
Carlo Alberto Ferraris 14 years ago
parent
commit
ec86134a0d
  1. 1
      rpc.cpp

1
rpc.cpp

@ -2087,6 +2087,7 @@ int CommandLineRPC(int argc, char *argv[]) @@ -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)
{

Loading…
Cancel
Save