aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #1369 from sipa/bootorderPieter Wuille2012-05-221-194/+204
|\ \ | | | | | | Reorder AppInit2
| * | Reorder AppInit2Pieter Wuille2012-05-211-194/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reorders AppInit2 into 10 sections: 1) basic setup (OS stuff, signal handlers) 2) parameter interactions (softset) 3) interpreting options without side effects (just setting internal variables) 4) application initialization (datadir lock, daemonize, pidfile, log file) 5) network initialization (network params, proxy, binding) 6) load blockchain 7) load wallet 8) import blocks (-loadblock=) 9) load peers 10) start node/rpc threads 11) finished This means invalid configurations will be detected as soon as possible (in particular, before loading the block chain).
* | | Merge pull request #917 from mndrix/reopen-log-filePieter Wuille2012-05-211-1/+11
|\ \ \ | |/ / |/| | Reopen log file on SIGHUP
| * | Reopen debug.log on SIGHUPMichael Hendricks2012-05-181-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The best log rotation method formerly available was to configure logrotate with the copytruncate option. As described in the logrotate documentation, "there is a very small time slice between copying the file and truncating it, so some logging data might be lost". By sending SIGHUP to the server process, one can now reopen the debug log file without losing any data.
* | | Merge pull request #1354 from fanquake/masterPieter Wuille2012-05-201-1/+1
|\ \ \ | | | | | | | | Update Header Licenses
| * | | Update License in File HeadersFordy2012-05-181-1/+1
| |/ / | | | | | | | | | | | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
* | | Merge pull request #1363 from Diapolo/remove_strncasecmpPieter Wuille2012-05-201-1/+2
|\ \ \ | | | | | | | | remove strncasecmp() + strnicmp() calls use boost::algorithm::istarts_with()
| * | | remove strncasecmp() + strnicmp() calls and replace that code via ↵Philip Kaufmann2012-05-201-1/+2
| | |/ | |/| | | | | | | boost::algorithm::istarts_with() / do not call ipcInit() on Mac and Windows as this is unneeded currently
* | | Make testcases build, prevent windows symbol collisionWladimir J. van der Laan2012-05-201-37/+18
| | |
* | | Convert UI interface to boost::signals2.Wladimir J. van der Laan2012-05-201-7/+32
| | | | | | | | | | | | | | | | | | | | | | | | - Signals now go directly from the core to WalletModel/ClientModel. - WalletModel subscribes to signals on CWallet: Prepares for multi-wallet support, by no longer assuming an implicit global wallet. - Gets rid of noui.cpp, the few lines that were left are merged into init.cpp - Rename wxXXX message flags to MF_XXX, to make them UI indifferent. - ThreadSafeMessageBox no longer returns the value `4` which was never used, converted to void.
* | | Merge pull request #1323 from Diapolo/string_fixesWladimir J. van der Laan2012-05-201-1/+1
|\ \ \ | |/ / |/| | translation updates / string updates
| * | allow translation of "options" used in the --help message / split ↵Philip Kaufmann2012-05-171-1/+1
| | | | | | | | | | | | translation of RPC console welcome message and remove the need to take care of "<br>" / remove some spaces in strings and misc other stuff related to translations
* | | change strings to Bitcoin (uppercase), where it is used as a noun and update ↵Philip Kaufmann2012-05-181-4/+3
| |/ |/| | | | | strings to use "Qt" (and not qt or QT) / update initialisation of notificator to use qApp->applicationName() instead of a static string
* | Revert "use _strnicmp (ISO C++) instead of deprecated strnicmp (POSIX) and ↵Jeff Garzik2012-05-171-1/+1
| | | | | | | | | | | | | | | | add missing "#define strncasecmp _strnicmp" in init.cpp" This reverts commit f4ac41806af5766199a7d526a7becbcb8a0f5ab3. Reason: breaks build.
* | use _strnicmp (ISO C++) instead of deprecated strnicmp (POSIX) and add ↵Philip Kaufmann2012-05-171-1/+1
| | | | | | | | missing "#define strncasecmp _strnicmp" in init.cpp
* | Merge pull request #1334 from rebroad/Exiting2ExitedJeff Garzik2012-05-171-1/+1
|\ \ | | | | | | Corrected grammar. As per Principle Of Least Surprise.
| * | Corrected grammar. As per Principle Of Least Surprise.R E Broadley2012-05-171-1/+1
| |/
* / CAddrDB: Replace BDB-managed addr.dat with internally managed peers.datJeff Garzik2012-05-161-3/+9
|/
* Do not listen on blocked networksPieter Wuille2012-05-141-2/+4
|
* Allow binding to the any address, and report failurePieter Wuille2012-05-141-3/+3
|
* -onlynet instead of -blocknetPieter Wuille2012-05-141-5/+11
|
* Move help message out of AppInit2Wladimir J. van der Laan2012-05-131-129/+126
| | | | | | | - Solves #1278, attempts to address #1049 - Removes \t's from help message that are removed afterwards anyway - Moves UI-specific command-line options help to UI code - Moves "-detachdb" out of #ifdef USE_UPNP
* Merge pull request #1285 from sipa/initerrorPieter Wuille2012-05-131-34/+37
|\ | | | | Improve error reporting at startup
| * Improve error reporting at startupPieter Wuille2012-05-131-34/+37
| |
* | Move GetStartOnSystemStartup and SetStartOnSystemStartup to GUI codeWladimir J. van der Laan2012-05-131-5/+0
|/
* Merge pull request #1277 from Diapolo/IPv6_IPv4_stringsJeff Garzik2012-05-121-2/+2
|\ | | | | use "IPv6" and "IPv4" in strings as these are the official spellings
| * use "IPv6" and "IPv4" in strings as these are the official spellings and ↵Philip Kaufmann2012-05-131-2/+2
| | | | | | | | make ParseNetwork() in netbase.cpp case-insensitive
* | Take -port into account when resolving -bind'sPieter Wuille2012-05-131-4/+4
|/
* Fix initialization of inaddr_anyPieter Wuille2012-05-121-1/+2
|
* Separate listening sockets, -bind=<addr>Pieter Wuille2012-05-111-5/+31
|
* Add -blocknet to prevent connections to a given networkPieter Wuille2012-05-111-0/+12
|
* Add -noproxy to circumvent proxy for some networkPieter Wuille2012-05-111-0/+13
|
* Merge branch 'tmp-ipv6' into merge-ipv6Jeff Garzik2012-05-081-13/+23
|\
| * Added -externalip and -discoverPieter Wuille2012-05-041-0/+12
| | | | | | | | | | | | -externalip=<ip> can be used to explicitly set the public IP address of your node. -discover=0 can be used to disable the automatic public IP discovery system.
| * Add -seednode connections, and use this for -dnsseed + -proxydnsPieter Wuille2012-05-041-1/+5
| |
| * Support connecting by hostnames passed to proxy (-proxydns)Pieter Wuille2012-05-041-14/+7
| |
| * SOCKS5 support by defaultPieter Wuille2012-05-041-1/+2
| | | | | | | | | | Add -socks=<n> to select SOCKS version to use. 4 and 5 are supported, 5 is default.
* | Merge pull request #883 from sipa/loadblockGregory Maxwell2012-05-081-1/+12
|\ \ | |/ |/| Add -loadblock to load from an external blk000?.dat file
| * -loadblock to load from an external blk000?.dat filePieter Wuille2012-04-221-1/+12
| |
* | remove references to bitcoin-wx from comment in init.cppPhilip Kaufmann2012-05-011-2/+2
| |
* | Make lsn_reset ("detach databases") optional and off by default.Pieter Wuille2012-04-261-0/+2
| | | | | | | | | | | | | | | | | | | | Add an option -detachdb (and entry in OptionDialog), without which no lsn_reset is called on addr.dat and blkindex.dat. That means these files cannot be moved to a new environment, but shutdown can be significantly faster. The wallet file is always lsn_reset'ed. -detachdb corresponds to the old behaviour, though it is off by default now to speed up shutdowns.
* | Make GetDataDir return absolute pathsPieter Wuille2012-04-221-1/+2
|/
* Added ability to respond to signals during Block Loading stage.R E Broadley2012-04-181-0/+9
|
* Further reduce header dependenciesPieter Wuille2012-04-171-1/+0
| | | | | | | This commit removes the dependency of serialize.h on PROTOCOL_VERSION, and makes this parameter required instead of implicit. This is much saner, as it makes the places where changing a version number can have an influence obvious.
* Move CWalletDB code to new walletdb module.Jeff Garzik2012-04-171-0/+1
| | | | | In addition to standard code separation, this change opens the door to fixing several include inter-dependencies.
* Remove headers.hPieter Wuille2012-04-171-145/+4
|
* Use filesystem::path instead of manual string tinkeringPieter Wuille2012-04-111-21/+15
| | | | | | | | | | | | | | Where possible, use boost::filesystem::path instead of std::string or char* for filenames. This avoids a lot of manual string tinkering, in favor of path::operator/. GetDataDir is also reworked significantly, it now only keeps two cached directory names (the network-specific data dir, and the root data dir), which are decided through a parameter instead of pre-initialized global variables. Finally, remove the "upgrade from 0.1.5" case where a debug.log in the current directory has to be removed.
* Merge pull request #1054 from sipa/buildinfoPieter Wuille2012-04-101-1/+1
|\ | | | | Build identification strings
| * Build identification stringsPieter Wuille2012-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All client version information is moved to version.cpp, which optionally (-DHAVE_BUILD_INFO) includes build.h. build.h is automatically generated on supporting platforms via contrib/genbuild.sh, using git describe. The git export-subst attribute is used to put the commit id statically in version.cpp inside generated archives, and this value is used if no build.h is present. The gitian descriptors are modified to use git archive instead of a copy, to create the src/ directory in the output. This way, src/src/version.cpp will contain the static commit id. To prevent gitian builds from getting the "-dirty" marker in their git-describe generated identifiers, no touching of files or running sed on the makefile is performed anymore. This does not seem to influence determinism.
* | Use scoped locks instead of CRITICAL_BLOCKPieter Wuille2012-04-091-3/+6
|/