aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | | 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.
* translations update 2013-04-08Philip Kaufmann2013-04-081-2/+2
| | | | | | - 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>"
* small indentation, space, formatting fixes (no code changes)Philip Kaufmann2013-04-061-6/+5
|
* Have Qt poll for shutdown requested, the QT way.Gavin Andresen2013-04-031-2/+6
|
* Clean up shutdown processGavin Andresen2013-04-031-100/+93
|
* Port Thread* methods to boost::thread_groupGavin Andresen2013-04-031-50/+23
|
* Rename util.h Sleep --> MilliSleepGavin Andresen2013-04-031-5/+5
| | | | | | | | 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.
* Shutdown cleanup prep-workGavin Andresen2013-04-031-2/+19
| | | | | | | | | | 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.
* Merge pull request #2431 from jgarzik/gen-bitcoins-initGavin Andresen2013-04-021-0/+3
|\ | | | | Move GenerateBitcoins() call out of net.cpp's StartNode()
| * Move GenerateBitcoins() call out of net.cpp's StartNode()Jeff Garzik2013-03-311-0/+3
| | | | | | | | | | The internal miner is closely bound to the wallet engine, not the blockchain engine.
* | Merge pull request #2387 from Diapolo/translationsWladimir J. van der Laan2013-04-011-1/+1
|\ \ | |/ |/| translations update 2013-03-19 (bitcoinstrings.cpp / bitcoin_en.ts)
| * blockchain -> block chain (used everywhere else)Philip Kaufmann2013-03-211-1/+1
| |
* | Merge pull request #2411 from TheBlueMatt/masterJeff Garzik2013-03-291-4/+0
|\ \ | | | | | | (finally) Remove IRC Seed support now that lfnet is down.
| * | (finally) Remove IRC Seed support now that lfnet is down.Matt Corallo2013-03-241-4/+0
| |/
* | Merge pull request #2385 from gavinandresen/alertnotifyJeff Garzik2013-03-291-0/+1
|\ \ | |/ |/| alertnotify, so bitcoind users can get email/sms/whatever of alerts
| * -alertnotify=<cmd>Gavin Andresen2013-03-191-0/+1
| | | | | | | | | | | | Runs a shell command when an AppliesToMe() alert is received. %s in the <cmd> string is replaced with the alert.strStatusBar message.
* | Deleting everything except the wallet will not help recover from BDB errors.Gregory Maxwell2013-03-191-3/+1
| | | | | | | | | | 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.
* | harmonize 2 init messages and remove onePhilip Kaufmann2013-03-131-3/+2
|/ | | | | - harmonize the database related init messages - as we have a thread for importing blocks, that init message is obsolete
* Merge pull request #2186 from Diapolo/misc_stuffWladimir J. van der Laan2013-02-231-1/+1
|\ | | | | small changes in init, main, checkpoints.h and bitcoin-qt.pro
| * small changes in init, main, checkpoints.h and bitcoin-qt.proPhilip Kaufmann2013-02-201-1/+1
| | | | | | | | | | | | | | | | | | - 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
* | Merge pull request #1974 from kjj2/walletnotifyGavin Andresen2013-02-221-0/+1
|\ \ | | | | | | Add -walletnotify to call an external script on wallet transactions
| * | Add -walletnotify to call an external script on wallet transactionskjj22012-11-031-0/+1
| | |
* | | Shorten a startup message. It was getting truncated and looks ugly.Mike Hearn2013-02-201-1/+1
| |/ |/|
* | Improve block database load error reportingPieter Wuille2013-02-171-18/+61
| |
* | Make sure the genesis block is present after reindexPieter Wuille2013-02-011-0/+6
| |
* | Deal with LevelDB errorsPieter Wuille2013-01-301-2/+2
| |
* | CValidationState frameworkPieter Wuille2013-01-301-1/+2
| |
* | Check only 288 blocks at startup by defaultPieter Wuille2013-01-261-1/+1
| |
* | Merge pull request #2168 from sipa/txindexGavin Andresen2013-01-251-1/+5
|\ \ | | | | | | Add optional transaction index to databases
| * | Add optional transaction index to databasesPieter Wuille2013-01-181-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2171 from Diapolo/initWladimir J. van der Laan2013-01-191-4/+3
|\ \ \ | |/ / |/| | add InitMessage() to noui and use debug.log for GUI
| * | add InitMessage() to noui and use debug.log for GUIPhilip Kaufmann2013-01-111-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | - this pull adds an InitMessage() function to noui.cpp, which outputs init messages to debug.log (this allows to remove some printf() calls from init.cpp) - change InitMessage() in bitcoin.cpp to also write init messages to debug.log to ensure nothting is missing in the log because of the removal of printf() calls in init.cpp
* | | Merge pull request #2060 from sipa/parallelGavin Andresen2013-01-171-0/+20
|\ \ \ | | | | | | | | Parallel script verification
| * | | Parallelize script verificationPieter Wuille2013-01-081-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * During block verification (when parallelism is requested), script check actions are stored instead of being executed immediately. * After every processed transactions, its signature actions are pushed to a CScriptCheckQueue, which maintains a queue and some synchronization mechanism. * Two or more threads (if enabled) start processing elements from this queue, * When the block connection code is finished processing transactions, it joins the worker pool until the queue is empty. As cs_main is held the entire time, and all verification must be finished before the block continues processing, this does not reach the best possible performance. It is a less drastic change than some more advanced mechanisms (like doing verification out-of-band entirely, and rolling back blocks when a failure is detected). The -par=N flag controls the number of threads (1-16). 0 means auto, and is the default.
* | | | Merge pull request #2172 from Diapolo/init_messagesGavin Andresen2013-01-141-4/+6
|\ \ \ \ | | | | | | | | | | make database init messages more valuable
| * | | | make database init messages more valuablePhilip Kaufmann2013-01-131-4/+6
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | - 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..."
* | | | Merge pull request #2099 from gavinandresen/blkfile_upgradeGavin Andresen2013-01-141-0/+27
|\ \ \ \ | |/ / / |/| | | Upgrading to 0.8: re-use blkNNNN.dat files.
| * | | Upgrading to 0.8: re-use blkNNNN.dat files.Gavin Andresen2012-12-161-0/+27
| | | |
* | | | New database check routinePieter Wuille2013-01-041-2/+5
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -checklevel gets a new meaning: 0: verify blocks can be read from disk (like before) 1: verify (contextless) block validity (like before) 2: verify undo files can be read and have good checksums 3: verify coin database is consistent with the last few blocks (close to level 6 before) 4: verify all validity rules of the last few blocks Level 3 is the new default, as it's reasonably fast. As level 3 and 4 are implemented using an in-memory rollback of the database, they are limited to as many blocks as possible without exceeding the limits set by -dbcache. The default of -dbcache=25 allows for some 150-200 blocks to be rolled back. In case an error is found, the application quits with a message instructing the user to restart with -reindex. Better instructions, and automatic recovery (when possible) or automatic reindexing are left as future work.
* | | Remove 'T' from remaining date/time format strings.Jeff Garzik2013-01-011-1/+1
| | |
* | | update 2 command-line parameter help messagesPhilip Kaufmann2012-12-281-2/+2
|/ / | | | | | | | | | | - -checkpoints is now much more understandable and should be way easier to translate - -loadblock uses the same format (blk000??.dat) as -reindex
* | Merge pull request #2096 from 94m3k1n9/fix-time-formatsPieter Wuille2012-12-131-1/+1
|\ \ | | | | | | Change timestamps to use ISO8601 formatting
| * | Change timestamps to use ISO8601 formattingRichard Schwab2012-12-121-1/+1
| | |
* | | Merge pull request #2048 from jgarzik/no-checkpointsGavin Andresen2012-12-121-0/+1
|\ \ \ | | | | | | | | Add "checkpoints" option, to permit disabling of checkpoint logic.
| * | | Add "checkpoints" option, to permit disabling of checkpoint logic.Jeff Garzik2012-11-281-0/+1
| | | |
* | | | Merge pull request #2059 from sipa/benchmarkGavin Andresen2012-12-121-0/+1
|\ \ \ \ | | | | | | | | | | Add -benchmark for reporting block processing times
| * | | | Add -benchmark for reporting block processing timesPieter Wuille2012-12-051-0/+1
| | |/ / | |/| |
* | | | Merge pull request #2062 from sipa/nocoinsGavin Andresen2012-12-121-1/+1
|\ \ \ \ | | | | | | | | | | Reconstruct coins/ database when missing