Emergency fix.

This commit is contained in:
JoelKatz
2013-01-03 23:28:03 -08:00
parent 11cb109c16
commit 3eafdbc38b
2 changed files with 12 additions and 0 deletions

View File

@@ -1160,6 +1160,16 @@ Json::Value RPCHandler::doSubmit(Json::Value jvRequest)
}
}
Json::Value RPCHandler::doLedgerOkay(Json::Value)
{
theApp->getOPs().clearNeedNetworkLedger();
Json::Value ret(Json::objectValue);
ret["okay"] = true;
return ret;
}
Json::Value RPCHandler::doServerInfo(Json::Value)
{
Json::Value ret(Json::objectValue);
@@ -2447,6 +2457,7 @@ Json::Value RPCHandler::doCommand(Json::Value& jvRequest, int iRole)
{ "ripple_path_find", &RPCHandler::doRipplePathFind, false, optCurrent },
{ "submit", &RPCHandler::doSubmit, false, optCurrent },
{ "server_info", &RPCHandler::doServerInfo, true, optNone },
{ "ledger_okay", &RPCHandler::doLedgerOkay, true, optNone },
{ "stop", &RPCHandler::doStop, true, optNone },
{ "transaction_entry", &RPCHandler::doTransactionEntry, false, optCurrent },
{ "tx", &RPCHandler::doTx, false, optNetwork },

View File

@@ -90,6 +90,7 @@ class RPCHandler
Json::Value doSubscribe(Json::Value params);
Json::Value doUnsubscribe(Json::Value params);
Json::Value doLedgerOkay(Json::Value params);
public: