Skip to content

Commit

Permalink
Remove protocol-specific assert from TxSetUtils::getInvalidTxList
Browse files Browse the repository at this point in the history
  • Loading branch information
marta-lokhova committed Aug 5, 2024
1 parent e92596f commit e19770f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/herder/TxSetUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,6 @@ TxSetUtils::getInvalidTxList(TxSetTransactions const& txs, Application& app,
ZoneScoped;
LedgerTxn ltx(app.getLedgerTxnRoot(), /* shouldUpdateLastModified */ true,
TransactionMode::READ_ONLY_WITHOUT_SQL_TXN);
#ifdef BUILD_TESTS
if (protocolVersionIsBefore(ltx.loadHeader().current().ledgerVersion,
ProtocolVersion::V_20))
{
return {};
}
#endif
releaseAssert(protocolVersionStartsFrom(
ltx.loadHeader().current().ledgerVersion, ProtocolVersion::V_20));
// This is done so minSeqLedgerGap is validated against the next
// ledgerSeq, which is what will be used at apply time
ltx.loadHeader().current().ledgerSeq =
Expand Down

0 comments on commit e19770f

Please sign in to comment.