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