mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Remove redundant RPC accept_ledger.
This commit is contained in:
@@ -558,18 +558,6 @@ Json::Value RPCHandler::accountFromString(Ledger::ref lrLedger, RippleAddress& n
|
|||||||
return Json::Value(Json::objectValue);
|
return Json::Value(Json::objectValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
Json::Value RPCHandler::doAcceptLedger(Json::Value jvRequest)
|
|
||||||
{
|
|
||||||
if (!theConfig.RUN_STANDALONE)
|
|
||||||
return rpcError(rpcNOT_STANDALONE);
|
|
||||||
|
|
||||||
Json::Value jvResult(Json::objectValue);
|
|
||||||
|
|
||||||
jvResult["newLedger"] = theApp->getOPs().acceptLedger();
|
|
||||||
|
|
||||||
return jvResult;
|
|
||||||
}
|
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// ident : <indent>,
|
// ident : <indent>,
|
||||||
// account_index : <index> // optional
|
// account_index : <index> // optional
|
||||||
@@ -2807,7 +2795,6 @@ Json::Value RPCHandler::doCommand(const Json::Value& jvRequest, int iRole)
|
|||||||
unsigned int iOptions;
|
unsigned int iOptions;
|
||||||
} commandsA[] = {
|
} commandsA[] = {
|
||||||
// Request-response methods
|
// Request-response methods
|
||||||
{ "accept_ledger", &RPCHandler::doAcceptLedger, true, optCurrent },
|
|
||||||
{ "account_info", &RPCHandler::doAccountInfo, false, optCurrent },
|
{ "account_info", &RPCHandler::doAccountInfo, false, optCurrent },
|
||||||
{ "account_lines", &RPCHandler::doAccountLines, false, optCurrent },
|
{ "account_lines", &RPCHandler::doAccountLines, false, optCurrent },
|
||||||
{ "account_offers", &RPCHandler::doAccountOffers, false, optCurrent },
|
{ "account_offers", &RPCHandler::doAccountOffers, false, optCurrent },
|
||||||
|
|||||||
@@ -43,8 +43,6 @@ class RPCHandler
|
|||||||
|
|
||||||
Json::Value accountFromString(Ledger::ref lrLedger, RippleAddress& naAccount, bool& bIndex, const std::string& strIdent, const int iIndex, const bool bStrict);
|
Json::Value accountFromString(Ledger::ref lrLedger, RippleAddress& naAccount, bool& bIndex, const std::string& strIdent, const int iIndex, const bool bStrict);
|
||||||
|
|
||||||
Json::Value doAcceptLedger(Json::Value jvRequest);
|
|
||||||
|
|
||||||
Json::Value doAccountInfo(Json::Value params);
|
Json::Value doAccountInfo(Json::Value params);
|
||||||
Json::Value doAccountLines(Json::Value params);
|
Json::Value doAccountLines(Json::Value params);
|
||||||
Json::Value doAccountOffers(Json::Value params);
|
Json::Value doAccountOffers(Json::Value params);
|
||||||
|
|||||||
Reference in New Issue
Block a user