test(export): require acquired witness validation

This commit is contained in:
Nicholas Dudfield
2026-07-14 19:53:52 +07:00
parent eca5e299b2
commit c9d9b1ea39

View File

@@ -1400,7 +1400,9 @@ public:
// Four witness-ledger validations make that branch preferred. Peer 0
// must never fully validate its local witness-less build and must
// subsequently jump back to the witness-bearing history.
// promote the acquired witness ledger before subsequent recovery.
BEAST_EXPECT(
peers[0]->fullyValidatedLedger.id() == witnessLedger.id());
BEAST_EXPECT(
peers[0]->fullyValidatedLedger.id() != witnesslessLedger.id());
for (Peer* peer : peers)