Merge branch 'api' of github.com:jedmccaleb/NewCoin

This commit is contained in:
jed
2012-11-02 12:18:25 -07:00
7 changed files with 37 additions and 13 deletions

View File

@@ -1609,8 +1609,19 @@ Json::Value RPCHandler::doRippleLinesGet(const Json::Value &params)
}
// submit any transaction to the network
// submit private_key json
Json::Value RPCHandler::doSubmit(const Json::Value& params)
{
RippleAddress naSeed;
std::string txJSON= params[1u].asString();
if (!naSeed.setSeedGeneric(params[0u].asString()))
{
return rpcError(rpcBAD_SEED);
}
// TODO
return rpcError(rpcSRC_ACT_MALFORMED);
}
@@ -2384,6 +2395,7 @@ Json::Value RPCHandler::doCommand(const std::string& command, Json::Value& param
{ "ripple_lines_get", &RPCHandler::doRippleLinesGet, 1, 2, false, optCurrent },
{ "ripple_line_set", &RPCHandler::doRippleLineSet, 4, 7, false, optCurrent },
{ "send", &RPCHandler::doSend, 3, 9, false, optCurrent },
{ "submit", &RPCHandler::doSubmit, 2, 2, false, optCurrent },
{ "server_info", &RPCHandler::doServerInfo, 0, 0, true },
{ "stop", &RPCHandler::doStop, 0, 0, true },
{ "tx", &RPCHandler::doTx, 1, 1, true },