aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix bad merge, pszDataDir duplicationGavin Andresen2012-10-091-1/+0
| |
* | Merge branch 'wallet_exceptions' of github.com:gavinandresen/bitcoin-gitGavin Andresen2012-10-091-9/+56
|\ \
| * | Don't try to verify a non-existent wallet.datGavin Andresen2012-10-081-10/+13
| | |
| * | Handle corrupt wallets gracefully.Gavin Andresen2012-10-081-18/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrupt wallets used to cause a DB_RUNRECOVERY uncaught exception and a crash. This commit does three things: 1) Runs a BDB verify early in the startup process, and if there is a low-level problem with the database: + Moves the bad wallet.dat to wallet.timestamp.bak + Runs a 'salvage' operation to get key/value pairs, and writes them to a new wallet.dat + Continues with startup. 2) Much more tolerant of serialization errors. All errors in deserialization are reported by tolerated EXCEPT for errors related to reading keypairs or master key records-- those are reported and then shut down, so the user can get help (or recover from a backup). 3) Adds a new -salvagewallet option, which: + Moves the wallet.dat to wallet.timestamp.bak + extracts ONLY keypairs and master keys into a new wallet.dat + soft-sets -rescan, to recreate transaction history This was tested by randomly corrupting testnet wallets using a little python script I wrote (https://gist.github.com/3812689)
| * | Handle incompatible BDB environmentsGavin Andresen2012-10-081-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, opening a -datadir that was created with a new version of Berkeley DB would result in an un-caught DB_RUNRECOVERY exception. After these changes, the error is caught and the user is told that there is a problem and is told how to try to recover from it.
* | | Revert "Send 'mempool' P2P command at the start of each P2P session"Jeff Garzik2012-10-081-4/+1
| | | | | | | | | | | | | | | | | | Fat-fingered on github, and merged this too early. This reverts commit 22f9b069035c9ba0416a62714db167eea5ba762f.
* | | Merge pull request #1833 from jgarzik/mempool-queryJeff Garzik2012-10-081-1/+4
|\ \ \ | | | | | | | | Send 'mempool' P2P command at the start of each P2P session
| * | | Send 'mempool' P2P command at the start of each P2P sessionJeff Garzik2012-09-241-1/+4
| | |/ | |/| | | | | | | to query remote node mempool contents.
* | | Merge branch 'BDB_DOWNGRADE'Gavin Andresen2012-10-081-3/+12
|\ \ \ | |_|/ |/| |
| * | Handle incompatible BDB environmentsGavin Andresen2012-10-081-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, opening a -datadir that was created with a new version of Berkeley DB would result in an un-caught DB_RUNRECOVERY exception. After these changes, the error is caught and the user is told that there is a problem and is told how to try to recover from it.
* | | Send --help message to stdout i.s.o stderrWladimir J. van der Laan2012-10-041-1/+1
|/ / | | | | | | | | | | | | | | This allows fun stuff such as `bitcoin --help | less`, and more easy piping to files. Looking at other tools such as bash, gcc, they all send their help text to stdout.
* | fix -Wformat warnings all over the sourcePhilip Kaufmann2012-10-011-4/+4
| |
* | Merge pull request #1862 from kjj2/testportsPieter Wuille2012-09-281-1/+1
|\ \ | | | | | | Fix: when testnet=1 specified, change default RPC port to 18332
| * | Fix: when testnet=1 specified, change default ports to 18332 and 18333kjj22012-09-241-1/+1
| |/
* / Import $DataDir/bootstrap.dat automatically, if it exists.Jeff Garzik2012-09-241-1/+14
|/ | | | | As discussed on IRC. Intended to make using an external blockchain download solution just a bit easier.
* Fix double-paren typoGavin Andresen2012-09-061-1/+1
|
* remove double logging of startup time, when !fLogTimestampsPhilip Kaufmann2012-09-051-1/+0
|
* init.cpp: fix build error, and possibly-uninit'd warningJeff Garzik2012-09-041-2/+2
|
* Merge pull request #1427 from rebroad/StartTimeFixJeff Garzik2012-09-041-0/+2
|\ | | | | No need to log start time if it's already being done on every line.
| * No need to log start time if it's already being done on every line.R E Broadley2012-09-011-0/+2
| |
* | Merge pull request #1738 from laanwj/2012_08_boostthreadJeff Garzik2012-09-041-4/+4
|\ \ | | | | | | implement CreateThread with boost::thread
| * | Rename CreateThread to NewThreadWladimir J. van der Laan2012-08-291-4/+4
| |/ | | | | | | Prevent clash with win32 API symbol
* / add default value in -timeout descriptionPhilip Kaufmann2012-08-301-1/+1
|/
* Allow building with IPv6 support, but it disabled by defaultLuke Dashjr2012-08-231-0/+6
|
* Fix infinite loops in connection logicPieter Wuille2012-08-221-1/+1
|
* add splashscreen message when importing blocks via -loadblockPhilip Kaufmann2012-08-171-0/+1
|
* Bitcoin-Qt (Windows only): enable DEP for bitcoin-qt.exePhilip Kaufmann2012-08-031-2/+14
| | | | | | | | - this enables DEP on all Windows version which support the SetProcessDEPPolicy() call in Kernel32.dll - use a dynamic approach via GetProcAddress() to not rely on headers or compiler libs - this is the same way the Tor-project does it
* Merge pull request #1632 from luke-jr/spellingJeff Garzik2012-08-011-3/+3
|\ | | | | Fix spelling and grammar errors
| * Bugfix: Correct English grammar regarding "'s"Luke Dashjr2012-08-011-1/+1
| |
| * Bugfix: Fix a variety of misspellingsLuke Dashjr2012-08-011-3/+3
| |
* | Update Warning-strings to use a standard-formatPhilip Kaufmann2012-08-011-1/+1
| | | | | | | | | | | | | | | | | | - ensure warnings always start with "Warning:" and that the first character after ":" is written uppercase - ensure the first sentence in warnings ends with an "!" - remove unneeded spaces from Warning-strings - add missing Warning-string translation - remove a "\n" and replace with untranslatable "<br><br>"
* | Merge pull request #1465 from Diapolo/NOUI_showSSLVersionJeff Garzik2012-08-011-0/+2
|\ \ | | | | | | write used OpenSSL library version to debug.log
| * | write used OpenSSL library version to debug.logPhilip Kaufmann2012-07-041-0/+2
| | |
* | | Merge pull request #1396 from rebroad/NoShrinkOptionJeff Garzik2012-08-011-1/+2
|\ \ \ | |_|/ |/| | Make truncating the debug.log file an option.
| * | Make truncating the debug.log file an option.R E Broadley2012-06-271-1/+2
| | | | | | | | | | | | | | | Useful for developers who need to refer to futher back in debug.log history, but who don't want to enable the -debug option and all the verbosity that comes with that.
* | | update HelpMessage()Philip Kaufmann2012-07-271-7/+6
| | | | | | | | | | | | | | | | | | | | | - place "-?" option at first - re-work description and "\n" usage for Gavins new block creation options to better match current description syntax - ensure no "\n" is in translated strings, which is better for Transifex
* | | When creating new blocks, sort 'paid' area by fee-per-kbGavin Andresen2012-07-261-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify CreateNewBlock so that instead of processing all transactions in priority order, process the first 27K of transactions in priority order and then process the rest in fee-per-kilobyte order. This is the first, minimal step towards better a better fee-handling system for both miners and end-users; this patch should be easy to backport to the old versions of Bitcoin, and accomplishes the most important goal-- allow users to "buy their way in" to blocks using transaction fees.
* | | Give threads a recognisable name to aid in debuggingGiel van Schijndel2012-07-171-0/+4
| |/ |/| | | | | | | | | | | | | NOTE: These thread names are visible in gdb when using 'info threads'. Additionally both 'top' and 'ps' show these names *unless* told to display the command-line instead of task name. Signed-off-by: Giel van Schijndel <[email protected]>
* | Change default send buffer to 1Mb.Matt Corallo2012-07-011-1/+1
| |
* | Revert "*Always* send a shutdown signal to enable custom shutdown actions"Matt Corallo2012-06-281-6/+5
|/ | | | This reverts commit 896899e0d66e25f6549a92749d237c8a87b12f08.
* Merge pull request #973 from TheBlueMatt/diffsendbufferPieter Wuille2012-06-271-2/+2
|\ | | | | Stop processing messages on full send buffer and dont disconnect.
| * Stop processing messages on full send buffer and dont disconnect.Matt Corallo2012-06-271-2/+2
| | | | | | | | | | | | Also decrease default send/receive buffer sizes from 10 to 5 mb as this patch makes it easy for a node to fill both instead of only send.
* | Merge pull request #457 from muggenhor/async-ipv6-rpcPieter Wuille2012-06-271-5/+6
|\ \ | |/ |/| IPv6 RPC using asynchronously accepted connections
| * Merge branch 'master' into async-ipv6-rpcGiel van Schijndel2012-06-241-4/+28
| |\
| * | *Always* send a shutdown signal to enable custom shutdown actionsGiel van Schijndel2012-06-171-5/+6
| | | | | | | | | | | | | | | | | | | | | NOTE: This is required to be sure that we can properly shut down the RPC thread. Signed-off-by: Giel van Schijndel <[email protected]>
* | | fix a comment to correctly use -upgradewalletPhilip Kaufmann2012-06-241-1/+1
| | |
* | | Document -debugnet option in command line help.Jeff Garzik2012-06-241-1/+2
| |/ |/| | | | | Fixes #1507
* | Merge pull request #1174 from sipa/torhsGregory Maxwell2012-06-231-3/+20
|\ \ | | | | | | Tor hidden service support
| * | Add -tor and related configurationPieter Wuille2012-06-231-3/+20
| | |
* | | Merge pull request #1458 from jgarzik/tracenetJeff Garzik2012-06-221-0/+7
|\ \ \ | |/ / |/| | Introduce -tracenet option, thereby quieting some redundant debug messages