|
rippled
|
Invariant: Token holder's trustline balance cannot be negative after Clawback. More...

Public Member Functions | |
| void | visitEntry (bool, std::shared_ptr< SLE const > const &, std::shared_ptr< SLE const > const &) |
| bool | finalize (STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &) |
Private Attributes | |
| std::uint32_t | trustlinesChanged = 0 |
Invariant: Token holder's trustline balance cannot be negative after Clawback.
We iterate all the trust lines affected by this transaction and ensure that no more than one trustline is modified, and also holder's balance is non-negative.
Definition at line 400 of file InvariantCheck.h.
| void ripple::ValidClawback::visitEntry | ( | bool | , |
| std::shared_ptr< SLE const > const & | before, | ||
| std::shared_ptr< SLE const > const & | |||
| ) |
Definition at line 740 of file InvariantCheck.cpp.
| bool ripple::ValidClawback::finalize | ( | STTx const & | tx, |
| TER const | result, | ||
| XRPAmount const | , | ||
| ReadView const & | view, | ||
| beast::Journal const & | j | ||
| ) |
Definition at line 750 of file InvariantCheck.cpp.
|
private |
Definition at line 402 of file InvariantCheck.h.
1.8.17