mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +00:00
fix initial ledger load
This commit is contained in:
@@ -126,8 +126,12 @@ ReportingETL::loadInitialLedger(uint32_t startingSequence)
|
||||
|
||||
if (!stopping_)
|
||||
{
|
||||
flatMapBackend_.sync();
|
||||
writeToPostgres(lgrInfo, accountTxData, pgPool_);
|
||||
for (auto& data : accountTxData)
|
||||
{
|
||||
flatMapBackend_.storeAccountTx(std::move(data));
|
||||
}
|
||||
bool success = flatMapBackend_.writeLedger(
|
||||
lgrInfo, std::move(*ledgerData->mutable_ledger_header()));
|
||||
}
|
||||
auto end = std::chrono::system_clock::now();
|
||||
BOOST_LOG_TRIVIAL(debug) << "Time to download and store ledger = "
|
||||
|
||||
Reference in New Issue
Block a user