rippled
Classes | Public Member Functions | Public Attributes | List of all members
ripple::test::LedgerServer Struct Reference

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

Collaboration diagram for ripple::test::LedgerServer:
Collaboration graph
[legend]

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 More...
 

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 447 of file LedgerReplay_test.cpp.

Constructor & Destructor Documentation

◆ LedgerServer()

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

Definition at line 458 of file LedgerReplay_test.cpp.

Member Function Documentation

◆ createAccounts()

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

Definition at line 475 of file LedgerReplay_test.cpp.

◆ sendPayments()

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

Definition at line 491 of file LedgerReplay_test.cpp.

◆ createLedgerHistory()

void ripple::test::LedgerServer::createLedgerHistory ( )

create ledger history

Definition at line 531 of file LedgerReplay_test.cpp.

Member Data Documentation

◆ env

jtx::Env ripple::test::LedgerServer::env

Definition at line 539 of file LedgerReplay_test.cpp.

◆ app

Application& ripple::test::LedgerServer::app

Definition at line 540 of file LedgerReplay_test.cpp.

◆ ledgerMaster

LedgerMaster& ripple::test::LedgerServer::ledgerMaster

Definition at line 541 of file LedgerReplay_test.cpp.

◆ msgHandler

LedgerReplayMsgHandler ripple::test::LedgerServer::msgHandler

Definition at line 542 of file LedgerReplay_test.cpp.

◆ param

Parameter ripple::test::LedgerServer::param

Definition at line 543 of file LedgerReplay_test.cpp.

◆ accounts

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

Definition at line 544 of file LedgerReplay_test.cpp.