rippled
Public Member Functions | List of all members
ripple::TransactionFeeCheck Class Reference

Invariant: We should never charge a transaction a negative fee or a fee that is larger than what the transaction itself specifies. More...

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 &)
 

Detailed Description

Invariant: We should never charge a transaction a negative fee or a fee that is larger than what the transaction itself specifies.

We can, in some circumstances, charge less.

Definition at line 92 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

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

Definition at line 34 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 43 of file InvariantCheck.cpp.