Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Enumerations | Functions | Variables
init.h File Reference
#include <string>
+ Include dependency graph for init.h:
+ This graph shows which files directly or indirectly include this file:

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
 
CWalletpwalletMain
 

Enumeration Type Documentation

Enumerator
HMM_BITCOIND 
HMM_BITCOIN_QT 

Definition at line 26 of file init.h.

Function Documentation

bool AppInit2 ( boost::thread_group &  threadGroup)

Initialize bitcoin.

Precondition
Parameters should be parsed and config file should be read.

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ShutdownRequested ( )

Definition at line 103 of file init.cpp.

References fRequestShutdown.

Referenced by BitcoinGUI::detectShutdown(), DetectShutdownThread(), and ServiceConnection().

+ Here is the caller graph for this function:

void StartShutdown ( )

Definition at line 99 of file init.cpp.

Referenced by AbortNode(), mastercore::checkExpiredAlerts(), encryptwallet(), StartRPCThreads(), and stop().

+ Here is the caller graph for this function:

Variable Documentation

CWallet* pwalletMain
std::string strWalletFile