rippled
Public Member Functions | Private Attributes | List of all members
ripple::NoXRPTrustLines Class Reference

Invariant: Trust lines using XRP are not allowed. 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 xrpTrustLine_ = false
 

Detailed Description

Invariant: Trust lines using XRP are not allowed.

We iterate all the trust lines created by this transaction and ensure that they are against a valid issuer.

Definition at line 224 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

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

Definition at line 410 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 427 of file InvariantCheck.cpp.

Member Data Documentation

◆ xrpTrustLine_

bool ripple::NoXRPTrustLines::xrpTrustLine_ = false
private

Definition at line 226 of file InvariantCheck.h.