From eca5e299b23fca917fa2e85c9bd0dd869c0c40f6 Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Tue, 14 Jul 2026 19:46:41 +0700 Subject: [PATCH] test(export): bind recovery jump to witness branch --- src/test/consensus/ConsensusRng_test.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/consensus/ConsensusRng_test.cpp b/src/test/consensus/ConsensusRng_test.cpp index 1d5634a7f..749ff2e7b 100644 --- a/src/test/consensus/ConsensusRng_test.cpp +++ b/src/test/consensus/ConsensusRng_test.cpp @@ -22,6 +22,8 @@ #include #include +#include + namespace ripple { namespace test { @@ -1413,7 +1415,12 @@ public: BEAST_EXPECT(peer->lastClosedLedger.isAncestor(witnessLedger)); BEAST_EXPECT(peer->fullyValidatedLedger.isAncestor(witnessLedger)); } - BEAST_EXPECT(!jumps[peers[0]->id].closeJumps.empty()); + auto const& peer0Jumps = jumps[peers[0]->id].closeJumps; + BEAST_EXPECT(std::any_of( + peer0Jumps.begin(), peer0Jumps.end(), [&](auto const& jump) { + return jump.from.id() == witnesslessLedger.id() && + jump.to.isAncestor(witnessLedger); + })); } void