1#include <xrpld/app/misc/setup_HashRouter.h>
3#include <xrpld/core/Config.h>
5#include <xrpl/basics/contract.h>
6#include <xrpl/config/BasicConfig.h>
7#include <xrpl/config/Constants.h>
8#include <xrpl/core/HashRouter.h>
31 "HashRouter hold time must be at least 12 seconds (the "
32 "approximate validation time for three ledgers).");
41 "HashRouter relay time must be at least 8 seconds (the "
42 "approximate validation time for two ledgers).");
Section & section(std::string const &name)
Returns the section with the given name.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool set(T &target, std::string const &name, Section const §ion)
Set a value from a configuration Section If the named value is not found or doesn't parse as a T,...
HashRouter::Setup setupHashRouter(Config const &config)
Create HashRouter setup from configuration.
XRPL_NO_SANITIZE_ADDRESS void Throw(Args &&... args)
Structure used to customize HashRouter behavior.
seconds holdTime
Expiration time for a hash entry.
seconds relayTime
Amount of time required before a relayed item will be relayed again.
static constexpr auto kRelayTime
static constexpr auto kHoldTime
static constexpr auto kHashrouter