aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* 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
| |