rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
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, 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 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 271 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

void xrpl::NoDeepFreezeTrustLinesWithoutFreeze::visitEntry ( bool  ,
std::shared_ptr< SLE const > const &  ,
std::shared_ptr< SLE const > const &  after 
)

Definition at line 695 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 715 of file InvariantCheck.cpp.

Member Data Documentation

◆ deepFreezeWithoutFreeze_

bool xrpl::NoDeepFreezeTrustLinesWithoutFreeze::deepFreezeWithoutFreeze_ = false
private

Definition at line 273 of file InvariantCheck.h.