xrpld
Loading...
Searching...
No Matches
xrpl::test::csf::Peer::ProcessingDelays Struct Reference

Simulated delays in internal peer processing. More...

#include <Peer.h>

Collaboration diagram for xrpl::test::csf::Peer::ProcessingDelays:

Public Member Functions

template<class M>
SimDuration onReceive (M const &) const
SimDuration onReceive (Validation const &) const

Public Attributes

std::chrono::milliseconds ledgerAccept {0}
std::chrono::milliseconds recvValidation {0}
 Delay in processing validations from remote peers.

Detailed Description

Simulated delays in internal peer processing.

Definition at line 76 of file test/csf/Peer.h.

Member Function Documentation

◆ onReceive() [1/2]

template<class M>
SimDuration xrpl::test::csf::Peer::ProcessingDelays::onReceive ( M const & ) const
nodiscard

Definition at line 91 of file test/csf/Peer.h.

◆ onReceive() [2/2]

SimDuration xrpl::test::csf::Peer::ProcessingDelays::onReceive ( Validation const & ) const
nodiscard

Definition at line 97 of file test/csf/Peer.h.

Member Data Documentation

◆ ledgerAccept

std::chrono::milliseconds xrpl::test::csf::Peer::ProcessingDelays::ledgerAccept {0}

Delay in consensus calling doAccept to accepting and issuing validation TODO: This should be a function of the number of transactions

Definition at line 81 of file test/csf/Peer.h.

◆ recvValidation

std::chrono::milliseconds xrpl::test::csf::Peer::ProcessingDelays::recvValidation {0}

Delay in processing validations from remote peers.

Definition at line 84 of file test/csf/Peer.h.