|
Clio
develop
The XRP Ledger API server.
|
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. | |
This class is responsible for fetching and storing the state of the ETL information, such as the network id.
|
inlinestaticnoexcept |
Fetch the ETL state from the rippled server.
| Forward | The type of the source; must provide forwardToRippled |
| source | The source to fetch the state from |
| 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.