aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Merge pull request #2716 from laanwj/2013_05_30_getworkJeff Garzik2013-05-301-0/+3
|\ | | | | Move pMiningKey init out of StartRPCThreads
| * Move pMiningKey init out of StartRPCThreadsWladimir J. van der Laan2013-05-301-0/+3
| | | | | | | | | | | | | | | | | | | | This commit decouples the pMiningKey initialization and shutdown from the RPC threads. `getwork` and `getblocktemplate` rely on pMiningKey, and can also be ran from the debug window in the UI even when the RPC server is not running. Solves issue #2706.
* | Merge pull request #2642 from sipa/rightgenesisJeff Garzik2013-05-301-0/+5
|\ \ | | | | | | Check for correct genesis
| * | Check for correct genesisPieter Wuille2013-05-121-0/+5
| | | | | | | | | | | | | | | | | | At startup, check that the expected genesis is loaded. This should prevent cases where accidentally a datadir from the wrong network is loaded (testnet vs mainnet, e.g.).
* | | Merge pull request #2693 from jgarzik/checkpoint-boolJeff Garzik2013-05-301-0/+2
|\ \ \ | |_|/ |/| | Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variable set once at init time
| * | Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variableJeff Garzik2013-05-241-0/+2
| | | | | | | | | | | | set once at init time.
* | | Merge pull request #2695 from robbak/init_cpp-explicit_castPieter Wuille2013-05-291-1/+1
|\ \ \ | | | | | | | | Explictly cast calculation to int, to allow std::min to work.
| * | | Explictly cast calculation to int, to allow std::max to work.Robert Backhaus2013-05-241-1/+1
| |/ /
* / / Fix crash-at-shutdown if exiting before initializing walletGavin Andresen2013-05-241-1/+2
|/ /
* / More bestblock records in walletsPieter Wuille2013-05-221-0/+3
|/ | | | | | | | | | Write bestblock records in wallets: * Every 20160 blocks synced, no matter what (before: none during IBD) * Every 144 blocks after IBD (before: for every block, slow) * When creating a new wallet * At shutdown This should result in far fewer spurious rescans.
* Merge pull request #2577 from gavinandresen/fee_bandaidGavin Andresen2013-05-041-0/+22
|\ | | | | Treat dust outputs as non-standard, un-hardcode TX_FEE constants