aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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
| * Un-hardcode TX_FEE constantsGavin Andresen2013-05-031-0/+22
| | | | | | | | | | | | | | Allow setting of MIN_TX_FEE / MIN_RELAY_TX_FEE with -mintxfee / -mintxrelayfee Default values are the same (0.0001 BTC).
* | Merge pull request #2606 from gavinandresen/threadfixPieter Wuille2013-05-041-3/+3
|\ \ | | | | | | Exit cleanly if AppInit2 returns false
| * | Exit cleanly if AppInit2 returns falseGavin Andresen2013-05-021-3/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | Bitcoin-Qt could core dump if application initialization failed in certain ways. I double-fixed this: 1) qt/bitcoin.cpp now shuts down core threads cleanly if AppInit2 returns false 2) init.cpp now exits before StartNode() if strErrors is set (no reason to StartNode if we're just going to exit immediately anyway). Tested by triggering all of the various ways AppInit2 can fail, either by passing bogus command-line arguments or just recompiling tweaked code to simulate failure. This is a partial fix for #2480
* | Merge pull request #2558 from sipa/nodbdirPieter Wuille2013-05-031-11/+16
|\ \ | | | | | | Some database/-related recovery improvements
| * | Try moving database/ away in case of failurePieter Wuille2013-04-241-2/+16
| | |
| * | remove duplicate bitdb.Open() code from initPhilip Kaufmann2013-04-241-9/+0
| | | | | | | | | | | | - remove code from step 7, which we already have in step 5 of init
* | | Merge pull request #2566 from sipa/nodefGavin Andresen2013-05-031-5/+5
|\ \ \ | | | | | | | | Allow the default key to be unavailable
| * | | Allow the default key to be unavailablePieter Wuille2013-04-251-5/+5
| |/ / | | | | | | | | | This solves the issue where no default key can be added after -salvagewallet.
* | | Merge pull request #2603 from sipa/nobestblockPieter Wuille2013-05-031-0/+4
|\ \ \ | | | | | | | | Bugfix: if no bestblock record is present, do a -rescan
| * | | Bugfix: if no bestblock record is present, do a -rescanPieter Wuille2013-05-011-0/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | It is possible to have a wallet.dat file without any bestblock record at all (if created offline, for example), which - when loaded into a client with a up-to-date chain - does no rescan and shows no transactions. Also make sure to write the current best block after a rescan, so it isn't necessary twice.
* / | small init.cpp changes (strings / Winsock init)Philip Kaufmann2013-05-031-6/+5
|/ / | | | | | | | | | | - add a check that requested Winsock version is available - update some strings - remove -gen=0 from help-message as this is default
* | Merge pull request #2568 from sipa/rlimitGavin Andresen2013-04-291-0/+20
|\ \ | | | | | | Try to increase file descriptor rlimit if necessary
| * | Try to increase file descriptor rlimit if necessaryPieter Wuille2013-04-291-0/+20
| | | | | | | | | | | | As the default can be too low, especially on OSX.
* | | Accept negative -par values to leave N CPUs free.David Serrano2013-04-291-3/+3
|/ /
* / move WSAStartup to initWladimir J. van der Laan2013-04-281-0/+8
|/ | | | | | | WSAStartup should be called before using any other socket functions. BindListenPort is not called if not listening. Closes #2585.
* qt: don't show rpcconnect command line option in helpWladimir J. van der Laan2013-04-111-0/+2
| | | | | GUI can't connect to RPC. Showing this option in the help confuses people, so remove it.