xrpld
Loading...
Searching...
No Matches
xrpl::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...

#include <InvariantCheck.h>

Public Member Functions

void visitEntry (bool, SLE::const_ref, SLE::const_ref)

Static Public Member Functions

static 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 107 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

void xrpl::TransactionFeeCheck::visitEntry ( bool ,
SLE::const_ref ,
SLE::const_ref  )

Definition at line 67 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 73 of file InvariantCheck.cpp.