3#include <xrpl/basics/base_uint.h>
4#include <xrpl/beast/net/IPEndpoint.h>
5#include <xrpl/beast/utility/Journal.h>
6#include <xrpl/config/BasicConfig.h>
7#include <xrpl/core/StartUpType.h>
8#include <xrpl/protocol/Fees.h>
9#include <xrpl/protocol/SystemParameters.h>
10#include <xrpl/rdb/DatabaseCon.h>
12#include <boost/filesystem.hpp>
85 [[nodiscard]] boost::filesystem::path
292 setup(
std::string const& strConf,
bool bQuiet,
bool bSilent,
bool bStandalone);
295 setupControl(
bool bQuiet,
bool bSilent,
bool bStandalone);
A generic endpoint for log messages.
Holds unparsed configuration information.
static constexpr int kMinJobQueueTx
std::chrono::seconds maxDivergedTime
std::unordered_set< uint256, beast::Uhash<> > features
static constexpr int kMaxJobQueueTx
std::optional< int > sweepInterval
std::size_t txReduceRelayMinPeers
boost::filesystem::path configFile_
std::size_t vpReduceRelaySquelchMaxSelectedPeers
std::optional< uint256 > trapTxHash
void setup(std::string const &strConf, bool bQuiet, bool bSilent, bool bStandalone)
std::chrono::seconds maxUnknownTime
static char const *const kDatabaseDirName
beast::Journal journal() const
std::uint64_t const ramSize_
std::optional< std::pair< std::uint32_t, std::uint32_t > > forcedLedgerRangePresent
int relayUntrustedProposals
int relayUntrustedValidations
std::vector< std::string > ipsFixed
bool vpReduceRelayBaseSquelchEnable
void loadFromString(std::string const &fileContents)
Load the config from the contents of the string.
std::string sslVerifyFile
std::size_t txRelayPercentage
bool txReduceRelayMetrics
boost::filesystem::path getDebugLogFile() const
Returns the full path and filename of the debug log file.
static char const *const kConfigLegacyName
std::optional< std::size_t > validatorListThreshold
bool runStandalone_
Operate in stand-alone mode.
boost::filesystem::path configDir
std::optional< beast::IP::Endpoint > rpcIp
static char const *const kConfigFileName
std::vector< std::string > ips
bool signingEnabled_
Determines if the server will sign a tx, given an account's secret seed.
void setupControl(bool bQuiet, bool bSilent, bool bStandalone)
std::optional< std::size_t > validationQuorum
std::uint32_t ledgerHistory
boost::filesystem::path debugLogfile_
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.
static char const *const kValidatorsFileName
std::size_t networkQuorum
std::chrono::seconds amendmentMajorityTime
Rules controlling protocol behavior.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
FeeSetup setupFeeVote(Section const §ion)
constexpr XRPAmount kDropsPerXrp
Number of drops per 1 XRP.
constexpr std::chrono::seconds const kDefaultAmendmentMajorityTime
The minimum amount of time an amendment must hold a majority.
DatabaseCon::Setup setupDatabaseCon(Config const &c, std::optional< beast::Journal > j=std::nullopt)
Fee schedule for startup / standalone, and to vote for.
XRPAmount accountReserve
The account reserve requirement in drops.
Fees toFees() const
Convert to a Fees object for use with Ledger construction.
XRPAmount ownerReserve
The per-owned item reserve requirement in drops.
XRPAmount referenceFee
The cost of a reference transaction in drops.
Reflects the fee settings for a particular ledger.