20#ifndef RIPPLE_TEST_JTX_ENVCONFIG_H_INCLUDED
21#define RIPPLE_TEST_JTX_ENVCONFIG_H_INCLUDED
23#include <xrpld/core/Config.h>
29#define PORT_WS "port_ws"
30#define PORT_RPC "port_rpc"
31#define PORT_PEER "port_peer"
56 auto p = std::make_unique<Config>();
73template <
class F,
class... Args>
77 return modfunc(
envconfig(), std::forward<Args>(args)...);
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 > 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
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
const char * getEnvLocalhostAddr()
std::atomic< bool > envUseIPv4
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.