rippled
Public Member Functions | Private Attributes | List of all members
ripple::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...

Collaboration diagram for ripple::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
 

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

Member Function Documentation

◆ visitEntry()

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

Definition at line 444 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 457 of file InvariantCheck.cpp.

Member Data Documentation

◆ accountsCreated_

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

Definition at line 302 of file InvariantCheck.h.

◆ accountSeq_

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

Definition at line 303 of file InvariantCheck.h.