xrpld
Loading...
Searching...
No Matches
xrpl::XRPNotCreated Class Reference

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

#include <InvariantCheck.h>

Public Member Functions

void visitEntry (bool, SLE::ConstRef, SLE::ConstRef)
bool finalize (STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &) const

Private Attributes

boost::multiprecision::int128_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 146 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

void xrpl::XRPNotCreated::visitEntry ( bool isDelete,
SLE::ConstRef before,
SLE::ConstRef after )

Definition at line 136 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 208 of file InvariantCheck.cpp.

Member Data Documentation

◆ drops_

boost::multiprecision::int128_t xrpl::XRPNotCreated::drops_ = 0
private

Definition at line 148 of file InvariantCheck.h.