From 66214c8ab36ea483b3694b437da0829ff42df293 Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Thu, 16 Jul 2026 13:36:58 +0700 Subject: [PATCH] test: isolate Export committee immutability guard --- src/test/ledger/Invariants_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/ledger/Invariants_test.cpp b/src/test/ledger/Invariants_test.cpp index 2953fba78..668605333 100644 --- a/src/test/ledger/Invariants_test.cpp +++ b/src/test/ledger/Invariants_test.cpp @@ -1300,8 +1300,8 @@ class Invariants_test : public beast::unit_test::suite return true; }); - // Once created, even a structurally valid roster replacement is an - // invariant violation. + // Once created, even a change that preserves the content-addressed + // fields is an invariant violation. doInvariantCheck( {{"Invariant failed: malformed or mutated Export committee"}}, [](Account const& A1, Account const& A2, ApplyContext& ac) { @@ -1311,8 +1311,8 @@ class Invariants_test : public beast::unit_test::suite ac.view().peek(keylet::exportCommittee(A1.id(), digest)); if (!sle) return false; - sle->setFieldVL( - sfExportCommittee, serializeExportCommittee({A1.pk()})); + sle->setFieldU64( + sfOwnerNode, sle->getFieldU64(sfOwnerNode) + 1); ac.view().update(sle); return true; },