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

Invariant: corresponding modified ledger entries should match in type and added entries should be a valid type. 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 typeMismatch_ = false
 
bool invalidTypeAdded_ = false
 

Detailed Description

Invariant: corresponding modified ledger entries should match in type and added entries should be a valid type.

Definition at line 197 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

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

Definition at line 347 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 384 of file InvariantCheck.cpp.

Member Data Documentation

◆ typeMismatch_

bool ripple::LedgerEntryTypesMatch::typeMismatch_ = false
private

Definition at line 199 of file InvariantCheck.h.

◆ invalidTypeAdded_

bool ripple::LedgerEntryTypesMatch::invalidTypeAdded_ = false
private

Definition at line 200 of file InvariantCheck.h.