account_info doesn't need ledger_index. fix bug where multiple

ledger objects are fetched
This commit is contained in:
CJ Cobb
2021-01-11 10:16:52 -05:00
parent 72add230f6
commit 850d7a4a45
4 changed files with 50 additions and 15 deletions

View File

@@ -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;