rippled
|
Prototype for invariant check implementations. More...
Public Member Functions | |
InvariantChecker_PROTOTYPE ()=default | |
void | visitEntry (bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after) |
called for each ledger entry in the current transaction. More... | |
bool | finalize (STTx const &tx, TER const tec, XRPAmount const fee, ReadView const &view, beast::Journal const &j) |
called after all ledger entries have been visited to determine the final status of the check More... | |
Prototype for invariant check implementations.
THIS CLASS DOES NOT EXIST - or rather it exists in documentation only to communicate the interface required of any invariant checker. Any invariant check implementation should implement the public methods documented here.
Definition at line 46 of file InvariantCheck.h.
|
explicitdefault |
void ripple::InvariantChecker_PROTOTYPE::visitEntry | ( | bool | isDelete, |
std::shared_ptr< SLE const > const & | before, | ||
std::shared_ptr< SLE const > const & | after | ||
) |
called for each ledger entry in the current transaction.
isDelete | true if the SLE is being deleted |
before | ledger entry before modification by the transaction |
after | ledger entry after modification by the transaction |
bool ripple::InvariantChecker_PROTOTYPE::finalize | ( | STTx const & | tx, |
TER const | tec, | ||
XRPAmount const | fee, | ||
ReadView const & | view, | ||
beast::Journal const & | j | ||
) |
called after all ledger entries have been visited to determine the final status of the check
tx | the transaction being applied |
tec | the current TER result of the transaction |
fee | the fee actually charged for this transaction |
view | a ReadView of the ledger being modified |
j | journal for logging |