1#include <test/jtx/envconfig.h>
3#include <test/jtx/amount.h>
5#include <xrpld/core/Config.h>
7#include <xrpl/config/Constants.h>
192 for (
auto const& [k, v] : extraTxQ)
197 if (!extraVoting.
empty())
200 for (
auto const& [k, v] : extraVoting)
202 votingSection.set(k, v);
void deprecatedClearSection(std::string const §ion)
Remove all the key/value pairs from the section.
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 legacy(std::string const §ion, std::string value)
Set a value that is not a key/value pair.
void setupControl(bool bQuiet, bool bSilent, bool bStandalone)
std::unique_ptr< Config > addGrpcConfigWithTLSAndCertChain(std::unique_ptr< Config >, std::string const &certPath, std::string const &keyPath, std::string const &certChainPath)
add a grpc address, port and TLS with server cert chain to config
std::unique_ptr< Config > addGrpcConfigWithTLSAndClientCA(std::unique_ptr< Config >, std::string const &certPath, std::string const &keyPath, std::string const &clientCAPath)
add a grpc address, port and TLS certificate/key/client CA paths to config
std::unique_ptr< Config > addGrpcConfigWithTLS(std::unique_ptr< Config >, std::string const &certPath, std::string const &keyPath)
add a grpc address, port and TLS certificate/key paths to config
XrpT const XRP
Converts to XRP Issue or STAmount.
std::unique_ptr< Config > secureGateway(std::unique_ptr< Config >)
std::unique_ptr< Config > secureGatewayLocalnet(std::unique_ptr< Config >)
constexpr auto kDefaultSeed
std::unique_ptr< Config > makeConfig(std::map< std::string, std::string > extraTxQ={}, std::map< std::string, std::string > extraVoting={})
std::unique_ptr< Config > singleThreadIo(std::unique_ptr< Config >)
std::unique_ptr< Config > addGrpcConfigWithSecureGateway(std::unique_ptr< Config >, std::string const &secureGateway)
add a grpc address, port and secureGateway to config
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
std::unique_ptr< Config > adminLocalnet(std::unique_ptr< Config >)
std::unique_ptr< Config > noAdmin(std::unique_ptr< Config >)
adjust config so no admin ports are enabled
std::unique_ptr< Config > addGrpcConfig(std::unique_ptr< Config >)
add a grpc address and port to config
std::unique_ptr< Config > validator(std::unique_ptr< Config >, std::string const &)
adjust configuration with params needed to be a validator
void setupConfigForUnitTests(Config &config)
initializes a config object for use with jtx::Env
char const * getEnvLocalhostAddr()
std::atomic< bool > gEnvUseIPv4
XRPAmount accountReserve
The account reserve requirement in drops.
XRPAmount ownerReserve
The per-owned item reserve requirement in drops.
XRPAmount referenceFee
The cost of a reference transaction in drops.
static constexpr auto kProtocol
static constexpr auto kMinLedgersToComputeSizeLimit
static constexpr auto kRetrySequencePercent
static constexpr auto kMaxLedgerCountsToStore
static constexpr auto kSslCertChain
static constexpr auto kSslKey
static constexpr auto kAdmin
static constexpr auto kPort
static constexpr auto kSslClientCa
static constexpr auto kSslCert
static constexpr auto kSecureGateway
static constexpr auto kType
static constexpr auto kIp
static constexpr auto kPath
static constexpr auto kMinimumQueueSize
static constexpr auto kNormalConsensusIncreasePercent
static constexpr auto kLedgersInQueue
static constexpr auto kPortWs
static constexpr auto kImportNodeDatabase
static constexpr auto kValidationSeed
static constexpr auto kServer
static constexpr auto kPortRpc
static constexpr auto kTransactionQueue
static constexpr auto kNodeDatabase
static constexpr auto kDatabasePath
static constexpr auto kPortPeer
static constexpr auto kPortGrpc
static constexpr auto kVoting