rippled
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ripple::ValidLoanBroker Class Reference

Invariants: Loan brokers are internally consistent. More...

#include <InvariantCheck.h>

Collaboration diagram for ripple::ValidLoanBroker:
Collaboration graph
[legend]

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 &)
 

Private Member Functions

bool goodZeroDirectory (ReadView const &view, SLE::const_ref dir, beast::Journal const &j) const
 

Private Attributes

std::map< uint256, BrokerInfobrokers_
 
std::vector< SLE::const_pointerlines_
 
std::vector< SLE::const_pointermpts_
 

Detailed Description

Invariants: Loan brokers are internally consistent.

  1. If 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 764 of file InvariantCheck.h.

Member Function Documentation

◆ goodZeroDirectory()

bool ripple::ValidLoanBroker::goodZeroDirectory ( ReadView const &  view,
SLE::const_ref  dir,
beast::Journal const &  j 
) const
private

Definition at line 2370 of file InvariantCheck.cpp.

◆ visitEntry()

void ripple::ValidLoanBroker::visitEntry ( bool  isDelete,
std::shared_ptr< SLE const > const &  before,
std::shared_ptr< SLE const > const &  after 
)

Definition at line 2337 of file InvariantCheck.cpp.

◆ finalize()

bool ripple::ValidLoanBroker::finalize ( STTx const &  tx,
TER const  ,
XRPAmount const  ,
ReadView const &  view,
beast::Journal const &  j 
)

Definition at line 2414 of file InvariantCheck.cpp.

Member Data Documentation

◆ brokers_

std::map<uint256, BrokerInfo> ripple::ValidLoanBroker::brokers_
private

Definition at line 778 of file InvariantCheck.h.

◆ lines_

std::vector<SLE::const_pointer> ripple::ValidLoanBroker::lines_
private

Definition at line 781 of file InvariantCheck.h.

◆ mpts_

std::vector<SLE::const_pointer> ripple::ValidLoanBroker::mpts_
private

Definition at line 784 of file InvariantCheck.h.