|
xrpld
|
Invariant: offers should be for non-negative amounts and must not be XRP to XRP. More...
#include <InvariantCheck.h>
Public Member Functions | |
| void | visitEntry (bool, SLE::ConstRef, SLE::ConstRef) |
| bool | finalize (STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &) 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 279 of file InvariantCheck.h.
| void xrpl::NoBadOffers::visitEntry | ( | bool | isDelete, |
| SLE::ConstRef | before, | ||
| SLE::ConstRef | after ) |
Definition at line 282 of file InvariantCheck.cpp.
|
nodiscard |
Definition at line 304 of file InvariantCheck.cpp.
|
private |
Definition at line 281 of file InvariantCheck.h.