|
rippled
|
Invariant: offers should be for non-negative amounts and must not be XRP to XRP. 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 | |
| bool | bad_ = false |
Invariant: offers should be for non-negative amounts and must not be XRP to XRP.
Examine all offers modified by the transaction and ensure that there are no offers which contain negative amounts or which exchange XRP for XRP.
Definition at line 252 of file InvariantCheck.h.
| void ripple::NoBadOffers::visitEntry | ( | bool | isDelete, |
| std::shared_ptr< SLE const > const & | before, | ||
| std::shared_ptr< SLE const > const & | after | ||
| ) |
Definition at line 219 of file InvariantCheck.cpp.
| bool ripple::NoBadOffers::finalize | ( | STTx const & | , |
| TER const | , | ||
| XRPAmount const | , | ||
| ReadView const & | , | ||
| beast::Journal const & | j | ||
| ) |
Definition at line 244 of file InvariantCheck.cpp.
|
private |
Definition at line 254 of file InvariantCheck.h.
1.8.17