X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Finit.cpp;h=24d9792bab4ff857423a6f5cbfc28651a370b90a;hp=44e4f807351763f760c0c272e68ea7bf78b81e8e;hb=83e34b29071b58d6578b197430d12c55d277a515;hpb=421cfe7910dbb5ef18ed4c2075d84405723b3ddc diff --git a/src/init.cpp b/src/init.cpp index 44e4f80..24d9792 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1,6 +1,7 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 The PPCoin developers +// Copyright (c) 2012-2013 The NovaCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" @@ -75,7 +76,7 @@ void Shutdown(void* parg) delete pwalletMain; CreateThread(ExitTimeout, NULL); Sleep(50); - printf("PPCoin exiting\n\n"); + printf("NovaCoin exiting\n\n"); fExit = true; #ifndef QT_GUI // ensure non UI client get's exited here, but let Bitcoin-Qt reach return 0; in bitcoin.cpp @@ -177,15 +178,15 @@ bool AppInit2(int argc, char* argv[]) if (mapArgs.count("-?") || mapArgs.count("--help")) { string strUsage = string() + - _("PPCoin version") + " " + FormatFullVersion() + "\n\n" + + _("NovaCoin version") + " " + FormatFullVersion() + "\n\n" + _("Usage:") + "\t\t\t\t\t\t\t\t\t\t\n" + - " ppcoind [options] \t " + "\n" + - " ppcoind [options] [params]\t " + _("Send command to -server or ppcoind") + "\n" + - " ppcoind [options] help \t\t " + _("List commands") + "\n" + - " ppcoind [options] help \t\t " + _("Get help for a command") + "\n" + + " novacoind [options] \t " + "\n" + + " novacoind [options] [params]\t " + _("Send command to -server or novacoind") + "\n" + + " novacoind [options] help \t\t " + _("List commands") + "\n" + + " novacoind [options] help \t\t " + _("Get help for a command") + "\n" + _("Options:") + "\n" + - " -conf= \t\t " + _("Specify configuration file (default: ppcoin.conf)") + "\n" + - " -pid= \t\t " + _("Specify pid file (default: ppcoind.pid)") + "\n" + + " -conf= \t\t " + _("Specify configuration file (default: novacoin.conf)") + "\n" + + " -pid= \t\t " + _("Specify pid file (default: novacoind.pid)") + "\n" + " -gen \t\t " + _("Generate coins") + "\n" + " -gen=0 \t\t " + _("Don't generate coins") + "\n" + " -min \t\t " + _("Start minimized") + "\n" + @@ -196,7 +197,7 @@ bool AppInit2(int argc, char* argv[]) " -timeout= \t " + _("Specify connection timeout (in milliseconds)") + "\n" + " -proxy= \t " + _("Connect through socks4 proxy") + "\n" + " -dns \t " + _("Allow DNS lookups for addnode and connect") + "\n" + - " -port= \t\t " + _("Listen for connections on (default: 9901 or testnet: 9903)") + "\n" + + " -port= \t\t " + _("Listen for connections on (default: 7777 or testnet: 17777)") + "\n" + " -maxconnections=\t " + _("Maintain at most connections to peers (default: 125)") + "\n" + " -addnode= \t " + _("Add a node to connect to and attempt to keep the connection open") + "\n" + " -connect= \t\t " + _("Connect only to the specified node") + "\n" + @@ -204,7 +205,7 @@ bool AppInit2(int argc, char* argv[]) #ifdef QT_GUI " -lang= \t\t " + _("Set language, for example \"de_DE\" (default: system locale)") + "\n" + #endif - " -dnsseed \t " + _("Find peers using DNS lookup (default: 1)") + "\n" + + " -dnsseed \t " + _("Find peers using DNS lookup (default: 0)") + "\n" + " -banscore= \t " + _("Threshold for disconnecting misbehaving peers (default: 100)") + "\n" + " -bantime= \t " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n" + " -maxreceivebuffer=\t " + _("Maximum per-connection receive buffer, *1000 bytes (default: 10000)") + "\n" + @@ -329,7 +330,7 @@ bool AppInit2(int argc, char* argv[]) if (!fDebug) ShrinkDebugFile(); printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); - printf("PPCoin version %s (%s)\n", FormatFullVersion().c_str(), CLIENT_DATE.c_str()); + printf("NovaCoin version %s (%s)\n", FormatFullVersion().c_str(), CLIENT_DATE.c_str()); printf("Default data directory %s\n", GetDefaultDataDir().string().c_str()); if (GetBoolArg("-loadblockindextest")) @@ -347,7 +348,7 @@ bool AppInit2(int argc, char* argv[]) static boost::interprocess::file_lock lock(pathLockFile.string().c_str()); if (!lock.try_lock()) { - ThreadSafeMessageBox(strprintf(_("Cannot obtain a lock on data directory %s. PPCoin is probably already running."), GetDataDir().string().c_str()), _("PPCoin"), wxOK|wxMODAL); + ThreadSafeMessageBox(strprintf(_("Cannot obtain a lock on data directory %s. NovaCoin is probably already running."), GetDataDir().string().c_str()), _("NovaCoin"), wxOK|wxMODAL); return false; } @@ -356,7 +357,7 @@ bool AppInit2(int argc, char* argv[]) // Load data files // if (fDaemon) - fprintf(stdout, "ppcoin server starting\n"); + fprintf(stdout, "novacoin server starting\n"); int64 nStart; InitMessage(_("Loading addresses...")); @@ -393,12 +394,12 @@ bool AppInit2(int argc, char* argv[]) if (nLoadWalletRet == DB_CORRUPT) strErrors << _("Error loading wallet.dat: Wallet corrupted") << "\n"; else if (nLoadWalletRet == DB_TOO_NEW) - strErrors << _("Error loading wallet.dat: Wallet requires newer version of PPCoin") << "\n"; + strErrors << _("Error loading wallet.dat: Wallet requires newer version of NovaCoin") << "\n"; else if (nLoadWalletRet == DB_NEED_REWRITE) { - strErrors << _("Wallet needed to be rewritten: restart PPCoin to complete") << "\n"; + strErrors << _("Wallet needed to be rewritten: restart NovaCoin to complete") << "\n"; printf("%s", strErrors.str().c_str()); - ThreadSafeMessageBox(strErrors.str(), _("PPCoin"), wxOK | wxICON_ERROR | wxMODAL); + ThreadSafeMessageBox(strErrors.str(), _("NovaCoin"), wxOK | wxICON_ERROR | wxMODAL); return false; } else @@ -470,7 +471,7 @@ bool AppInit2(int argc, char* argv[]) if (!strErrors.str().empty()) { - ThreadSafeMessageBox(strErrors.str(), _("PPCoin"), wxOK | wxICON_ERROR | wxMODAL); + ThreadSafeMessageBox(strErrors.str(), _("NovaCoin"), wxOK | wxICON_ERROR | wxMODAL); return false; } @@ -557,7 +558,7 @@ bool AppInit2(int argc, char* argv[]) std::string strError; if (!BindListenPort(strError)) { - ThreadSafeMessageBox(strError, _("PPCoin"), wxOK | wxMODAL); + ThreadSafeMessageBox(strError, _("NovaCoin"), wxOK | wxMODAL); return false; } } @@ -577,11 +578,11 @@ bool AppInit2(int argc, char* argv[]) { if (!ParseMoney(mapArgs["-paytxfee"], nTransactionFee) || nTransactionFee < MIN_TX_FEE) { - ThreadSafeMessageBox(_("Invalid amount for -paytxfee="), _("PPCoin"), wxOK | wxMODAL); + ThreadSafeMessageBox(_("Invalid amount for -paytxfee="), _("NovaCoin"), wxOK | wxMODAL); return false; } if (nTransactionFee > 0.25 * COIN) - ThreadSafeMessageBox(_("Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction."), _("PPCoin"), wxOK | wxICON_EXCLAMATION | wxMODAL); + ThreadSafeMessageBox(_("Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction."), _("NovaCoin"), wxOK | wxICON_EXCLAMATION | wxMODAL); } if (mapArgs.count("-reservebalance")) // ppcoin: reserve balance amount @@ -589,7 +590,7 @@ bool AppInit2(int argc, char* argv[]) int64 nReserveBalance = 0; if (!ParseMoney(mapArgs["-reservebalance"], nReserveBalance)) { - ThreadSafeMessageBox(_("Invalid amount for -reservebalance="), _("PPCoin"), wxOK | wxMODAL); + ThreadSafeMessageBox(_("Invalid amount for -reservebalance="), _("NovaCoin"), wxOK | wxMODAL); return false; } } @@ -597,7 +598,7 @@ bool AppInit2(int argc, char* argv[]) if (mapArgs.count("-checkpointkey")) // ppcoin: checkpoint master priv key { if (!Checkpoints::SetCheckpointPrivKey(GetArg("-checkpointkey", ""))) - ThreadSafeMessageBox(_("Unable to sign checkpoint, wrong checkpointkey?\n"), _("PPCoin"), wxOK | wxMODAL); + ThreadSafeMessageBox(_("Unable to sign checkpoint, wrong checkpointkey?\n"), _("NovaCoin"), wxOK | wxMODAL); } // @@ -609,7 +610,7 @@ bool AppInit2(int argc, char* argv[]) RandAddSeedPerfmon(); if (!CreateThread(StartNode, NULL)) - ThreadSafeMessageBox(_("Error: CreateThread(StartNode) failed"), _("PPCoin"), wxOK | wxMODAL); + ThreadSafeMessageBox(_("Error: CreateThread(StartNode) failed"), _("NovaCoin"), wxOK | wxMODAL); if (fServer) CreateThread(ThreadRPCServer, NULL);