From 4201cd13c094866e3b0c1ba7d1c56dc61cb32827 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Wed, 2 Jan 2013 23:56:41 -0800 Subject: [PATCH] Make prefix for testnet "testnet-". --- src/cpp/ripple/Config.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpp/ripple/Config.cpp b/src/cpp/ripple/Config.cpp index b2700dbea5..ff9c161a2d 100644 --- a/src/cpp/ripple/Config.cpp +++ b/src/cpp/ripple/Config.cpp @@ -73,12 +73,12 @@ void Config::setup(const std::string& strConf, bool bTestNet, bool bQuiet) TESTNET = bTestNet; QUIET = bQuiet; - // TESTNET forces a "test-" prefix on the conf file and db directory. - strDbPath = TESTNET ? "test-db" : "db"; - strConfFile = boost::str(boost::format(TESTNET ? "test-%s" : "%s") + // TESTNET forces a "testnet-" prefix on the conf file and db directory. + strDbPath = TESTNET ? "testnet-db" : "db"; + strConfFile = boost::str(boost::format(TESTNET ? "testnet-%s" : "%s") % (strConf.empty() ? CONFIG_FILE_NAME : strConf)); - VALIDATORS_BASE = boost::str(boost::format(TESTNET ? "test-%s" : "%s") + VALIDATORS_BASE = boost::str(boost::format(TESTNET ? "testnet-%s" : "%s") % VALIDATORS_FILE_NAME); VALIDATORS_URI = boost::str(boost::format("/%s") % VALIDATORS_BASE);