aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
AgeCommit message (Collapse)Author
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).
2013-05-02Exit cleanly if AppInit2 returns falseGavin Andresen
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
2013-05-01Bugfix: if no bestblock record is present, do a -rescanPieter Wuille
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.
2013-04-29Merge pull request #2568 from sipa/rlimitGavin Andresen
Try to increase file descriptor rlimit if necessary
2013-04-29Accept negative -par values to leave N CPUs free.David Serrano
2013-04-29Try to increase file descriptor rlimit if necessaryPieter Wuille
As the default can be too low, especially on OSX.
2013-04-28move WSAStartup to initWladimir J. van der Laan
WSAStartup should be called before using any other socket functions. BindListenPort is not called if not listening. Closes #2585.
2013-04-25Allow the default key to be unavailablePieter Wuille
This solves the issue where no default key can be added after -salvagewallet.
2013-04-24Try moving database/ away in case of failurePieter Wuille
2013-04-24remove duplicate bitdb.Open() code from initPhilip Kaufmann
- remove code from step 7, which we already have in step 5 of init
2013-04-11qt: don't show rpcconnect command line option in helpWladimir J. van der Laan
GUI can't connect to RPC. Showing this option in the help confuses people, so remove it.
2013-04-08translations update 2013-04-08Philip Kaufmann
- updates for bitcoinstrings.cpp and bitcoin_en.ts - changes help text for -rpcthreads to match -par - fix a small glitch with -par to be "-par=<n>"
2013-04-06small indentation, space, formatting fixes (no code changes)Philip Kaufmann
2013-04-03Have Qt poll for shutdown requested, the QT way.Gavin Andresen
2013-04-03Clean up shutdown processGavin Andresen
2013-04-03Port Thread* methods to boost::thread_groupGavin Andresen
2013-04-03Rename util.h Sleep --> MilliSleepGavin Andresen
Two reasons for this change: 1. Need to always use boost::thread's sleep, even on Windows, so the sleeps can be interrupted (prior code used Windows' built-in Sleep). 2. I always forgot what units the old Sleep took.
2013-04-03Shutdown cleanup prep-workGavin Andresen
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.
2013-04-02Merge pull request #2431 from jgarzik/gen-bitcoins-initGavin Andresen
Move GenerateBitcoins() call out of net.cpp's StartNode()
2013-04-01Merge pull request #2387 from Diapolo/translationsWladimir J. van der Laan
translations update 2013-03-19 (bitcoinstrings.cpp / bitcoin_en.ts)
2013-03-31Move GenerateBitcoins() call out of net.cpp's StartNode()Jeff Garzik
The internal miner is closely bound to the wallet engine, not the blockchain engine.
2013-03-29Merge pull request #2411 from TheBlueMatt/masterJeff Garzik
(finally) Remove IRC Seed support now that lfnet is down.
2013-03-29Merge pull request #2385 from gavinandresen/alertnotifyJeff Garzik
alertnotify, so bitcoind users can get email/sms/whatever of alerts
2013-03-24(finally) Remove IRC Seed support now that lfnet is down.Matt Corallo
2013-03-21blockchain -> block chain (used everywhere else)Philip Kaufmann
2013-03-19-alertnotify=<cmd>Gavin Andresen
Runs a shell command when an AppliesToMe() alert is received. %s in the <cmd> string is replaced with the alert.strStatusBar message.
2013-03-19Deleting everything except the wallet will not help recover from BDB errors.Gregory Maxwell
Now that the wallet is the only thing in BDB any DB open errors must be from the wallet itself-- so deleting everything else will not likely help.
2013-03-13harmonize 2 init messages and remove onePhilip Kaufmann
- harmonize the database related init messages - as we have a thread for importing blocks, that init message is obsolete
2013-02-23Merge pull request #2186 from Diapolo/misc_stuffWladimir J. van der Laan
small changes in init, main, checkpoints.h and bitcoin-qt.pro
2013-02-22Merge pull request #1974 from kjj2/walletnotifyGavin Andresen
Add -walletnotify to call an external script on wallet transactions
2013-02-20Shorten a startup message. It was getting truncated and looks ugly.Mike Hearn
2013-02-20small changes in init, main, checkpoints.h and bitcoin-qt.proPhilip Kaufmann
- remove an unneeded MODAL flag, as MSG_ERROR sets MODAL - re-order an if-clause in main to have bool checks before a function call - fix some log messages that used wrong function names - make a log message use a correct ellipsis - remove some unneded spaces, brackets and line-breaks - fix style for adding files in the Qt project
2013-02-17Improve block database load error reportingPieter Wuille
2013-02-01Make sure the genesis block is present after reindexPieter Wuille
2013-01-30Deal with LevelDB errorsPieter Wuille
2013-01-30CValidationState frameworkPieter Wuille
2013-01-26Check only 288 blocks at startup by defaultPieter Wuille
2013-01-25Merge pull request #2168 from sipa/txindexGavin Andresen
Add optional transaction index to databases
2013-01-19Merge pull request #2171 from Diapolo/initWladimir J. van der Laan
add InitMessage() to noui and use debug.log for GUI
2013-01-18Add optional transaction index to databasesPieter Wuille
By specifying -txindex when initializing the database, a txid-to-diskpos index is maintained in the blktree database. This database is used to help answering getrawtransaction() RPC queries, when enabled. Changing the -txindex value requires a -reindex; the client will abort at startup if the database and the specified -txindex mismatch.
2013-01-17Merge pull request #2060 from sipa/parallelGavin Andresen
Parallel script verification
2013-01-14Merge pull request #2172 from Diapolo/init_messagesGavin Andresen
make database init messages more valuable
2013-01-14Merge pull request #2099 from gavinandresen/blkfile_upgradeGavin Andresen
Upgrading to 0.8: re-use blkNNNN.dat files.
2013-01-13make database init messages more valuablePhilip Kaufmann
- it was bad, that quite some messages were just talking about a database, I think a user should know, if we are talking about wallet db or block/coin db - also adds a new init message for "Verifying block database integrity..."