Fix not leaving the "need network ledger" state correctly.

This commit is contained in:
JoelKatz
2013-01-04 00:08:27 -08:00
parent aee92a447c
commit 06c54c425c
4 changed files with 3 additions and 13 deletions

View File

@@ -1160,16 +1160,6 @@ 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);
@@ -2457,7 +2447,6 @@ 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 },