Skip to content

Commit

Permalink
Remove obsolete condition in LedgerManager, all ledgers now go to buf…
Browse files Browse the repository at this point in the history
…fered ledgers queue
  • Loading branch information
marta-lokhova committed Dec 17, 2024
1 parent 95cab12 commit d64342b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/ledger/LedgerManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,19 +664,6 @@ LedgerManagerImpl::valueExternalized(LedgerCloseData const& ledgerData,
releaseAssert(false);
}

// if catchup work is running, we don't want ledger manager to close
// this ledger and potentially cause issues.
auto& cm = mApp.getCatchupManager();
bool catchupIsRunning =
cm.isCatchupInitialized() && !cm.catchupWorkIsDone();
if (lcl + 1 == ledgerData.getLedgerSeq() && catchupIsRunning)
{
CLOG_INFO(Ledger,
"Can't close ledger: {} in LM because catchup is running",
ledgerAbbrev(getLastClosedLedgerHeader()));
return;
}

bool synced = cm.processLedger(ledgerData, isLatestSlot);
if (!synced)
{
Expand Down

0 comments on commit d64342b

Please sign in to comment.