20#include <test/jtx/amount.h>
21#include <test/jtx/envconfig.h>
23#include <xrpld/core/ConfigSections.h>
46 cfg.
legacy(
"database_path",
"");
48 cfg[
"server"].append(PORT_PEER);
56 cfg[PORT_PEER].set(
"port",
"0");
57 cfg[PORT_PEER].set(
"protocol",
"peer");
59 cfg[
"server"].append(PORT_RPC);
62 cfg[PORT_RPC].set(
"port",
"0");
63 cfg[PORT_RPC].set(
"protocol",
"http,ws2");
65 cfg[
"server"].append(PORT_WS);
68 cfg[PORT_WS].set(
"port",
"0");
69 cfg[PORT_WS].set(
"protocol",
"ws");
78 (*cfg)[PORT_RPC].set(
"admin",
"");
79 (*cfg)[PORT_WS].set(
"admin",
"");
86 (*cfg)[PORT_RPC].set(
"admin",
"");
87 (*cfg)[PORT_WS].set(
"admin",
"");
95 (*cfg)[PORT_RPC].set(
"admin",
"127.0.0.0/8");
96 (*cfg)[PORT_WS].set(
"admin",
"127.0.0.0/8");
103 (*cfg)[PORT_RPC].set(
"admin",
"");
104 (*cfg)[PORT_WS].set(
"admin",
"");
105 (*cfg)[PORT_RPC].set(
"secure_gateway",
"127.0.0.0/8");
106 (*cfg)[PORT_WS].set(
"secure_gateway",
"127.0.0.0/8");
116 cfg->section(SECTION_VALIDATION_SEED)
125 (*cfg)[SECTION_PORT_GRPC].set(
"port",
"0");
138 (*cfg)[SECTION_PORT_GRPC].set(
"port",
"0");
139 (*cfg)[SECTION_PORT_GRPC].set(
"secure_gateway", secureGateway);
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 > 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 > 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.