mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +00:00
account_info doesn't need ledger_index. fix bug where multiple
ledger objects are fetched
This commit is contained in:
@@ -45,7 +45,8 @@ std::unordered_map<std::string, RPCCommand> commandMap{
|
||||
boost::json::object
|
||||
doAccountInfo(
|
||||
boost::json::object const& request,
|
||||
CassandraFlatMapBackend const& backend);
|
||||
CassandraFlatMapBackend const& backend,
|
||||
std::shared_ptr<PgPool>& postgres);
|
||||
boost::json::object
|
||||
doTx(
|
||||
boost::json::object const& request,
|
||||
@@ -76,7 +77,7 @@ buildResponse(
|
||||
case ledger:
|
||||
break;
|
||||
case account_info:
|
||||
return doAccountInfo(request, backend);
|
||||
return doAccountInfo(request, backend, pgPool);
|
||||
break;
|
||||
default:
|
||||
BOOST_LOG_TRIVIAL(error) << "Unknown command: " << command;
|
||||
|
||||
Reference in New Issue
Block a user