Fix wrong assert (#1003)

This commit is contained in:
Sergey Kuznetsov
2023-11-28 14:06:17 +00:00
committed by GitHub
parent a5fbb01299
commit 1be368dcaf

View File

@@ -39,7 +39,7 @@ ETLService::runETLPipeline(uint32_t startSequence, uint32_t numExtractors)
auto const rng = backend_->hardFetchLedgerRangeNoThrow();
ASSERT(rng.has_value(), "Parent ledger range can't be null");
ASSERT(
rng->maxSequence < startSequence - 1,
rng->maxSequence >= startSequence - 1,
"Got not parent ledger. rnd->maxSequence = {}, startSequence = {}",
rng->maxSequence,
startSequence