Load cache from our own database

This commit is contained in:
CJ Cobb
2022-03-04 16:34:47 -05:00
parent a6afbd0945
commit b332c388d2
11 changed files with 61 additions and 68 deletions

View File

@@ -68,7 +68,7 @@ doLedgerData(Context const& context)
Backend::LedgerPage page;
auto start = std::chrono::system_clock::now();
page = context.backend->fetchLedgerPage(
cursor, lgrInfo.seq, limit, 0, context.yield);
cursor, lgrInfo.seq, limit, context.yield);
auto end = std::chrono::system_clock::now();
@@ -137,17 +137,6 @@ doLedgerData(Context const& context)
}
response["state"] = objects;
if (cursor && page.warning)
{
response["warning"] =
"Periodic database update in progress. Data for this ledger may be "
"incomplete. Data should be complete "
"within a few minutes. Other RPC calls are not affected, "
"regardless of ledger. This "
"warning is only present on the first "
"page of the ledger";
}
return response;
}