fixup! Change the "Legacy" variables to amendment checks in visitNodes

This commit is contained in:
Ed Hennis
2026-04-14 21:01:04 -04:00
parent d3e85087e0
commit 6ccc393ab9

View File

@@ -129,6 +129,10 @@ class Invariants_test : public beast::unit_test::suite
beast::Journal const jlog{sink};
ApplyContext ac{env.app(), ov, tx, tesSUCCESS, env.current()->fees().base, tapNONE, jlog};
// Invariants normally run in the Transaction's "apply" (operator()) context, and can access
// global Rules. (Not dependent on amendments.)
CurrentTransactionRulesGuard const rg(ov.rules());
BEAST_EXPECT(precheck(A1, A2, ac));
// invoke check twice to cover tec and tef cases