From d013933fafb0df0cfd6274934df8b11119d94ca4 Mon Sep 17 00:00:00 2001 From: Valentin Balaschenko <13349202+vlntb@users.noreply.github.com> Date: Fri, 10 Jul 2026 13:38:52 +0100 Subject: [PATCH] additional Antithesis probes --- include/xrpl/basics/TaggedCache.ipp | 2 +- src/xrpld/app/ledger/LedgerHistory.cpp | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/include/xrpl/basics/TaggedCache.ipp b/include/xrpl/basics/TaggedCache.ipp index 9396c344fe..2395c3f0da 100644 --- a/include/xrpl/basics/TaggedCache.ipp +++ b/include/xrpl/basics/TaggedCache.ipp @@ -693,7 +693,7 @@ TaggedCachesecond != ledgerHash) { + SOMETIMES(true, "xrpl::LedgerHistory::fixIndex : hash repaired"); it->second = ledgerHash; return false; } @@ -584,7 +595,7 @@ LedgerHistory::clearLedgerCachePrior(LedgerIndex seq) std::erase_if(lock->byIndex, [seq](auto const& kv) { return kv.first < seq; }); indexSize = lock->byIndex.size(); - XRPL_ASSERT( + ALWAYS( lock->byIndex.empty() || lock->byIndex.begin()->first >= seq, "xrpl::LedgerHistory::clearLedgerCachePrior : byIndex pruned to seq"); }