Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
etl::ETLState Struct Reference

This class is responsible for fetching and storing the state of the ETL information, such as the network id. More...

#include <ETLState.hpp>

Static Public Member Functions

template<typename Forward>
static std::optional< ETLState > fetchETLStateFromSource (Forward &source) noexcept
 Fetch the ETL state from the rippled server.

Public Attributes

uint32_t networkID {0}
 The network ID reported by the rippled server.

Detailed Description

This class is responsible for fetching and storing the state of the ETL information, such as the network id.

Member Function Documentation

◆ fetchETLStateFromSource()

template<typename Forward>
std::optional< ETLState > etl::ETLState::fetchETLStateFromSource ( Forward & source)
inlinestaticnoexcept

Fetch the ETL state from the rippled server.

Template Parameters
ForwardThe type of the source; must provide forwardToRippled
Parameters
sourceThe source to fetch the state from
Returns
The ETL state, nullopt if source not available

Member Data Documentation

◆ networkID

uint32_t etl::ETLState::networkID {0}

The network ID reported by the rippled server.

NOTE: Rippled NetworkID: Mainnet = 0; Testnet = 1; Devnet = 2 However, if rippled is running on neither of these (ie. standalone mode) rippled will default to 0, but is not included in the stateOpt response. Must manually add it here.


The documentation for this struct was generated from the following file: