xrpld
Loading...
Searching...
No Matches
xrpl::test::LedgerServer Struct Reference

Utility class for (1) creating ledgers with txns and (2) providing the ledgers via the ledgerMaster. More...

Collaboration diagram for xrpl::test::LedgerServer:

Classes

struct  Parameter

Public Member Functions

 LedgerServer (beast::unit_test::Suite &suite, Parameter const &p)
void createAccounts (int newAccounts)
void sendPayments (int newTxes)
void createLedgerHistory ()
 create ledger history

Public Attributes

jtx::Env env
Applicationapp
LedgerMasterledgerMaster
LedgerReplayMsgHandler msgHandler
Parameter param
std::vector< jtx::Accountaccounts

Detailed Description

Utility class for (1) creating ledgers with txns and (2) providing the ledgers via the ledgerMaster.

Definition at line 493 of file LedgerReplay_test.cpp.

Constructor & Destructor Documentation

◆ LedgerServer()

xrpl::test::LedgerServer::LedgerServer ( beast::unit_test::Suite & suite,
Parameter const & p )

Definition at line 504 of file LedgerReplay_test.cpp.

Member Function Documentation

◆ createAccounts()

void xrpl::test::LedgerServer::createAccounts ( int newAccounts)
Note
close a ledger

Definition at line 521 of file LedgerReplay_test.cpp.

◆ sendPayments()

void xrpl::test::LedgerServer::sendPayments ( int newTxes)
Note
close a ledger

Definition at line 536 of file LedgerReplay_test.cpp.

◆ createLedgerHistory()

void xrpl::test::LedgerServer::createLedgerHistory ( )

create ledger history

Definition at line 575 of file LedgerReplay_test.cpp.

Member Data Documentation

◆ env

jtx::Env xrpl::test::LedgerServer::env

Definition at line 583 of file LedgerReplay_test.cpp.

◆ app

Application& xrpl::test::LedgerServer::app

Definition at line 584 of file LedgerReplay_test.cpp.

◆ ledgerMaster

LedgerMaster& xrpl::test::LedgerServer::ledgerMaster

Definition at line 585 of file LedgerReplay_test.cpp.

◆ msgHandler

LedgerReplayMsgHandler xrpl::test::LedgerServer::msgHandler

Definition at line 586 of file LedgerReplay_test.cpp.

◆ param

Parameter xrpl::test::LedgerServer::param

Definition at line 587 of file LedgerReplay_test.cpp.

◆ accounts

std::vector<jtx::Account> xrpl::test::LedgerServer::accounts

Definition at line 588 of file LedgerReplay_test.cpp.