#include <MPTInvariant.h>
Definition at line 15 of file MPTInvariant.h.
◆ visitEntry()
Track MPT issuance and holding creations, deletions, and mutations.
- Parameters
-
| isDelete | Whether the ledger entry is being deleted. |
| before | The ledger entry before transaction application. |
| after | The ledger entry after transaction application. |
Definition at line 69 of file MPTInvariant.cpp.
◆ finalize()
Verify MPT issuance invariants after transaction application.
- Parameters
-
| tx | The transaction being checked. |
| result | The transaction result code. |
| fee | The fee charged by the transaction. |
| view | The ledger view after transaction application. |
| j | Journal used for diagnostics. |
- Returns
- true if the invariant checks pass, otherwise false.
Definition at line 129 of file MPTInvariant.cpp.
◆ mptIssuancesCreated_
◆ mptIssuancesDeleted_
◆ mptokensCreated_
◆ mptokensDeleted_
◆ mptCreatedByIssuer_
| bool xrpl::ValidMPTIssuance::mptCreatedByIssuer_ = false |
|
private |
◆ referenceHoldingSetOnCreate_
| bool xrpl::ValidMPTIssuance::referenceHoldingSetOnCreate_ = false |
|
private |
sfReferenceHolding is intended to be set exactly once at vault creation and immutable thereafter; true when that rule was violated.
Definition at line 28 of file MPTInvariant.h.
◆ referenceHoldingMutated_
| bool xrpl::ValidMPTIssuance::referenceHoldingMutated_ = false |
|
private |
True when sfReferenceHolding was mutated on an existing MPTokenIssuance.
Definition at line 31 of file MPTInvariant.h.
◆ deletedHoldings_
MPTokens and RippleStates deleted during apply.
finalize() checks each holder's AccountRoot to detect vault pseudo-account holdings deleted outside VaultDelete. All these checks are gated on fixCleanup3_2_0.
Definition at line 36 of file MPTInvariant.h.