|
rippled
|
Invariants: Loan brokers are internally consistent. More...
#include <LoanBrokerInvariant.h>

Classes | |
| struct | BrokerInfo |
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 &) |
Static Private Member Functions | |
| static bool | goodZeroDirectory (ReadView const &view, SLE::const_ref dir, beast::Journal const &j) |
Private Attributes | |
| std::map< uint256, BrokerInfo > | brokers_ |
| std::vector< SLE::const_pointer > | lines_ |
| std::vector< SLE::const_pointer > | mpts_ |
Invariants: Loan brokers are internally consistent.
LoanBroker.OwnerCount = 0 the DirectoryNode will have at most one node (the root), which will only hold entries for RippleState or MPToken objects. Definition at line 22 of file LoanBrokerInvariant.h.
|
staticprivate |
Definition at line 46 of file LoanBrokerInvariant.cpp.
| void xrpl::ValidLoanBroker::visitEntry | ( | bool | isDelete, |
| std::shared_ptr< SLE const > const & | before, | ||
| std::shared_ptr< SLE const > const & | after | ||
| ) |
Definition at line 15 of file LoanBrokerInvariant.cpp.
| bool xrpl::ValidLoanBroker::finalize | ( | STTx const & | tx, |
| TER const | , | ||
| XRPAmount const | , | ||
| ReadView const & | view, | ||
| beast::Journal const & | j | ||
| ) |
Definition at line 87 of file LoanBrokerInvariant.cpp.
|
private |
Definition at line 36 of file LoanBrokerInvariant.h.
|
private |
Definition at line 39 of file LoanBrokerInvariant.h.
|
private |
Definition at line 42 of file LoanBrokerInvariant.h.