rippled
Classes | Enumerations | Functions | Variables
ripple::reduce_relay Namespace Reference

Classes

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

Enumerations

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

Functions

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

Variables

static constexpr auto MIN_UNSQUELCH_EXPIRE = std::chrono::seconds{300}
 
static constexpr auto MAX_UNSQUELCH_EXPIRE_DEFAULT = std::chrono::seconds{600}
 
static constexpr auto SQUELCH_PER_PEER = std::chrono::seconds(10)
 
static constexpr auto MAX_UNSQUELCH_EXPIRE_PEERS = std::chrono::seconds{3600}
 
static constexpr auto IDLED = std::chrono::seconds{8}
 
static constexpr uint16_t MIN_MESSAGE_THRESHOLD = 9
 
static constexpr uint16_t MAX_MESSAGE_THRESHOLD = 10
 
static constexpr uint16_t MAX_SELECTED_PEERS = 5
 
static constexpr auto WAIT_ON_BOOTUP = std::chrono::minutes{10}
 
static constexpr std::size_t MAX_TX_QUEUE_SIZE = 10000
 

Enumeration Type Documentation

◆ PeerState

enum ripple::reduce_relay::PeerState : uint8_t
strong

Peer's State.

Enumerator
Counting 
Selected 
Squelched 

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

◆ SlotState

enum ripple::reduce_relay::SlotState : uint8_t
strong

Slot's State.

Enumerator
Counting 
Selected 

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

Function Documentation

◆ epoch()

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

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

Variable Documentation

◆ MIN_UNSQUELCH_EXPIRE

constexpr auto ripple::reduce_relay::MIN_UNSQUELCH_EXPIRE = std::chrono::seconds{300}
staticconstexpr

Definition at line 34 of file ReduceRelayCommon.h.

◆ MAX_UNSQUELCH_EXPIRE_DEFAULT

constexpr auto ripple::reduce_relay::MAX_UNSQUELCH_EXPIRE_DEFAULT = std::chrono::seconds{600}
staticconstexpr

Definition at line 35 of file ReduceRelayCommon.h.

◆ SQUELCH_PER_PEER

constexpr auto ripple::reduce_relay::SQUELCH_PER_PEER = std::chrono::seconds(10)
staticconstexpr

Definition at line 36 of file ReduceRelayCommon.h.

◆ MAX_UNSQUELCH_EXPIRE_PEERS

constexpr auto ripple::reduce_relay::MAX_UNSQUELCH_EXPIRE_PEERS = std::chrono::seconds{3600}
staticconstexpr

Definition at line 37 of file ReduceRelayCommon.h.

◆ IDLED

constexpr auto ripple::reduce_relay::IDLED = std::chrono::seconds{8}
staticconstexpr

Definition at line 39 of file ReduceRelayCommon.h.

◆ MIN_MESSAGE_THRESHOLD

constexpr uint16_t ripple::reduce_relay::MIN_MESSAGE_THRESHOLD = 9
staticconstexpr

Definition at line 44 of file ReduceRelayCommon.h.

◆ MAX_MESSAGE_THRESHOLD

constexpr uint16_t ripple::reduce_relay::MAX_MESSAGE_THRESHOLD = 10
staticconstexpr

Definition at line 45 of file ReduceRelayCommon.h.

◆ MAX_SELECTED_PEERS

constexpr uint16_t ripple::reduce_relay::MAX_SELECTED_PEERS = 5
staticconstexpr

Definition at line 47 of file ReduceRelayCommon.h.

◆ WAIT_ON_BOOTUP

constexpr auto ripple::reduce_relay::WAIT_ON_BOOTUP = std::chrono::minutes{10}
staticconstexpr

Definition at line 50 of file ReduceRelayCommon.h.

◆ MAX_TX_QUEUE_SIZE

constexpr std::size_t ripple::reduce_relay::MAX_TX_QUEUE_SIZE = 10000
staticconstexpr

Definition at line 55 of file ReduceRelayCommon.h.