aboutsummaryrefslogtreecommitdiff
path: root/src/init.h
Commit message (Collapse)AuthorAgeFilesLines
* add missing header end commentsPhilip Kaufmann2014-08-281-1/+1
| | | | | | - ensures a consistent usage in header files - also add a blank line after the copyright header where missing - also remove orphan new-lines at the end of some files
* ensure clean and consistent "namespace" usagePhilip Kaufmann2014-06-261-1/+1
| | | | | | - remove some missplaced ; - ensure end of a namespace is clearly visible - use same formatting when using namespace
* Add 'about' information to `-version` outputWladimir J. van der Laan2014-06-121-0/+3
| | | | | | | Adds a copyright and attribution message to the `-version` output (the same as shown in the About dialog in the GUI). Move the message to a function LicenseInfo in init.cpp.
* Remove global strWalletFileWladimir J. van der Laan2014-06-051-1/+0
| | | | | As it says on the tin. There is no need to have this variable be global, it's only used in AppInit2.
* Allow `-noserver` with bitcoindWladimir J. van der Laan2013-12-201-1/+1
| | | | | | | | Allow running bitcoind without server. - Default to -server mode (of course) for bitcoind with SoftSetBoolArg - Remove fForceServer argument from AppInit2 - Move fDaemon to a static variable in bitcoind
* bitcoin-cli: remove unneeded dependencies (only code movement)Wladimir J. van der Laan2013-12-031-2/+1
| | | | | | | | | | | | | | Remove unnecessary dependencies for bitcoin-cli (leveldb, berkelydb, wallet, RPC server) Build system changes: - split libbitcoin.a into libbitcoin_common.a, libbitcoin_server.a and libbitcoin_cli.a Code changes (movement only): - split up HelpMessage into HelpMessage in init.cpp and HelpMessageCli in rpcclient.cpp - move uiInterface from init.cpp to util.cpp
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-1/+5
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* No more fHaveGUIWladimir J. van der Laan2013-11-041-1/+1
| | | | | | No more specific handling of GUI in bitcoin core. Replace the last usage of fHaveGUI with a fForceServer parameter on AppInit2.
* Break dependency of init on wallet.Pieter Wuille2013-10-261-1/+4
| | | | | | This required some code movement (what was CWalletTx::AcceptToMemoryPool doing in main?), and adding a few explicit includes that used to be implicit through init.h.
* Add separate bitcoin-rpc clientWladimir J. van der Laan2013-10-211-1/+10
| | | | | | | | This adds an executable `bitcoin-rpc` that only serves as a Bitcoin RPC client. The commit does not remove RPC functionality from the `bitcoind` yet, this functionality should be deprecated but is left for a later version to give users some time to switch.
* Bump Year Number to 2013super32013-10-201-1/+1
|
* let user select wallet file with -wallet=foo.datNils Schneider2013-07-041-0/+1
| | | | | | | | | | | | | | use std::string instead of psz for WalletFile only allow wallets within $DATADIR Use strWalletFile in salvage/recover fix: remove unused variable pszWalletFile move strWalletFile to init.h/init.cpp avoid conversion of strWalletfile to c-string
* Have Qt poll for shutdown requested, the QT way.Gavin Andresen2013-04-031-0/+1
|
* Clean up shutdown processGavin Andresen2013-04-031-2/+1
|
* Shutdown cleanup prep-workGavin Andresen2013-04-031-1/+2
| | | | | | | | | | Create a boost::thread_group object at the qt/bitcoind main-loop level that will hold pointers to all the main-loop threads. This will replace the vnThreadsRunning[] array. For testing, ported the BitcoinMiner threads to use its own boost::thread_group.
* introduce a new StartShutdown() function, which starts a thread with ↵Philip Kaufmann2012-06-121-0/+1
| | | | Shutdown() if no GUI is used and calls uiInterface.QueueShutdown() if a GUI is used / all direct uiInterface.QueueShutdown() calls are replaced with Shutdown() - this ensures a clean GUI shutdown, even when catching a SIGTERM and allows the BitcoinGUI destructor to get called (which fixes a tray-icon issue and keeps the tray-icon until Bitcoin-Qt exits)
* Merge pull request #1354 from fanquake/masterPieter Wuille2012-05-201-1/+1
|\ | | | | Update Header Licenses
| * Update License in File HeadersFordy2012-05-181-1/+1
| | | | | | | | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
* | Make testcases build, prevent windows symbol collisionWladimir J. van der Laan2012-05-201-1/+0
|/
* Move help message out of AppInit2Wladimir J. van der Laan2012-05-131-1/+2
| | | | | | | - Solves #1278, attempts to address #1049 - Removes \t's from help message that are removed afterwards anyway - Moves UI-specific command-line options help to UI code - Moves "-detachdb" out of #ifdef USE_UPNP
* remove 2 obsolete functions from init.h that moved to util.hPhilip Kaufmann2012-05-081-3/+0
|
* Remove headers.hPieter Wuille2012-04-171-0/+2
|
* Update all copyrights to 2012Gavin Andresen2012-02-071-1/+1
|
* Implement "Start on window system startup" on Win32 + Linux.Matt Corallo2011-12-201-0/+3
|
* Unify copyright notices.Matt Corallo2011-08-091-0/+1
| | | | | | To a variation on: // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2011 The Bitcoin developers
* CWallet classPieter Wuille2011-06-151-0/+2
| | | | | | | | | | | | * A new class CKeyStore manages private keys, and script.cpp depends on access to CKeyStore. * A new class CWallet extends CKeyStore, and contains all former wallet-specific globals; CWallet depends on script.cpp, not the other way around. * Wallet-specific functions in CTransaction/CTxIn/CTxOut (GetDebit, GetCredit, GetChange, IsMine, IsFromMe), are moved to CWallet, taking their former 'this' argument as an explicit parameter * CWalletTx objects know which CWallet they belong to, for convenience, so they have their own direct (and caching) GetDebit/... functions. * Some code was moved from CWalletDB to CWallet, such as handling of reserve keys. * Main.cpp keeps a set of all 'registered' wallets, which should be informed about updates to the block chain, and does not have any notion about any 'main' wallet. Function in main.cpp that require a wallet (such as GenerateCoins), take an explicit CWallet* argument. * The actual CWallet instance used by the application is defined in init.cpp as "CWallet* pwalletMain". rpc.cpp and ui.cpp use this variable. * Functions in main.cpp and db.cpp that are not used by other modules are marked static. * The code for handling the 'submitorder' message is removed, as it not really compatible with the idea that a node is independent from the wallet(s) connected to it, and obsolete anyway.
* make bitcoin include files more modularWladimir J. van der Laan2011-05-151-0/+4
|
* directory re-organization (keeps the old build system)Jaromil2011-04-231-0/+7
there is no internal modification of any file in this commit files are moved into directories according to established standards in sourcecode distribution; these directories contain: src - Files that are used in constructing the executable binaries, but are not installed. doc - Files in HTML and text format that document usage, quirks of the implementation, and contributor checklists. locale - Files that contain human language translation of strings used in the program contrib - Files contributed from distributions or other third party implementing scripts and auxiliary programs