1#ifndef XRPL_TEST_JTX_ENVCONFIG_H_INCLUDED
2#define XRPL_TEST_JTX_ENVCONFIG_H_INCLUDED
4#include <xrpld/core/Config.h>
10#define PORT_WS "port_ws"
11#define PORT_RPC "port_rpc"
12#define PORT_PEER "port_peer"
54template <
class F,
class... 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 > 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
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.