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

Member Function Documentation

◆ visitEntry()

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

Definition at line 686 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 706 of file InvariantCheck.cpp.

Member Data Documentation

◆ deepFreezeWithoutFreeze_

bool ripple::NoDeepFreezeTrustLinesWithoutFreeze::deepFreezeWithoutFreeze_ = false
private

Definition at line 285 of file InvariantCheck.h.