mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Simplify lookupLedger to use an RPC::Context.
This commit is contained in:
committed by
Vinnie Falco
parent
c094772bc0
commit
a0010effbc
@@ -40,7 +40,7 @@ Json::Value doLedgerData (RPC::Context& context)
|
||||
Ledger::pointer lpLedger;
|
||||
auto const& params = context.params;
|
||||
|
||||
Json::Value jvResult = RPC::lookupLedger (params, lpLedger, context.ledgerMaster);
|
||||
auto jvResult = RPC::lookupLedger (lpLedger, context);
|
||||
if (!lpLedger)
|
||||
return jvResult;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user