From a8a23ca4733ce592051f08bab00f1ed8aec407fd Mon Sep 17 00:00:00 2001 From: r4sas Date: Fri, 12 Apr 2019 10:09:07 +0000 Subject: [PATCH] update name --- src/init.cpp | 14 +++++++------- src/main.cpp | 2 +- src/qt/rpcconsole.h | 4 ++-- src/rpcwallet.cpp | 6 +++--- src/util.h | 2 +- src/version.cpp | 2 +- src/wallet.cpp | 4 ++-- src/walletdb.cpp | 2 +- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 677004e..cc28add 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -112,7 +112,7 @@ void Shutdown() TRY_LOCK(cs_Shutdown, lockShutdown); if (!lockShutdown) return; - RenameThread("bitcoin-shutoff"); + RenameThread("gostcoin-shutoff"); nTransactionsUpdated++; StopRPCThreads(); ShutdownRPCMining(); @@ -190,7 +190,7 @@ bool AppInit(int argc, char* argv[]) // // Parameters // - // If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's main() + // If Qt is used, parameters/gostcoin.conf are parsed in qt/gostcoin.cpp's main() ParseParameters(argc, argv); if (!boost::filesystem::is_directory(GetDataDir(false))) { @@ -205,7 +205,7 @@ bool AppInit(int argc, char* argv[]) if (mapArgs.count("-?") || mapArgs.count("--help")) { - // First part of help message is specific to bitcoind / RPC client + // First part of help message is specific to gostcoind / RPC client std::string strUsage = _("GOSTcoin version") + " " + FormatFullVersion() + "\n\n" + _("Usage:") + "\n" + " gostcoind [options] " + "\n" + @@ -283,7 +283,7 @@ int main(int argc, char* argv[]) { bool fRet = false; - // Connect bitcoind signal handlers + // Connect gostcoind signal handlers noui_connect(); fRet = AppInit(argc, argv); @@ -480,7 +480,7 @@ void ThreadImport(std::vector vImportFiles) } } -/** Initialize bitcoin. +/** Initialize gostcoin. * @pre Parameters should be parsed and config file should be read. */ bool AppInit2(boost::thread_group& threadGroup) @@ -711,7 +711,7 @@ bool AppInit2(boost::thread_group& threadGroup) std::string strDataDir = GetDataDir().string(); - // Make sure only a single Bitcoin process is using the data directory. + // Make sure only a single GOSTCoin process is using the data directory. boost::filesystem::path pathLockFile = GetDataDir() / ".lock"; FILE* file = fopen(pathLockFile.string().c_str(), "a"); // empty lock file; created if it doesn't exist. if (file) fclose(file); @@ -1020,7 +1020,7 @@ bool AppInit2(boost::thread_group& threadGroup) } // as LoadBlockIndex can take several minutes, it's possible the user - // requested to kill bitcoin-qt during the last operation. If so, exit. + // requested to kill gostcoin-qt during the last operation. If so, exit. // As the program has not fully started yet, Shutdown() is possibly overkill. if (fRequestShutdown) { diff --git a/src/main.cpp b/src/main.cpp index b296d78..7823e94 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1711,7 +1711,7 @@ bool FindUndoPos(CValidationState &state, int nFile, CDiskBlockPos &pos, unsigne static CCheckQueue scriptcheckqueue(128); void ThreadScriptCheck() { - RenameThread("bitcoin-scriptch"); + RenameThread("gostcoin-scriptch"); scriptcheckqueue.Thread(); } diff --git a/src/qt/rpcconsole.h b/src/qt/rpcconsole.h index 3c38b4b..00d1e1a 100644 --- a/src/qt/rpcconsole.h +++ b/src/qt/rpcconsole.h @@ -8,7 +8,7 @@ namespace Ui { } class ClientModel; -/** Local Bitcoin RPC console. */ +/** Local GOSTCoin RPC console. */ class RPCConsole: public QDialog { Q_OBJECT @@ -35,7 +35,7 @@ private slots: void on_tabWidget_currentChanged(int index); /** open the debug.log from the current datadir */ void on_openDebugLogfileButton_clicked(); - /** display messagebox with program parameters (same as bitcoin-qt --help) */ + /** display messagebox with program parameters (same as gostcoin-qt --help) */ void on_showCLOptionsButton_clicked(); public slots: diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index e78180c..244d2ea 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -415,7 +415,7 @@ Value getreceivedbyaddress(const Array& params, bool fHelp) "getreceivedbyaddress [minconf=1]\n" "Returns the total amount received by in transactions with at least [minconf] confirmations."); - // Bitcoin address + // GOSTCoin address CBitcoinAddress address = CBitcoinAddress(params[0].get_str()); CScript scriptPubKey; if (!address.IsValid()) @@ -1299,7 +1299,7 @@ Value keypoolrefill(const Array& params, bool fHelp) void ThreadTopUpKeyPool(void* parg) { // Make this thread recognisable as the key-topping-up thread - RenameThread("bitcoin-key-top"); + RenameThread("gostcoin-key-top"); pwalletMain->TopUpKeyPool(); } @@ -1307,7 +1307,7 @@ void ThreadTopUpKeyPool(void* parg) void ThreadCleanWalletPassphrase(void* parg) { // Make this thread recognisable as the wallet relocking thread - RenameThread("bitcoin-lock-wa"); + RenameThread("gostcoin-lock-wa"); int64 nMyWakeTime = GetTimeMillis() + *((int64*)parg) * 1000; diff --git a/src/util.h b/src/util.h index 8385b25..d385f3c 100644 --- a/src/util.h +++ b/src/util.h @@ -603,7 +603,7 @@ template void LoopForever(const char* name, Callable func, // .. and a wrapper that just calls func once template void TraceThread(const char* name, Callable func) { - std::string s = strprintf("bitcoin-%s", name); + std::string s = strprintf("gostcoin-%s", name); RenameThread(s.c_str()); try { diff --git a/src/version.cpp b/src/version.cpp index 812cee2..3256362 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -7,7 +7,7 @@ #include "version.h" // Name of client reported in the 'version' message. Report the same name -// for both bitcoind and bitcoin-qt, to make it harder for attackers to +// for both gostcoind and gostcoin-qt, to make it harder for attackers to // target servers or GUI users specifically. const std::string CLIENT_NAME("GOST"); diff --git a/src/wallet.cpp b/src/wallet.cpp index e9a214d..f02efbe 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1234,7 +1234,7 @@ bool CWallet::CreateTransaction(const vector >& vecSend, { // Fill a vout to ourself // TODO: pass in scriptChange instead of reservekey so - // change transaction isn't always pay-to-bitcoin-address + // change transaction isn't always pay-to-gostcoin-address CScript scriptChange; // coin control: send change to custom address @@ -1419,7 +1419,7 @@ string CWallet::SendMoneyToDestination(const CTxDestination& address, int64 nVal if (nValue + nTransactionFee > GetBalance()) return _("Insufficient funds"); - // Parse Bitcoin address + // Parse GOSTCoin address CScript scriptPubKey; scriptPubKey.SetDestination(address); diff --git a/src/walletdb.cpp b/src/walletdb.cpp index 1dce489..a81d1c9 100644 --- a/src/walletdb.cpp +++ b/src/walletdb.cpp @@ -469,7 +469,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet) void ThreadFlushWalletDB(const string& strFile) { // Make this thread recognisable as the wallet flushing thread - RenameThread("bitcoin-wallet"); + RenameThread("gostcoin-wallet"); static bool fOneThread; if (fOneThread)