rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
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:
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::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 428 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

void xrpl::ValidNewAccountRoot::visitEntry ( bool  ,
std::shared_ptr< SLE const > const &  before,
std::shared_ptr< SLE const > const &  after 
)

Definition at line 1013 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 1028 of file InvariantCheck.cpp.

Member Data Documentation

◆ accountsCreated_

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

Definition at line 430 of file InvariantCheck.h.

◆ accountSeq_

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

Definition at line 431 of file InvariantCheck.h.

◆ pseudoAccount_

bool xrpl::ValidNewAccountRoot::pseudoAccount_ = false
private

Definition at line 432 of file InvariantCheck.h.

◆ flags_

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

Definition at line 433 of file InvariantCheck.h.