Browse Source

rename ANC to GST and anoncoin to unioncoin

pull/5/head
orignal 7 years ago
parent
commit
ad3dca7a6a
  1. 12
      src/qt/bitcoinunits.cpp
  2. 16
      src/util.cpp

12
src/qt/bitcoinunits.cpp

@ -34,9 +34,9 @@ QString BitcoinUnits::name(int unit) @@ -34,9 +34,9 @@ QString BitcoinUnits::name(int unit)
{
switch(unit)
{
case BTC: return QString("ANC");
case mBTC: return QString("mANC");
case uBTC: return QString::fromUtf8("μANC");
case BTC: return QString("GST");
case mBTC: return QString("mGST");
case uBTC: return QString::fromUtf8("μGST");
default: return QString("???");
}
}
@ -45,9 +45,9 @@ QString BitcoinUnits::description(int unit) @@ -45,9 +45,9 @@ QString BitcoinUnits::description(int unit)
{
switch(unit)
{
case BTC: return QString("Anoncoins");
case mBTC: return QString("Milli-Anoncoins (1 / 1,000)");
case uBTC: return QString("Micro-Anoncoins (1 / 1,000,000)");
case BTC: return QString("Unioncoins");
case mBTC: return QString("Milli-Unioncoins (1 / 1,000)");
case uBTC: return QString("Micro-Unioncoins (1 / 1,000,000)");
default: return QString("???");
}
}

16
src/util.cpp

@ -1014,7 +1014,7 @@ bool writeFirstConfig(bool i2pOnlyEnabled, bool torOnlyEnabled, bool i2pEnabled, @@ -1014,7 +1014,7 @@ bool writeFirstConfig(bool i2pOnlyEnabled, bool torOnlyEnabled, bool i2pEnabled,
pt.put("proxy", "127.0.0.1:9050");
unsigned char rand_pwd[32];
RAND_bytes(rand_pwd, 32);
pt.put("rpcuser", "anoncoinrpc");
pt.put("rpcuser", "unioncoinrpc");
pt.put("rpcpassword", EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str());
pt.put("daemon", 1);
pt.put("server", 1);
@ -1035,7 +1035,7 @@ static std::string FormatException(std::exception* pex, const char* pszThread) @@ -1035,7 +1035,7 @@ static std::string FormatException(std::exception* pex, const char* pszThread)
char pszModule[MAX_PATH] = "";
GetModuleFileNameA(NULL, pszModule, sizeof(pszModule));
#else
const char* pszModule = "anoncoin";
const char* pszModule = "unioncoin";
#endif
if (pex)
return strprintf(
@ -1077,7 +1077,7 @@ boost::filesystem::path GetDefaultDataDir() @@ -1077,7 +1077,7 @@ boost::filesystem::path GetDefaultDataDir()
// Unix: ~/.bitcoin
#ifdef WIN32
// Windows
return GetSpecialFolderPath(CSIDL_APPDATA) / "Anoncoin";
return GetSpecialFolderPath(CSIDL_APPDATA) / "Unioncoin";
#else
fs::path pathRet;
char* pszHome = getenv("HOME");
@ -1089,10 +1089,10 @@ boost::filesystem::path GetDefaultDataDir() @@ -1089,10 +1089,10 @@ boost::filesystem::path GetDefaultDataDir()
// Mac
pathRet /= "Library/Application Support";
fs::create_directory(pathRet);
return pathRet / "Anoncoin";
return pathRet / "Unioncoin";
#else
// Unix
return pathRet / ".anoncoin";
return pathRet / ".unioncoin";
#endif
#endif
}
@ -1133,7 +1133,7 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific) @@ -1133,7 +1133,7 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific)
boost::filesystem::path GetConfigFile()
{
boost::filesystem::path pathConfigFile(GetArg("-conf", "anoncoin.conf"));
boost::filesystem::path pathConfigFile(GetArg("-conf", "unioncoin.conf"));
if (!pathConfigFile.is_complete()) pathConfigFile = GetDataDir(false) / pathConfigFile;
return pathConfigFile;
}
@ -1167,7 +1167,7 @@ void ReadConfigFile(map<string, string>& mapSettingsRet, @@ -1167,7 +1167,7 @@ void ReadConfigFile(map<string, string>& mapSettingsRet,
boost::filesystem::path GetPidFile()
{
boost::filesystem::path pathPidFile(GetArg("-pid", "anoncoind.pid"));
boost::filesystem::path pathPidFile(GetArg("-pid", "unioncoind.pid"));
if (!pathPidFile.is_complete()) pathPidFile = GetDataDir() / pathPidFile;
return pathPidFile;
}
@ -1396,7 +1396,7 @@ void AddTimeData(const CNetAddr& ip, int64 nTime) @@ -1396,7 +1396,7 @@ void AddTimeData(const CNetAddr& ip, int64 nTime)
if (!fMatch)
{
fDone = true;
string strMessage = _("Warning: Please check that your computer's date and time are correct! If your clock is wrong Anoncoin will not work properly.");
string strMessage = _("Warning: Please check that your computer's date and time are correct! If your clock is wrong Unioncoin will not work properly.");
strMiscWarning = strMessage;
printf("*** %s\n", strMessage.c_str());
uiInterface.ThreadSafeMessageBox(strMessage, "", CClientUIInterface::MSG_WARNING);

Loading…
Cancel
Save