rippled
|
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. More... | |
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. More... | |
bool | quiet () const |
bool | silent () const |
bool | standalone () const |
bool | reporting () const |
bool | useTxTables () const |
bool | reportingReadOnly () const |
void | setReportingReadOnly (bool b) |
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. More... | |
bool | exists (std::string const &name) const |
Returns true if a section with the given name exists. More... | |
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. More... | |
void | deprecatedClearSection (std::string const §ion) |
Remove all the key/value pairs from the section. More... | |
void | legacy (std::string const §ion, std::string value) |
Set a value that is not a key/value pair. More... | |
std::string | legacy (std::string const §ionName) const |
Get the legacy value of a section. More... | |
bool | had_trailing_comments () const |
Section & | section (std::string const &name) |
Returns the section with the given name. More... | |
Section const & | section (std::string const &name) const |
Section const & | operator[] (std::string const &name) const |
Section & | operator[] (std::string const &name) |
Section & | section (std::string const &name) |
Returns the section with the given name. More... | |
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 |
const beast::Journal | j_ |
bool | QUIET = false |
bool | SILENT = false |
bool | RUN_STANDALONE = false |
Operate in stand-alone mode. More... | |
bool | RUN_REPORTING = false |
bool | REPORTING_READ_ONLY = false |
bool | USE_TX_TABLES = true |
bool | signingEnabled_ = false |
Determines if the server will sign a tx, given an account's secret seed. More... | |
const std::uint64_t | ramSize_ |
std::map< std::string, Section, boost::beast::iless > | map_ |
ripple::Config::Config | ( | ) |
Definition at line 267 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 988 of file Config.cpp.
|
private |
Definition at line 435 of file Config.cpp.
void ripple::Config::setup | ( | std::string const & | strConf, |
bool | bQuiet, | ||
bool | bSilent, | ||
bool | bStandalone | ||
) |
Definition at line 315 of file Config.cpp.
void ripple::Config::setupControl | ( | bool | bQuiet, |
bool | bSilent, | ||
bool | bStandalone | ||
) |
Definition at line 273 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 457 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 1022 of file Config.cpp.
|
inherited |
Returns true
if a section with the given name exists.
Definition at line 121 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 127 of file BasicConfig.cpp.
|
inherited |
Definition at line 133 of file BasicConfig.cpp.
|
inherited |
Definition at line 236 of file BasicConfig.h.
|
inherited |
Definition at line 242 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 143 of file BasicConfig.cpp.
|
inherited |
Remove all the key/value pairs from the section.
Definition at line 156 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 164 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 170 of file BasicConfig.cpp.
|
inherited |
Definition at line 292 of file BasicConfig.h.
|
protectedinherited |
Definition at line 176 of file BasicConfig.cpp.
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
std::vector<std::string> ripple::Config::IPS |
std::vector<std::string> ripple::Config::IPS_FIXED |
std::vector<std::string> ripple::Config::SNTP_SERVERS |
StartUpType ripple::Config::START_UP = NORMAL |
std::string ripple::Config::START_LEDGER |
|
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 |
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} |
|
privateinherited |
Definition at line 218 of file BasicConfig.h.