Browse Source

update name

pull/37/head
R4SAS 5 years ago
parent
commit
a8a23ca473
  1. 14
      src/init.cpp
  2. 2
      src/main.cpp
  3. 4
      src/qt/rpcconsole.h
  4. 6
      src/rpcwallet.cpp
  5. 2
      src/util.h
  6. 2
      src/version.cpp
  7. 4
      src/wallet.cpp
  8. 2
      src/walletdb.cpp

14
src/init.cpp

@ -112,7 +112,7 @@ void Shutdown()
TRY_LOCK(cs_Shutdown, lockShutdown); TRY_LOCK(cs_Shutdown, lockShutdown);
if (!lockShutdown) return; if (!lockShutdown) return;
RenameThread("bitcoin-shutoff"); RenameThread("gostcoin-shutoff");
nTransactionsUpdated++; nTransactionsUpdated++;
StopRPCThreads(); StopRPCThreads();
ShutdownRPCMining(); ShutdownRPCMining();
@ -190,7 +190,7 @@ bool AppInit(int argc, char* argv[])
// //
// Parameters // 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); ParseParameters(argc, argv);
if (!boost::filesystem::is_directory(GetDataDir(false))) if (!boost::filesystem::is_directory(GetDataDir(false)))
{ {
@ -205,7 +205,7 @@ bool AppInit(int argc, char* argv[])
if (mapArgs.count("-?") || mapArgs.count("--help")) 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" + std::string strUsage = _("GOSTcoin version") + " " + FormatFullVersion() + "\n\n" +
_("Usage:") + "\n" + _("Usage:") + "\n" +
" gostcoind [options] " + "\n" + " gostcoind [options] " + "\n" +
@ -283,7 +283,7 @@ int main(int argc, char* argv[])
{ {
bool fRet = false; bool fRet = false;
// Connect bitcoind signal handlers // Connect gostcoind signal handlers
noui_connect(); noui_connect();
fRet = AppInit(argc, argv); fRet = AppInit(argc, argv);
@ -480,7 +480,7 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
} }
} }
/** Initialize bitcoin. /** Initialize gostcoin.
* @pre Parameters should be parsed and config file should be read. * @pre Parameters should be parsed and config file should be read.
*/ */
bool AppInit2(boost::thread_group& threadGroup) bool AppInit2(boost::thread_group& threadGroup)
@ -711,7 +711,7 @@ bool AppInit2(boost::thread_group& threadGroup)
std::string strDataDir = GetDataDir().string(); 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"; boost::filesystem::path pathLockFile = GetDataDir() / ".lock";
FILE* file = fopen(pathLockFile.string().c_str(), "a"); // empty lock file; created if it doesn't exist. FILE* file = fopen(pathLockFile.string().c_str(), "a"); // empty lock file; created if it doesn't exist.
if (file) fclose(file); 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 // 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. // As the program has not fully started yet, Shutdown() is possibly overkill.
if (fRequestShutdown) if (fRequestShutdown)
{ {

2
src/main.cpp

@ -1711,7 +1711,7 @@ bool FindUndoPos(CValidationState &state, int nFile, CDiskBlockPos &pos, unsigne
static CCheckQueue<CScriptCheck> scriptcheckqueue(128); static CCheckQueue<CScriptCheck> scriptcheckqueue(128);
void ThreadScriptCheck() { void ThreadScriptCheck() {
RenameThread("bitcoin-scriptch"); RenameThread("gostcoin-scriptch");
scriptcheckqueue.Thread(); scriptcheckqueue.Thread();
} }

4
src/qt/rpcconsole.h

@ -8,7 +8,7 @@ namespace Ui {
} }
class ClientModel; class ClientModel;
/** Local Bitcoin RPC console. */ /** Local GOSTCoin RPC console. */
class RPCConsole: public QDialog class RPCConsole: public QDialog
{ {
Q_OBJECT Q_OBJECT
@ -35,7 +35,7 @@ private slots:
void on_tabWidget_currentChanged(int index); void on_tabWidget_currentChanged(int index);
/** open the debug.log from the current datadir */ /** open the debug.log from the current datadir */
void on_openDebugLogfileButton_clicked(); 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(); void on_showCLOptionsButton_clicked();
public slots: public slots:

6
src/rpcwallet.cpp

@ -415,7 +415,7 @@ Value getreceivedbyaddress(const Array& params, bool fHelp)
"getreceivedbyaddress <gostcoinaddress> [minconf=1]\n" "getreceivedbyaddress <gostcoinaddress> [minconf=1]\n"
"Returns the total amount received by <gostcoinaddress> in transactions with at least [minconf] confirmations."); "Returns the total amount received by <gostcoinaddress> in transactions with at least [minconf] confirmations.");
// Bitcoin address // GOSTCoin address
CBitcoinAddress address = CBitcoinAddress(params[0].get_str()); CBitcoinAddress address = CBitcoinAddress(params[0].get_str());
CScript scriptPubKey; CScript scriptPubKey;
if (!address.IsValid()) if (!address.IsValid())
@ -1299,7 +1299,7 @@ Value keypoolrefill(const Array& params, bool fHelp)
void ThreadTopUpKeyPool(void* parg) void ThreadTopUpKeyPool(void* parg)
{ {
// Make this thread recognisable as the key-topping-up thread // Make this thread recognisable as the key-topping-up thread
RenameThread("bitcoin-key-top"); RenameThread("gostcoin-key-top");
pwalletMain->TopUpKeyPool(); pwalletMain->TopUpKeyPool();
} }
@ -1307,7 +1307,7 @@ void ThreadTopUpKeyPool(void* parg)
void ThreadCleanWalletPassphrase(void* parg) void ThreadCleanWalletPassphrase(void* parg)
{ {
// Make this thread recognisable as the wallet relocking thread // Make this thread recognisable as the wallet relocking thread
RenameThread("bitcoin-lock-wa"); RenameThread("gostcoin-lock-wa");
int64 nMyWakeTime = GetTimeMillis() + *((int64*)parg) * 1000; int64 nMyWakeTime = GetTimeMillis() + *((int64*)parg) * 1000;

2
src/util.h

@ -603,7 +603,7 @@ template <typename Callable> void LoopForever(const char* name, Callable func,
// .. and a wrapper that just calls func once // .. and a wrapper that just calls func once
template <typename Callable> void TraceThread(const char* name, Callable func) template <typename Callable> 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()); RenameThread(s.c_str());
try try
{ {

2
src/version.cpp

@ -7,7 +7,7 @@
#include "version.h" #include "version.h"
// Name of client reported in the 'version' message. Report the same name // 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. // target servers or GUI users specifically.
const std::string CLIENT_NAME("GOST"); const std::string CLIENT_NAME("GOST");

4
src/wallet.cpp

@ -1234,7 +1234,7 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend,
{ {
// Fill a vout to ourself // Fill a vout to ourself
// TODO: pass in scriptChange instead of reservekey so // 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; CScript scriptChange;
// coin control: send change to custom address // coin control: send change to custom address
@ -1419,7 +1419,7 @@ string CWallet::SendMoneyToDestination(const CTxDestination& address, int64 nVal
if (nValue + nTransactionFee > GetBalance()) if (nValue + nTransactionFee > GetBalance())
return _("Insufficient funds"); return _("Insufficient funds");
// Parse Bitcoin address // Parse GOSTCoin address
CScript scriptPubKey; CScript scriptPubKey;
scriptPubKey.SetDestination(address); scriptPubKey.SetDestination(address);

2
src/walletdb.cpp

@ -469,7 +469,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
void ThreadFlushWalletDB(const string& strFile) void ThreadFlushWalletDB(const string& strFile)
{ {
// Make this thread recognisable as the wallet flushing thread // Make this thread recognisable as the wallet flushing thread
RenameThread("bitcoin-wallet"); RenameThread("gostcoin-wallet");
static bool fOneThread; static bool fOneThread;
if (fOneThread) if (fOneThread)

Loading…
Cancel
Save