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() @@ -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[]) @@ -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[]) @@ -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[]) @@ -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<boost::filesystem::path> vImportFiles) @@ -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.
*/
bool AppInit2(boost::thread_group& threadGroup)
@ -711,7 +711,7 @@ 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) @@ -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)
{

2
src/main.cpp

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

4
src/qt/rpcconsole.h

@ -8,7 +8,7 @@ namespace Ui { @@ -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: @@ -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:

6
src/rpcwallet.cpp

@ -415,7 +415,7 @@ Value getreceivedbyaddress(const Array& params, bool fHelp) @@ -415,7 +415,7 @@ Value getreceivedbyaddress(const Array& params, bool fHelp)
"getreceivedbyaddress <gostcoinaddress> [minconf=1]\n"
"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());
CScript scriptPubKey;
if (!address.IsValid())
@ -1299,7 +1299,7 @@ Value keypoolrefill(const Array& params, bool fHelp) @@ -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) @@ -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;

2
src/util.h

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

2
src/version.cpp

@ -7,7 +7,7 @@ @@ -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");

4
src/wallet.cpp

@ -1234,7 +1234,7 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend, @@ -1234,7 +1234,7 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& 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 @@ -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);

2
src/walletdb.cpp

@ -469,7 +469,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet) @@ -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)

Loading…
Cancel
Save