aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
AgeCommit message (Collapse)Author
2013-08-22Payment Protocol: X509-validated payment requestsGavin Andresen
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.
2013-08-22update SelectParamsFromCommandLine() handling/orderPhilip Kaufmann
- 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
2013-08-15Merge pull request #2891 from gavinandresen/leveldb_printerrorGavin Andresen
Use HandleError() consistently to handle leveldb errors
2013-08-15Mempool consistency checkPieter Wuille
2013-08-12Merge pull request #2658 from TheBlueMatt/forkalertGavin Andresen
Detect any sufficiently long fork and alert the user just like any other alert
2013-08-12Use HandleError() consistently to handle leveldb errorsGavin Andresen
2013-08-06remove a newline from a string in init.cppPhilip Kaufmann
- to match all other translatable strings in init.cpp and to simplify translations via Transifex
2013-07-31Move internal miner/block creation to separate miner.cpp module.Jeff Garzik
Public functions referenced elsewhere are added to miner.h.
2013-07-24Merge pull request #1889 from tcatm/multi-walletGavin Andresen
let user select wallet file with -wallet=foo.dat
2013-07-22Merge pull request #2795 from fanquake/log_aborted_rebuildsJeff Garzik
Log aborted block database rebuilds
2013-07-22Call the -alertnotify script when we see a long or invalid fork.Matt Corallo
2013-07-21Bugfix: Include block creation and SSL options headings in usageLuke Dashjr
2013-07-04let user select wallet file with -wallet=foo.datNils Schneider
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
2013-06-25Log aborted block database rebuildsMichael Ford
2013-06-24Calling UnregisterAllWallets() instead of UnregisterWallet(pwalletMain) in ↵Eric Lombrozo
init.cpp
2013-06-23Moved CBlock::ReadFromDisk out of CBlock to functions ReadBlockFromDisk in ↵Eric Lombrozo
main.h
2013-06-23Merge pull request #2783 from sipa/newtxindexPieter Wuille
Initialize database before checking changed txindex
2013-06-23init.cpp: fix chainparams.h double include.Jeff Garzik
Noticed by Diapolo.
2013-06-22Merge pull request #2778 from jgarzik/rpc-verifydbJeff Garzik
RPC: add 'verifychain' to verify chain database at runtime
2013-06-22Initialize database before checking changed txindexPieter Wuille
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.
2013-06-19Pass check level, check depth to VerifyDB()Jeff Garzik
2013-06-19Introduce a CChainParameters singleton class and regtest mode.Mike Hearn
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.
2013-06-10allow txindex to be removed and add a reindex dialogPhilip Kaufmann
- 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
2013-06-05Using boost::signals2 to message main from net.cpp.Eric Lombrozo
2013-06-05Removed AcceptToMemoryPool method from CTransaction. This method belongs to ↵Eric Lombrozo
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.
2013-06-05Removed net.cpp's dependency on init.h.Eric Lombrozo
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.
2013-06-05Moved unrelated-to-network calls in StartNode and StopNode into init.cppEric Lombrozo
2013-06-05Get rid of db dependencies on mainEric Lombrozo
2013-06-04build: use runtime setting for displaying the help message rather than ↵Cory Fields
QT_GUI define
2013-06-04build: cosmetic: split usage string for easier formattingCory Fields
2013-06-04build: split the non-gui startup routines into a new fileCory Fields
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.
2013-06-04build: prepare to move DetectShutdownThreadCory Fields
2013-06-01remove GetBoolArg() fDefault parameter defaulting to falsePhilip Kaufmann
- 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
2013-05-30Merge pull request #2716 from laanwj/2013_05_30_getworkJeff Garzik
Move pMiningKey init out of StartRPCThreads
2013-05-30Merge pull request #2642 from sipa/rightgenesisJeff Garzik
Check for correct genesis
2013-05-30Merge pull request #2693 from jgarzik/checkpoint-boolJeff Garzik
Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variable set once at init time
2013-05-30Move pMiningKey init out of StartRPCThreadsWladimir J. van der Laan
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.
2013-05-29Merge pull request #2695 from robbak/init_cpp-explicit_castPieter Wuille
Explictly cast calculation to int, to allow std::min to work.
2013-05-24Fix crash-at-shutdown if exiting before initializing walletGavin Andresen
2013-05-24Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variableJeff Garzik
set once at init time.
2013-05-24Explictly cast calculation to int, to allow std::max to work.Robert Backhaus
2013-05-22More bestblock records in walletsPieter Wuille
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.
2013-05-12Check for correct genesisPieter Wuille
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.).
2013-05-04Merge pull request #2577 from gavinandresen/fee_bandaidGavin Andresen
Treat dust outputs as non-standard, un-hardcode TX_FEE constants
2013-05-04Merge pull request #2606 from gavinandresen/threadfixPieter Wuille
Exit cleanly if AppInit2 returns false
2013-05-03Merge pull request #2558 from sipa/nodbdirPieter Wuille
Some database/-related recovery improvements
2013-05-03Merge pull request #2566 from sipa/nodefGavin Andresen
Allow the default key to be unavailable
2013-05-03Merge pull request #2603 from sipa/nobestblockPieter Wuille
Bugfix: if no bestblock record is present, do a -rescan
2013-05-03small init.cpp changes (strings / Winsock init)Philip Kaufmann
- add a check that requested Winsock version is available - update some strings - remove -gen=0 from help-message as this is default
2013-05-03Un-hardcode TX_FEE constantsGavin Andresen
Allow setting of MIN_TX_FEE / MIN_RELAY_TX_FEE with -mintxfee / -mintxrelayfee Default values are the same (0.0001 BTC).