mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Introduce a two-phase visitor pattern (visitInvariantEntry / finalizeInvariants) on Transactor so individual transaction types can define their own post-condition checks. These run before the existing protocol-wide invariants and short-circuit on failure to avoid misleading secondary errors. - Add pure virtual visitInvariantEntry and finalizeInvariants to Transactor - Implement checkTransactionInvariants to drive the visitor loop - Extract checkInvariants to orchestrate transaction-specific then protocol-wide checks with reset-and-retry on failure - Move failInvariantCheck from private to public in ApplyContext