aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #2981 from gmaxwell/tor2onionGavin Andresen2013-10-161-6/+11
|\ \ | | | | | | Rename -tor to -onion to better reflect what it does.
| * | Rename -tor to -onion to better reflect what it does.Gregory Maxwell2013-09-081-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've seen users confused multiple times thinking they should be using -tor to set their tor proxy and then finding in horror that they were still connecting to the IPv4 internet. Even Jeff guesses wrong about what the knob does, so I think we should rename it. This leaves the old knob working, we can pull it out completely in a later release.
* | | Reimplement CBlockLocator's chain-related logic in CChain.Pieter Wuille2013-10-151-4/+4
| | | | | | | | | | | | | | | | | | | | | This removes a few unused CBlockLocator methods, and moves the construction and fork-finding logic to CChain (which can do these more efficiently, as it has a height-indexable chain available). It also makes CBlockLocator independent from the validation code.
* | | Refactor/encapsulate chain globals into a CChain classPieter Wuille2013-10-111-10/+10
| |/ |/|
* | log start and end of Shutdown()Philip Kaufmann2013-10-021-0/+2
| | | | | | | | - could be helpful when debugging shutdown related problems
* | Support absence of wallet (pwalletMain==NULL) in several locations,Jeff Garzik2013-10-011-11/+17
| | | | | | | | notably RPC.
* | misc small spelling/indentation fixesPhilip Kaufmann2013-10-011-2/+2
| |
* | Replace printf with LogPrintf / LogPrintGavin Andresen2013-09-181-35/+35
| |
* | Refactor: OutputDebugStringF -> LogPrint(category, ...)Gavin Andresen2013-09-181-1/+1
| |
* | fix some cosmetic glitches in the codebasePhilip Kaufmann2013-09-091-1/+1
|/ | | | | | | | | | | - rename URL into URI in paymentserver where correct - add some missing Qt-coding-stuff in paymentserver - change QSpinBox to QLineEdit as base for BitcoinAmountField in .ui files (as this is the result when converting the BAF back into base) - remove some c_str() and replace with QString::fromStdString() - remove several new-lines - remove unneeded spaces - indentation fixes
* autotools: switch to autotools buildsystemCory Fields2013-09-051-0/+4
|
* Merge pull request #2940 from Diapolo/checkpointPieter Wuille2013-08-291-2/+1
|\ | | | | move Checkpoints:fEnabled from step 2 to step 3 in init
| * move Checkpoints:fEnabled from step 2 to step 3 in initPhilip Kaufmann2013-08-251-2/+1
| | | | | | | | | | - it belongs to parameter-to-internal flags step, not parameter interactions phase
* | Merge pull request #2904 from gmaxwell/newaddr-no-passphraseGregory Maxwell2013-08-281-1/+1
|\ \ | |/ |/| [QT] Don't ask for a passphrase to getnewaddress.
| * Remove fAllowReuse from GetKeyFromPool.Gregory Maxwell2013-08-231-1/+1
| | | | | | | | With the GUI password fix this was always false.
* | Merge pull request #2618 from fcicq/solaris-supportJeff Garzik2013-08-241-0/+5
|\ \ | |/ |/| Partial solaris support
| * Ignore SIGPIPE signal on Solarisfcicq2013-07-171-0/+5
| |
* | Payment Protocol: X509-validated payment requestsGavin Andresen2013-08-221-1/+1
| | | | | | | | | | | | | | | | Add support for a Payment Protocol to Bitcoin-Qt. Payment messages are protocol-buffer encoded and communicated over http(s), so this adds a dependency on the Google protocol buffer library, and requires Qt with OpenSSL support.
* | update SelectParamsFromCommandLine() handling/orderPhilip Kaufmann2013-08-221-3/+0
| | | | | | | | | | | | | | | | | | - move SelectParamsFromCommandLine() from init.cpp to bitcoin.cpp to allow to use TestNet() for Bitcoin-Qt instead of GetBoolArg("-testnet", false) - change order in bitcoind.cpp to match bitcoin.cpp functionality - hamonize error message strings for missing datadir and failing SelectParamsFromCommandLine() in bitcoin.cpp and bitcoind.cpp - use TestNet() call in splashscreen.cpp
* | Merge pull request #2891 from gavinandresen/leveldb_printerrorGavin Andresen2013-08-151-0/+1
|\ \ | | | | | | Use HandleError() consistently to handle leveldb errors
| * | Use HandleError() consistently to handle leveldb errorsGavin Andresen2013-08-121-0/+1
| | |
* | | Mempool consistency checkPieter Wuille2013-08-151-0/+1
| | |
* | | Merge pull request #2658 from TheBlueMatt/forkalertGavin Andresen2013-08-121-1/+1
|\ \ \ | |/ / |/| | Detect any sufficiently long fork and alert the user just like any other alert
| * | Call the -alertnotify script when we see a long or invalid fork.Matt Corallo2013-07-221-1/+1
| |/
* | remove a newline from a string in init.cppPhilip Kaufmann2013-08-061-1/+1
| | | | | | | | | | - to match all other translatable strings in init.cpp and to simplify translations via Transifex
* | Move internal miner/block creation to separate miner.cpp module.Jeff Garzik2013-07-311-0/+1
| | | | | | | | Public functions referenced elsewhere are added to miner.h.
* | Merge pull request #1889 from tcatm/multi-walletGavin Andresen2013-07-241-5/+13
|\ \ | | | | | | let user select wallet file with -wallet=foo.dat
| * | let user select wallet file with -wallet=foo.datNils Schneider2013-07-041-5/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge pull request #2795 from fanquake/log_aborted_rebuildsJeff Garzik2013-07-221-0/+1
|\ \ | | | | | | Log aborted block database rebuilds
| * | Log aborted block database rebuildsMichael Ford2013-06-251-0/+1
| | |
* | | Bugfix: Include block creation and SSL options headings in usageLuke Dashjr2013-07-211-2/+2
| |/ |/|
* | Calling UnregisterAllWallets() instead of UnregisterWallet(pwalletMain) in ↵Eric Lombrozo2013-06-241-1/+1
|/ | | | init.cpp
* Moved CBlock::ReadFromDisk out of CBlock to functions ReadBlockFromDisk in ↵Eric Lombrozo2013-06-231-1/+1
| | | | main.h
* Merge pull request #2783 from sipa/newtxindexPieter Wuille2013-06-231-6/+6
|\ | | | | Initialize database before checking changed txindex
| * Initialize database before checking changed txindexPieter Wuille2013-06-221-6/+6
| | | | | | | | | | | | | | | | | | | | | | In case no database exists yet, and -txindex(=1) is passed, we currently first check whether fTxIndex differs from -txindex (and ask the user to reindex in that case), and only afterwards initialize the database. By swapping these around (the initialization is a no-op in case the database already exists), we allow it to be born in txindex mode, without warning. That also means we don't need to check -reindex anymore, as the wiping/reinit of the databases happens before checking.
* | init.cpp: fix chainparams.h double include.Jeff Garzik2013-06-231-1/+0
| | | | | | | | Noticed by Diapolo.
* | Merge pull request #2778 from jgarzik/rpc-verifydbJeff Garzik2013-06-221-1/+2
|\ \ | | | | | | RPC: add 'verifychain' to verify chain database at runtime
| * | Pass check level, check depth to VerifyDB()Jeff Garzik2013-06-191-1/+2
| |/
* / Introduce a CChainParameters singleton class and regtest mode.Mike Hearn2013-06-191-3/+8
|/ | | | | | | | | | | | | The new class is accessed via the Params() method and holds most things that vary between main, test and regtest networks. The regtest mode has two purposes, one is to run the bitcoind/bitcoinj comparison tool which compares two separate implementations of the Bitcoin protocol looking for divergence. The other is that when run, you get a local node which can mine a single block instantly, which is highly convenient for testing apps during development as there's no need to wait 10 minutes for a block on the testnet.
* allow txindex to be removed and add a reindex dialogPhilip Kaufmann2013-06-101-4/+7
| | | | | | - adds a reindex dialog for Bitcoin-Qt to change -txindex without the need to supply -reindex - now also does a -reindex, when removing the -txindex switch
* Using boost::signals2 to message main from net.cpp.Eric Lombrozo2013-06-051-4/+2
|
* Removed AcceptToMemoryPool method from CTransaction. This method belongs to ↵Eric Lombrozo2013-06-051-0/+1
| | | | | | | | | | | | | | | | | the mempool instance. Removed AreInputsStandard from CTransaction, made it a regular function in main. Moved CTransaction::GetOutputFor to CCoinsViewCache. Moved GetLegacySigOpCount and GetP2SHSigOpCount out of CTransaction into regular functions in main. Moved GetValueIn and HaveInputs from CTransaction into CCoinsViewCache. Moved AllowFree, ClientCheckInputs, CheckInputs, UpdateCoins, and CheckTransaction out of CTransaction and into main. Moved IsStandard and IsFinal out of CTransaction and put them in main as IsStandardTx and IsFinalTx. Moved GetValueOut out of CTransaction into main. Moved CTxIn, CTxOut, and CTransaction into core. Added minimum fee parameter to CTxOut::IsDust() temporarily until CTransaction is moved to core.h so that CTxOut needn't know about CTransaction.
* Removed net.cpp's dependency on init.h.Eric Lombrozo2013-06-051-1/+6
| | | | | | | | | | Added explicit include of main.h in init.cpp, changed include of init.h to include of main.h in net.cpp. Added function registration for net.cpp in init.cpp's network initialization. Removed protocol.cpp's dependency on main.h. TODO: Remove main.h include in net.cpp.
* Moved unrelated-to-network calls in StartNode and StopNode into init.cppEric Lombrozo2013-06-051-0/+2
|
* Get rid of db dependencies on mainEric Lombrozo2013-06-051-0/+1
|
* build: use runtime setting for displaying the help message rather than ↵Cory Fields2013-06-041-11/+9
| | | | QT_GUI define
* build: cosmetic: split usage string for easier formattingCory Fields2013-06-041-70/+70
|
* build: split the non-gui startup routines into a new fileCory Fields2013-06-041-134/+0
| | | | | | This will allow each to have its own main(), meaning that we can build a common base client and simply link in the correct startup object to create the appropriate binary.
* build: prepare to move DetectShutdownThreadCory Fields2013-06-041-3/+5
|
* remove GetBoolArg() fDefault parameter defaulting to falsePhilip Kaufmann2013-06-011-14/+14
| | | | | | | | - explicitly set the default of all GetBoolArg() calls - rework getarg_test.cpp and util_tests.cpp to cover this change - some indentation fixes - move macdockiconhandler.h include in bitcoin.cpp to the "our headers" section