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

Invariant: A transaction must not create XRP and should only destroy the XRP fee. More...

Collaboration diagram for ripple::XRPNotCreated:
Collaboration graph
[legend]

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

std::int64_t drops_ = 0
 

Detailed Description

Invariant: A transaction must not create XRP and should only destroy the XRP fee.

We iterate through all account roots, payment channels and escrow entries that were modified and calculate the net change in XRP caused by the transactions.

Definition at line 118 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

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

Definition at line 82 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 137 of file InvariantCheck.cpp.

Member Data Documentation

◆ drops_

std::int64_t ripple::XRPNotCreated::drops_ = 0
private

Definition at line 120 of file InvariantCheck.h.