diff --git a/src/cpp/ripple/RPCHandler.cpp b/src/cpp/ripple/RPCHandler.cpp index 30d5de75f..7bc3d1783 100644 --- a/src/cpp/ripple/RPCHandler.cpp +++ b/src/cpp/ripple/RPCHandler.cpp @@ -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 }, diff --git a/src/cpp/ripple/RPCHandler.h b/src/cpp/ripple/RPCHandler.h index a5650a214..5d4fe29da 100644 --- a/src/cpp/ripple/RPCHandler.h +++ b/src/cpp/ripple/RPCHandler.h @@ -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: