Make prefix for testnet "testnet-".

This commit is contained in:
Arthur Britto
2013-01-02 23:56:41 -08:00
parent 6bbf86a209
commit 4201cd13c0

View File

@@ -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);