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

Invariant: a new account root must be the consequence of a payment, must have the right starting sequence, and the payment may not create more than one new account root. More...

#include <InvariantCheck.h>

Collaboration diagram for xrpl::ValidNewAccountRoot:

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

std::uint32_t accountsCreated_ = 0
std::uint32_t accountSeq_ = 0
bool pseudoAccount_ = false
std::uint32_t flags_ = 0

Detailed Description

Invariant: a new account root must be the consequence of a payment, must have the right starting sequence, and the payment may not create more than one new account root.

Definition at line 312 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

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

Definition at line 739 of file InvariantCheck.cpp.

◆ finalize()

bool xrpl::ValidNewAccountRoot::finalize ( STTx const & tx,
TER const result,
XRPAmount const ,
ReadView const & view,
beast::Journal const & j ) const
nodiscard

Definition at line 751 of file InvariantCheck.cpp.

Member Data Documentation

◆ accountsCreated_

std::uint32_t xrpl::ValidNewAccountRoot::accountsCreated_ = 0
private

Definition at line 314 of file InvariantCheck.h.

◆ accountSeq_

std::uint32_t xrpl::ValidNewAccountRoot::accountSeq_ = 0
private

Definition at line 315 of file InvariantCheck.h.

◆ pseudoAccount_

bool xrpl::ValidNewAccountRoot::pseudoAccount_ = false
private

Definition at line 316 of file InvariantCheck.h.

◆ flags_

std::uint32_t xrpl::ValidNewAccountRoot::flags_ = 0
private

Definition at line 317 of file InvariantCheck.h.