xrpld
Loading...
Searching...
No Matches
xrpl::reduce_relay Namespace Reference

Classes

class  Slots
 Slots is a container for validator's Slot and handles Slot update when a message is received from a validator. More...
class  SquelchHandler
 Abstract class. More...
class  Slot
 Slot is associated with a specific validator via validator's public key. More...
class  Squelch
 Maintains squelching of relaying messages from validators. More...

Enumerations

enum class  PeerState : uint8_t { Counting , Selected , Squelched }
 Peer's State. More...
enum class  SlotState : uint8_t { Counting , Selected }
 Slot's State. More...

Functions

template<typename Unit, typename TP>
Unit epoch (TP const &t)

Variables

static constexpr auto kMinUnsquelchExpire = std::chrono::seconds{300}
static constexpr auto kMaxUnsquelchExpireDefault = std::chrono::seconds{600}
static constexpr auto kSquelchPerPeer = std::chrono::seconds(10)
static constexpr auto kMaxUnsquelchExpirePeers = std::chrono::seconds{3600}
static constexpr auto kIdled = std::chrono::seconds{8}
static constexpr uint16_t kMinMessageThreshold = 19
static constexpr uint16_t kMaxMessageThreshold = 20
static constexpr uint16_t kMaxSelectedPeers = 5
static constexpr auto kWaitOnBootup = std::chrono::minutes{10}
static constexpr std::size_t kMaxTxQueueSize = 10000

Enumeration Type Documentation

◆ PeerState

enum class xrpl::reduce_relay::PeerState : uint8_t
strong

Peer's State.

Enumerator
Counting 
Selected 
Squelched 

Definition at line 28 of file overlay/Slot.h.

◆ SlotState

enum class xrpl::reduce_relay::SlotState : uint8_t
strong

Slot's State.

Enumerator
Counting 
Selected 

Definition at line 34 of file overlay/Slot.h.

Function Documentation

◆ epoch()

template<typename Unit, typename TP>
Unit xrpl::reduce_relay::epoch ( TP const & t)

Definition at line 41 of file overlay/Slot.h.

Variable Documentation

◆ kMinUnsquelchExpire

auto xrpl::reduce_relay::kMinUnsquelchExpire = std::chrono::seconds{300}
staticconstexpr

Definition at line 16 of file ReduceRelayCommon.h.

◆ kMaxUnsquelchExpireDefault

auto xrpl::reduce_relay::kMaxUnsquelchExpireDefault = std::chrono::seconds{600}
staticconstexpr

Definition at line 17 of file ReduceRelayCommon.h.

◆ kSquelchPerPeer

auto xrpl::reduce_relay::kSquelchPerPeer = std::chrono::seconds(10)
staticconstexpr

Definition at line 18 of file ReduceRelayCommon.h.

◆ kMaxUnsquelchExpirePeers

auto xrpl::reduce_relay::kMaxUnsquelchExpirePeers = std::chrono::seconds{3600}
staticconstexpr

Definition at line 19 of file ReduceRelayCommon.h.

◆ kIdled

auto xrpl::reduce_relay::kIdled = std::chrono::seconds{8}
staticconstexpr

Definition at line 21 of file ReduceRelayCommon.h.

◆ kMinMessageThreshold

uint16_t xrpl::reduce_relay::kMinMessageThreshold = 19
staticconstexpr

Definition at line 26 of file ReduceRelayCommon.h.

◆ kMaxMessageThreshold

uint16_t xrpl::reduce_relay::kMaxMessageThreshold = 20
staticconstexpr

Definition at line 27 of file ReduceRelayCommon.h.

◆ kMaxSelectedPeers

uint16_t xrpl::reduce_relay::kMaxSelectedPeers = 5
staticconstexpr

Definition at line 29 of file ReduceRelayCommon.h.

◆ kWaitOnBootup

auto xrpl::reduce_relay::kWaitOnBootup = std::chrono::minutes{10}
staticconstexpr

Definition at line 32 of file ReduceRelayCommon.h.

◆ kMaxTxQueueSize

std::size_t xrpl::reduce_relay::kMaxTxQueueSize = 10000
staticconstexpr

Definition at line 37 of file ReduceRelayCommon.h.