1#include <test/jtx/amount.h> 
    2#include <test/jtx/envconfig.h> 
    4#include <xrpld/core/ConfigSections.h> 
   27    cfg.
legacy(
"database_path", 
"");
 
   29    cfg[
"server"].append(PORT_PEER);
 
   37    cfg[PORT_PEER].set(
"port", 
"0");
 
   38    cfg[PORT_PEER].set(
"protocol", 
"peer");
 
   40    cfg[
"server"].append(PORT_RPC);
 
   43    cfg[PORT_RPC].set(
"port", 
"0");
 
   44    cfg[PORT_RPC].set(
"protocol", 
"http,ws2");
 
   46    cfg[
"server"].append(PORT_WS);
 
   49    cfg[PORT_WS].set(
"port", 
"0");
 
   50    cfg[PORT_WS].set(
"protocol", 
"ws");
 
 
   59    (*cfg)[PORT_RPC].set(
"admin", 
"");
 
   60    (*cfg)[PORT_WS].set(
"admin", 
"");
 
 
   67    (*cfg)[PORT_RPC].set(
"admin", 
"");
 
   68    (*cfg)[PORT_WS].set(
"admin", 
"");
 
 
   76    (*cfg)[PORT_RPC].set(
"admin", 
"127.0.0.0/8");
 
   77    (*cfg)[PORT_WS].set(
"admin", 
"127.0.0.0/8");
 
 
   84    (*cfg)[PORT_RPC].set(
"admin", 
"");
 
   85    (*cfg)[PORT_WS].set(
"admin", 
"");
 
   86    (*cfg)[PORT_RPC].set(
"secure_gateway", 
"127.0.0.0/8");
 
   87    (*cfg)[PORT_WS].set(
"secure_gateway", 
"127.0.0.0/8");
 
 
   97    cfg->section(SECTION_VALIDATION_SEED)
 
 
  106    (*cfg)[SECTION_PORT_GRPC].set(
"port", 
"0");
 
 
  119    (*cfg)[SECTION_PORT_GRPC].set(
"port", 
"0");
 
  120    (*cfg)[SECTION_PORT_GRPC].set(
"secure_gateway", secureGateway);
 
 
  130    auto& section = p->section(
"transaction_queue");
 
  131    section.set(
"ledgers_in_queue", 
"2");
 
  132    section.set(
"minimum_queue_size", 
"2");
 
  133    section.set(
"min_ledgers_to_compute_size_limit", 
"3");
 
  134    section.set(
"max_ledger_counts_to_store", 
"100");
 
  135    section.set(
"retry_sequence_percent", 
"25");
 
  136    section.set(
"normal_consensus_increase_percent", 
"0");
 
  138    for (
auto const& [k, v] : extraTxQ)
 
  143    if (!extraVoting.
empty())
 
  145        auto& votingSection = p->section(
"voting");
 
  146        for (
auto const& [k, v] : extraVoting)
 
  148            votingSection.set(k, v);
 
  152        p->section(
"validation_seed").legacy(
"shUwVw52ofnCUX5m7kPTKzJdr4HEH");
 
 
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 > validator(std::unique_ptr< Config >, std::string const &)
adjust configuration with params needed to be a validator
 
std::unique_ptr< Config > admin_localnet(std::unique_ptr< Config >)
 
std::unique_ptr< Config > makeConfig(std::map< std::string, std::string > extraTxQ={}, std::map< std::string, std::string > extraVoting={})
 
std::unique_ptr< Config > secure_gateway(std::unique_ptr< Config >)
 
std::unique_ptr< Config > no_admin(std::unique_ptr< Config >)
adjust config so no admin ports are enabled
 
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
 
std::unique_ptr< Config > addGrpcConfig(std::unique_ptr< Config >)
add a grpc address and port to config
 
auto constexpr defaultseed
 
XRP_t const XRP
Converts to XRP Issue or STAmount.
 
std::unique_ptr< Config > addGrpcConfigWithSecureGateway(std::unique_ptr< Config >, std::string const &secureGateway)
add a grpc address, port and secure_gateway to config
 
std::unique_ptr< Config > secure_gateway_localnet(std::unique_ptr< Config >)
 
void setupConfigForUnitTests(Config &config)
initializes a config object for use with jtx::Env
 
std::atomic< bool > envUseIPv4
 
char const * getEnvLocalhostAddr()
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
static std::string nodeDatabase()
 
static std::string importNodeDatabase()
 
XRPAmount reference_fee
The cost of a reference transaction in drops.
 
XRPAmount owner_reserve
The per-owned item reserve requirement in drops.
 
XRPAmount account_reserve
The account reserve requirement in drops.