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