mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add ledger_get RPC command to fetch a ledger from the network
Conflicts: Builds/VisualStudio2013/RippleD.vcxproj Builds/VisualStudio2013/RippleD.vcxproj.filters Builds/VisualStudio2013/RippleD2.vcxproj Builds/VisualStudio2013/RippleD2.vcxproj.filters src/ripple_rpc/impl/Handlers.cpp
This commit is contained in:
@@ -91,6 +91,7 @@ void printHelp (const po::options_description& desc)
|
||||
cerr << " ledger_accept" << endl;
|
||||
cerr << " ledger_closed" << endl;
|
||||
cerr << " ledger_current" << endl;
|
||||
cerr << " ledger_get <ledger>" << endl;
|
||||
cerr << " ledger_header <ledger>" << endl;
|
||||
cerr << " logrotate " << endl;
|
||||
cerr << " peers" << endl;
|
||||
@@ -101,6 +102,7 @@ void printHelp (const po::options_description& desc)
|
||||
cerr << " ripple ..." << endl;
|
||||
cerr << " ripple_path_find <json> [<ledger>]" << endl;
|
||||
// cerr << " send <seed> <paying_account> <account_id> <amount> [<currency>] [<send_max>] [<send_currency>]" << endl;
|
||||
cerr << " server_info" << endl;
|
||||
cerr << " stop" << endl;
|
||||
cerr << " tx <id>" << endl;
|
||||
cerr << " unl_add <domain>|<public> [<comment>]" << endl;
|
||||
|
||||
@@ -139,6 +139,7 @@ Json::Value RPCHandler::doCommand (const Json::Value& params, int iRole, Resourc
|
||||
{ "ledger_current", &RPCHandler::doLedgerCurrent, false, optCurrent },
|
||||
{ "ledger_data", &RPCHandler::doLedgerData, false, optCurrent },
|
||||
{ "ledger_entry", &RPCHandler::doLedgerEntry, false, optCurrent },
|
||||
{ "ledger_get", &RPCHandler::doLedgerGet, true, optNone },
|
||||
{ "ledger_header", &RPCHandler::doLedgerHeader, false, optCurrent },
|
||||
{ "log_level", &RPCHandler::doLogLevel, true, optNone },
|
||||
{ "logrotate", &RPCHandler::doLogRotate, true, optNone },
|
||||
|
||||
@@ -87,6 +87,7 @@ private:
|
||||
Json::Value doLedgerCurrent (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
|
||||
Json::Value doLedgerData (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
|
||||
Json::Value doLedgerEntry (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
|
||||
Json::Value doLedgerGet (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
|
||||
Json::Value doLedgerHeader (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
|
||||
Json::Value doLogLevel (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
|
||||
Json::Value doLogRotate (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
|
||||
|
||||
@@ -813,6 +813,7 @@ public:
|
||||
{ "ledger_closed", &RPCParser::parseAsIs, 0, 0 },
|
||||
{ "ledger_current", &RPCParser::parseAsIs, 0, 0 },
|
||||
// { "ledger_entry", &RPCParser::parseLedgerEntry, -1, -1 },
|
||||
{ "ledger_get", &RPCParser::parseLedgerId, 1, 1 },
|
||||
{ "ledger_header", &RPCParser::parseLedgerId, 1, 1 },
|
||||
{ "log_level", &RPCParser::parseLogLevel, 0, 2 },
|
||||
{ "logrotate", &RPCParser::parseAsIs, 0, 0 },
|
||||
|
||||
Reference in New Issue
Block a user