|
xrpld
|
Verify public MPT amount and outstanding amount accounting. More...
#include <MPTInvariant.h>

Classes | |
| struct | MPTData |
Public Member Functions | |
| void | visitEntry (bool isDelete, SLE::const_ref before, SLE::const_ref after) |
| Track MPT amount and outstanding amount changes. | |
| bool | finalize (STTx const &tx, TER const result, XRPAmount const fee, ReadView const &view, beast::Journal const &j) |
| Verify public MPT payment accounting invariants. | |
Private Types | |
| enum class | Order { Before = 0 , After = 1 } |
Private Attributes | |
| bool | overflow_ {false} |
| hash_map< uint192, MPTData > | data_ |
Verify public MPT amount and outstanding amount accounting.
Checks that OutstandingAmount does not exceed MaximumAmount and that OutstandingAmount after application equals OutstandingAmount before application plus the net holder balance delta.
Definition at line 76 of file MPTInvariant.h.
|
strongprivate |
| Enumerator | |
|---|---|
| Before | |
| After | |
Definition at line 78 of file MPTInvariant.h.
| void xrpl::ValidMPTPayment::visitEntry | ( | bool | isDelete, |
| SLE::const_ref | before, | ||
| SLE::const_ref | after ) |
Track MPT amount and outstanding amount changes.
| 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 407 of file MPTInvariant.cpp.
| bool xrpl::ValidMPTPayment::finalize | ( | STTx const & | tx, |
| TER const | result, | ||
| XRPAmount const | fee, | ||
| ReadView const & | view, | ||
| beast::Journal const & | j ) |
Verify public MPT payment accounting invariants.
| 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. |
Definition at line 469 of file MPTInvariant.cpp.
|
private |
Definition at line 87 of file MPTInvariant.h.
Definition at line 89 of file MPTInvariant.h.