xrpld
Loading...
Searching...
No Matches
xrpl::NoXRPTrustLines Class Reference

Invariant: Trust lines using XRP are not allowed. More...

#include <InvariantCheck.h>

Public Member Functions

void visitEntry (bool, SLE::const_ref, SLE::const_ref)
bool finalize (STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &) 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 226 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

void xrpl::NoXRPTrustLines::visitEntry ( bool ,
SLE::const_ref ,
SLE::const_ref after )

Definition at line 604 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 627 of file InvariantCheck.cpp.

Member Data Documentation

◆ xrpTrustLine_

bool xrpl::NoXRPTrustLines::xrpTrustLine_ = false
private

Definition at line 228 of file InvariantCheck.h.