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
Application & app
LedgerMaster & ledgerMaster
LedgerReplayMsgHandler msgHandler
Parameter param
std::vector< jtx::Account > accounts

Detailed Description

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

Definition at line 429 of file LedgerReplay_test.cpp.

Constructor & Destructor Documentation

◆ LedgerServer()

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

Definition at line 440 of file LedgerReplay_test.cpp.

Member Function Documentation

◆ createAccounts()

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

Definition at line 457 of file LedgerReplay_test.cpp.

◆ sendPayments()

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

Definition at line 472 of file LedgerReplay_test.cpp.

◆ createLedgerHistory()

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

create ledger history

Definition at line 511 of file LedgerReplay_test.cpp.

Member Data Documentation

◆ env

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

Definition at line 519 of file LedgerReplay_test.cpp.

◆ app

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

Definition at line 520 of file LedgerReplay_test.cpp.

◆ ledgerMaster

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

Definition at line 521 of file LedgerReplay_test.cpp.

◆ msgHandler

LedgerReplayMsgHandler xrpl::test::LedgerServer::msgHandler

Definition at line 522 of file LedgerReplay_test.cpp.

◆ param

Parameter xrpl::test::LedgerServer::param

Definition at line 523 of file LedgerReplay_test.cpp.

◆ accounts

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

Definition at line 524 of file LedgerReplay_test.cpp.