mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 10:35:50 +00:00
Simplify lookupLedger to use an RPC::Context.
This commit is contained in:
committed by
Vinnie Falco
parent
c094772bc0
commit
a0010effbc
@@ -50,7 +50,7 @@ Json::Value doGatewayBalances (RPC::Context& context)
|
||||
|
||||
// Get the current ledger
|
||||
Ledger::pointer ledger;
|
||||
Json::Value result (RPC::lookupLedger (params, ledger, context.ledgerMaster));
|
||||
auto result = RPC::lookupLedger (ledger, context);
|
||||
|
||||
if (!ledger)
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user