Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#include <string>
Go to the source code of this file.
Enumerations | |
enum | HelpMessageMode { HMM_BITCOIND, HMM_BITCOIN_QT } |
Functions | |
void | StartShutdown () |
bool | ShutdownRequested () |
void | Shutdown () |
bool | AppInit2 (boost::thread_group &threadGroup) |
Initialize bitcoin. More... | |
std::string | HelpMessage (HelpMessageMode mode) |
Variables | |
std::string | strWalletFile |
CWallet * | pwalletMain |
enum HelpMessageMode |
bool AppInit2 | ( | boost::thread_group & | threadGroup | ) |
Initialize bitcoin.
Definition at line 416 of file init.cpp.
References _(), ActivateBestChain(), AddLocal(), AddOneShot(), addrman, BF_EXPLICIT, BF_NONE, BF_REPORT_ERROR, Bind(), bitdb, bSpendZeroConfChange, CClientUIInterface::BTN_ABORT, CBlock::BuildMerkleTree(), chainActive, CheckDiskSpace(), CLIENT_DATE, CLIENT_VERSION, DateTimeStrFormat(), DB_CORRUPT, DB_LOAD_OK, DB_NEED_REWRITE, DB_NONCRITICAL_ERROR, DB_TOO_NEW, DEFAULT_SCRIPTCHECK_THREADS, error(), fBenchmark, fDebug, fDiscover, FEATURE_LATEST, Checkpoints::fEnabled, CChain::FindFork(), fLogTimestamps, fNameLookup, fNoListen, FormatFullVersion(), fPrintToConsole, fReindex, fRequestShutdown, fServer, fTxIndex, GenerateBitcoins(), CChain::Genesis(), GetArg(), GetBoolArg(), GetDataDir(), GetDefaultDataDir(), CPubKey::GetID(), CWallet::GetKeyFromPool(), GetListenPort(), CChain::GetLocator(), GetNodeSignals(), GetTime(), GetTimeMillis(), HandleSIGHUP(), HandleSIGTERM(), CChain::Height(), InitBlockIndex(), InitError(), CClientUIInterface::InitMessage, InitRPCMining(), InitSanityCheck(), InitWarning(), IsLimited(), CNetAddr::IsValid(), LoadBlockIndex(), CWallet::LoadWallet(), LOCAL_MANUAL, LogPrintf, Lookup(), CWallet::mapAddressBook, mapArgs, mapBlockIndex, mapMultiArgs, CWallet::mapWallet, mastercore_init(), MAX_SCRIPTCHECK_THREADS, mempool, MIN_CORE_FILEDESCRIPTORS, CClientUIInterface::MSG_ERROR, nCoinCacheSize, nConnectTimeout, nDefaultDbCache, NET_IPV4, NET_IPV6, NET_MAX, NET_TOR, NET_UNROUTABLE, CBlockIndex::nHeight, nHighTransactionFeeWarning, nMaxConnections, nMaxDbCache, nMinDbCache, CTransaction::nMinRelayTxFee, CTransaction::nMinTxFee, nScriptCheckThreads, nTransactionFee, nWalletDBUpdated, CDBEnv::Open(), ParseMoney(), ParseNetwork(), pblocktree, pcoinsdbview, pcoinsTip, CBlock::print(), PrintBlockTree(), pwalletMain, RaiseFileDescriptorLimit(), RandAddSeedPerfmon(), CWallet::ReacceptWalletTransactions(), CAddrDB::Read(), CWalletDB::ReadBestBlock(), ReadBlockFromDisk(), CWalletDB::Recover(), CDBEnv::RECOVER_FAIL, CDBEnv::RECOVER_OK, RegisterNodeSignals(), RegisterWallet(), RegTest(), CWallet::ScanForWalletTransactions(), CWallet::SetAddressBook(), CWallet::SetBestChain(), CWallet::SetDefaultKey(), CWallet::setKeyPool, SetLimited(), CWallet::SetMaxVersion(), CWallet::SetMinVersion(), SetNameProxy(), SetProxy(), SetReachable(), CTxMemPool::setSanityCheck(), ShrinkDebugFile(), CAddrMan::size(), SoftSetBoolArg(), source, StartNode(), StartRPCThreads(), strprintf, strWalletFile, CWallet::strWalletFile, ThreadFlushWalletDB(), ThreadImport(), CClientUIInterface::ThreadSafeMessageBox, ThreadScriptCheck(), CChain::Tip(), base_uint< BITS >::ToString(), uiInterface, UnloadBlockIndex(), CWallet::vchDefaultKey, CDBEnv::Verify(), VerifyDB(), CBlockTreeDB::WriteReindexing(), and CWallet::ZapWalletTx().
Referenced by AppInit(), and BitcoinCore::initialize().
std::string HelpMessage | ( | HelpMessageMode | mode | ) |
Definition at line 194 of file init.cpp.
References _(), DEFAULT_BLOCK_MAX_SIZE, DEFAULT_BLOCK_PRIORITY_SIZE, DEFAULT_MAX_ORPHAN_BLOCKS, DEFAULT_MAX_ORPHAN_TRANSACTIONS, DEFAULT_SCRIPTCHECK_THREADS, FormatMoney(), GetBoolArg(), HMM_BITCOIN_QT, HMM_BITCOIND, MAX_SCRIPTCHECK_THREADS, nDefaultDbCache, nMaxDbCache, nMinDbCache, CTransaction::nMinRelayTxFee, CTransaction::nMinTxFee, and strprintf.
Referenced by AppInit(), and HelpMessageDialog::HelpMessageDialog().
void Shutdown | ( | ) |
Definition at line 110 of file init.cpp.
References CTxMemPool::AddTransactionsUpdated(), bitdb, chainActive, cs_main, CDBEnv::Flush(), CLevelDBWrapper::Flush(), CCoinsViewCache::Flush(), GenerateBitcoins(), CChain::GetLocator(), GetNodeSignals(), GetPidFile(), LOCK, LogPrintf, mastercore_shutdown(), mempool, pblocktree, pcoinsdbview, pcoinsTip, pwalletMain, RenameThread(), CWallet::SetBestChain(), ShutdownRPCMining(), StopNode(), StopRPCThreads(), TRY_LOCK, UnregisterAllWallets(), and UnregisterNodeSignals().
Referenced by AppInit(), and BitcoinCore::shutdown().
bool ShutdownRequested | ( | ) |
Definition at line 103 of file init.cpp.
References fRequestShutdown.
Referenced by BitcoinGUI::detectShutdown(), DetectShutdownThread(), and ServiceConnection().
void StartShutdown | ( | ) |
Definition at line 99 of file init.cpp.
Referenced by AbortNode(), mastercore::checkExpiredAlerts(), encryptwallet(), StartRPCThreads(), and stop().
CWallet* pwalletMain |
Referenced by _createmultisig_redeemScript(), addmultisigaddress(), AppInit2(), backupwallet(), mastercore::ClassB_send(), dumpprivkey(), dumpwallet(), encryptwallet(), EnsureWalletIsUnlocked(), CRPCTable::execute(), getaccount(), GetAccountAddress(), GetAccountBalance(), getaddressesbyaccount(), getbalance(), getinfo(), getLabel(), getnewaddress(), getrawchangeaddress(), getreceivedbyaccount(), getreceivedbyaddress(), gettransaction(), getunconfirmedbalance(), getwalletinfo(), CRPCTable::help(), HelpRequiringPassphrase(), importprivkey(), importwallet(), BitcoinApplication::initializeResult(), IsMyAddress(), keypoolrefill(), listaccounts(), listaddressgroupings(), listlockunspent(), ListReceived(), listsinceblock(), ListTransactions(), listtransactions(), listtransactions_MP(), lockunspent(), movecmd(), SignVerifyMessageDialog::on_signMessageButton_SM_clicked(), selectCoins(), sendfrom(), sendmany(), sendtoaddress(), setaccount(), Shutdown(), signmessage(), signrawtransaction(), SplashScreen::unsubscribeFromCoreSignals(), validateaddress(), walletlock(), walletpassphrase(), and walletpassphrasechange().
std::string strWalletFile |
Referenced by CWallet::AddCryptedKey(), CWallet::AddCScript(), CWallet::AddDestData(), CWallet::AddKeyPubKey(), CWallet::AddReserveKey(), AppInit2(), CWallet::ChangeWalletPassphrase(), CWallet::CommitTransaction(), CWallet::DelAddressBook(), CWallet::EncryptWallet(), CWallet::EraseDestData(), CWallet::EraseFromWallet(), CWallet::GetAllReserveKeys(), CWallet::IncOrderPosNext(), CWallet::KeepKey(), CWallet::LoadWallet(), CWallet::NewKeyPool(), CWallet::OrderedTxItems(), CWallet::ReserveKeyFromKeyPool(), CWallet::SetAddressBook(), CWallet::SetBestChain(), CWallet::SetDefaultKey(), CWallet::SetMinVersion(), CWallet::TopUpKeyPool(), and CWallet::ZapWalletTx().