|
rippled
|
#include <Config.h>


Public Types | |
| enum | StartUpType { FRESH , NORMAL , LOAD , LOAD_FILE , REPLAY , NETWORK } |
Public Member Functions | |
| boost::filesystem::path | getDebugLogFile () const |
| Returns the full path and filename of the debug log file. | |
| Config () | |
| void | setup (std::string const &strConf, bool bQuiet, bool bSilent, bool bStandalone) |
| void | setupControl (bool bQuiet, bool bSilent, bool bStandalone) |
| void | loadFromString (std::string const &fileContents) |
| Load the config from the contents of the string. | |
| bool | quiet () const |
| bool | silent () const |
| bool | standalone () const |
| bool | useTxTables () const |
| bool | canSign () const |
| int | getValueFor (SizedItem item, std::optional< std::size_t > node=std::nullopt) const |
| Retrieve the default value for the item at the specified node size. | |
| beast::Journal | journal () const |
| bool | exists (std::string const &name) const |
Returns true if a section with the given name exists. | |
| void | overwrite (std::string const §ion, std::string const &key, std::string const &value) |
| Overwrite a key/value pair with a command line argument If the section does not exist it is created. | |
| void | deprecatedClearSection (std::string const §ion) |
| Remove all the key/value pairs from the section. | |
| void | legacy (std::string const §ion, std::string value) |
| Set a value that is not a key/value pair. | |
| std::string | legacy (std::string const §ionName) const |
| Get the legacy value of a section. | |
| bool | had_trailing_comments () const |
| Section & | section (std::string const &name) |
| Returns the section with the given name. | |
| Section const & | section (std::string const &name) const |
| Section const & | operator[] (std::string const &name) const |
| Section & | operator[] (std::string const &name) |
Static Public Attributes | |
| static char const *const | configFileName = "rippled.cfg" |
| static char const *const | databaseDirName = "db" |
| static char const *const | validatorsFileName = "validators.txt" |
| static constexpr std::uint32_t | FEE_UNITS_DEPRECATED = 10 |
| static constexpr int | MAX_JOB_QUEUE_TX = 1000 |
| static constexpr int | MIN_JOB_QUEUE_TX = 100 |
Protected Member Functions | |
| void | build (IniFileSections const &ifs) |
Private Member Functions | |
| void | load () |
Private Attributes | |
| boost::filesystem::path | CONFIG_FILE |
| boost::filesystem::path | DEBUG_LOGFILE |
| beast::Journal const | j_ |
| bool | QUIET = false |
| bool | SILENT = false |
| bool | RUN_STANDALONE = false |
| Operate in stand-alone mode. | |
| bool | USE_TX_TABLES = true |
| bool | signingEnabled_ = false |
| Determines if the server will sign a tx, given an account's secret seed. | |
| std::uint64_t const | ramSize_ |
| std::unordered_map< std::string, Section > | map_ |
| ripple::Config::Config | ( | ) |
Definition at line 262 of file Config.cpp.
| boost::filesystem::path ripple::Config::getDebugLogFile | ( | ) | const |
Returns the full path and filename of the debug log file.
Definition at line 1082 of file Config.cpp.
|
private |
Definition at line 456 of file Config.cpp.
| void ripple::Config::setup | ( | std::string const & | strConf, |
| bool | bQuiet, | ||
| bool | bSilent, | ||
| bool | bStandalone | ||
| ) |
Definition at line 311 of file Config.cpp.
| void ripple::Config::setupControl | ( | bool | bQuiet, |
| bool | bSilent, | ||
| bool | bStandalone | ||
| ) |
Definition at line 269 of file Config.cpp.
| void ripple::Config::loadFromString | ( | std::string const & | fileContents | ) |
Load the config from the contents of the string.
| fileContents | String representing the config contents. |
Definition at line 479 of file Config.cpp.
| int ripple::Config::getValueFor | ( | SizedItem | item, |
| std::optional< std::size_t > | node = std::nullopt |
||
| ) | const |
Retrieve the default value for the item at the specified node size.
| item | The item for which the default value is needed |
| node | Optional value, used to adjust the result to match the size of a node (0: tiny, ..., 4: huge). If unseated, uses the configured size (NODE_SIZE). |
| This | method can throw std::out_of_range if you ask for values that it does not recognize or request a non-default node-size. |
Definition at line 1116 of file Config.cpp.
| beast::Journal ripple::Config::journal | ( | ) | const |
|
inherited |
Returns true if a section with the given name exists.
Definition at line 130 of file BasicConfig.cpp.
|
inherited |
Returns the section with the given name.
If the section does not exist, an empty section is returned.
Definition at line 136 of file BasicConfig.cpp.
|
inherited |
Definition at line 142 of file BasicConfig.cpp.
|
inherited |
Definition at line 238 of file BasicConfig.h.
|
inherited |
Definition at line 244 of file BasicConfig.h.
|
inherited |
Overwrite a key/value pair with a command line argument If the section does not exist it is created.
The previous value, if any, is overwritten.
Definition at line 152 of file BasicConfig.cpp.
|
inherited |
Remove all the key/value pairs from the section.
Definition at line 165 of file BasicConfig.cpp.
|
inherited |
Set a value that is not a key/value pair.
The value is stored as the section's first value and may be retrieved through section::legacy.
| section | Name of the section to modify. |
| value | Contents of the legacy value. |
Definition at line 173 of file BasicConfig.cpp.
|
inherited |
Get the legacy value of a section.
A section with a single-line value may be retrieved as a legacy value.
| sectionName | Retrieve the contents of this section's legacy value. |
Definition at line 179 of file BasicConfig.cpp.
|
inherited |
Definition at line 294 of file BasicConfig.h.
|
protectedinherited |
Definition at line 185 of file BasicConfig.cpp.
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
| std::vector<std::string> ripple::Config::IPS |
| std::vector<std::string> ripple::Config::IPS_FIXED |
| StartUpType ripple::Config::START_UP = NORMAL |
| std::string ripple::Config::START_LEDGER |
| std::optional<uint256> ripple::Config::TRAP_TX_HASH |
|
staticconstexpr |
| std::size_t ripple::Config::NETWORK_QUORUM = 1 |
| std::size_t ripple::Config::PEERS_MAX = 0 |
| std::size_t ripple::Config::PEERS_OUT_MAX = 0 |
| std::size_t ripple::Config::PEERS_IN_MAX = 0 |
| std::optional<std::size_t> ripple::Config::VALIDATION_QUORUM |
| std::uint32_t ripple::Config::LEDGER_HISTORY = 256 |
| std::uint32_t ripple::Config::FETCH_DEPTH = 1000000000 |
| std::size_t ripple::Config::NODE_SIZE = 0 |
| std::string ripple::Config::SSL_VERIFY_FILE |
| std::string ripple::Config::SSL_VERIFY_DIR |
|
staticconstexpr |
|
staticconstexpr |
| std::chrono::seconds ripple::Config::AMENDMENT_MAJORITY_TIME = defaultAmendmentMajorityTime |
| std::optional<int> ripple::Config::SWEEP_INTERVAL |
| bool ripple::Config::VP_REDUCE_RELAY_BASE_SQUELCH_ENABLE = false |
| std::size_t ripple::Config::VP_REDUCE_RELAY_SQUELCH_MAX_SELECTED_PEERS = 5 |
| std::size_t ripple::Config::TX_REDUCE_RELAY_MIN_PEERS = 20 |
| std::size_t ripple::Config::TX_RELAY_PERCENTAGE = 25 |
| std::optional<beast::IP::Endpoint> ripple::Config::rpc_ip |
| std::unordered_set<uint256, beast::uhash<> > ripple::Config::features |
| std::string ripple::Config::SERVER_DOMAIN |
| std::chrono::seconds ripple::Config::MAX_UNKNOWN_TIME {600} |
| std::chrono::seconds ripple::Config::MAX_DIVERGED_TIME {300} |
| std::optional<std::pair<std::uint32_t, std::uint32_t> > ripple::Config::FORCED_LEDGER_RANGE_PRESENT |
| std::optional<std::size_t> ripple::Config::VALIDATOR_LIST_THRESHOLD |
|
privateinherited |
Definition at line 220 of file BasicConfig.h.