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

Invariant: Trust lines with deep freeze flag are not allowed if normal freeze flag is not set. 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 deepFreezeWithoutFreeze_ = false

Detailed Description

Invariant: Trust lines with deep freeze flag are not allowed if normal freeze flag is not set.

We iterate all the trust lines created by this transaction and ensure that they don't have deep freeze flag set without normal freeze flag set.

Definition at line 245 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

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

Definition at line 644 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 669 of file InvariantCheck.cpp.

Member Data Documentation

◆ deepFreezeWithoutFreeze_

bool xrpl::NoDeepFreezeTrustLinesWithoutFreeze::deepFreezeWithoutFreeze_ = false
private

Definition at line 247 of file InvariantCheck.h.