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

Invariant: corresponding modified ledger entries should match in type and added entries should be a valid type. 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 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 207 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

void xrpl::LedgerEntryTypesMatch::visitEntry ( bool ,
SLE::const_ref before,
SLE::const_ref after )

Definition at line 550 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 578 of file InvariantCheck.cpp.

Member Data Documentation

◆ typeMismatch_

bool xrpl::LedgerEntryTypesMatch::typeMismatch_ = false
private

Definition at line 209 of file InvariantCheck.h.

◆ invalidTypeAdded_

bool xrpl::LedgerEntryTypesMatch::invalidTypeAdded_ = false
private

Definition at line 210 of file InvariantCheck.h.