From d64342b59fdd424f8c1219ae9a8fef7ac47763aa Mon Sep 17 00:00:00 2001 From: marta-lokhova Date: Mon, 16 Dec 2024 16:17:20 -0800 Subject: [PATCH] Remove obsolete condition in LedgerManager, all ledgers now go to buffered ledgers queue --- src/ledger/LedgerManagerImpl.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/ledger/LedgerManagerImpl.cpp b/src/ledger/LedgerManagerImpl.cpp index ec70403d4b..4c7b6d30a4 100644 --- a/src/ledger/LedgerManagerImpl.cpp +++ b/src/ledger/LedgerManagerImpl.cpp @@ -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) {