From 48ee743067ebfbd0fe93cf76ff7faea3aa869143 Mon Sep 17 00:00:00 2001 From: Valentin Balaschenko <13349202+vlntb@users.noreply.github.com> Date: Wed, 15 Jul 2026 14:49:22 +0100 Subject: [PATCH] increasing signal quality for Antithesis --- src/xrpld/app/ledger/LedgerHistory.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/xrpld/app/ledger/LedgerHistory.cpp b/src/xrpld/app/ledger/LedgerHistory.cpp index a36ad5245b..b6928c20b1 100644 --- a/src/xrpld/app/ledger/LedgerHistory.cpp +++ b/src/xrpld/app/ledger/LedgerHistory.cpp @@ -454,9 +454,11 @@ LedgerHistory::builtLedger( if (entry.validated && !entry.built) { SOMETIMES(true, "xrpl::LedgerHistory::builtLedger : validated arrived first"); + SOMETIMES( + entry.validated.value() != hash, + "xrpl::LedgerHistory::builtLedger : validated-first mismatch"); if (entry.validated.value() != hash) { - SOMETIMES(true, "xrpl::LedgerHistory::builtLedger : validated-first mismatch"); JLOG(j_.error()) << "MISMATCH: seq=" << index << " validated:" << entry.validated.value() << " then:" << hash; mismatch = MismatchInputs{ @@ -505,9 +507,11 @@ LedgerHistory::validatedLedger( XRPL_ASSERT( entry.consensus.has_value(), "xrpl::LedgerHistory::validatedLedger : consensus set when built set"); + SOMETIMES( + entry.built.value() != hash, + "xrpl::LedgerHistory::validatedLedger : built-first mismatch"); if (entry.built.value() != hash) { - SOMETIMES(true, "xrpl::LedgerHistory::validatedLedger : built-first mismatch"); JLOG(j_.error()) << "MISMATCH: seq=" << index << " built:" << entry.built.value() << " then:" << hash; mismatch = MismatchInputs{