mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 17:56:49 +00:00
fixup! Change the "Legacy" variables to amendment checks in visitNodes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user