aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
Commit message (Collapse)AuthorAgeFilesLines
* really s/Doge/Dis/g this timeTomo Ueda2021-09-021-1/+1
|
* really s/doge/dis/g this timeTomo Ueda2021-09-021-3/+3
|
* Introduce basic Dogecoin brandingRoss Nicoll2019-03-251-4/+4
|
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Un-expose mapArgs from utils.hMatt Corallo2016-12-241-1/+1
|
* Introduce (and use) an IsArgSet accessor methodMatt Corallo2016-12-231-2/+2
|
* Remove arguments to ParseConfigFileMatt Corallo2016-12-231-1/+1
|
* Merge #9010: Split up AppInit2 into multiple phases, daemonize after datadir ↵Pieter Wuille2016-11-301-5/+21
|\ | | | | | | | | | | | | | | lock errors deec83f init: Get rid of fServer flag (Wladimir J. van der Laan) 16ca0bf init: Try to aquire datadir lock before and after daemonization (Wladimir J. van der Laan) 0cc8b6b init: Split up AppInit2 into multiple phases (Wladimir J. van der Laan)
| * init: Split up AppInit2 into multiple phasesWladimir J. van der Laan2016-11-291-5/+21
| | | | | | | | | | This allows doing some of the steps before e.g. daemonization and some fater.
* | Every main()/exit() should return/use one of EXIT_ codes instead of magic ↵UdjinM62016-11-071-2/+2
| | | | | | | | numbers
* | Fix exit codes:UdjinM62016-11-041-1/+1
|/ | | | | | | - `--help`, `--version` etc should exit with `0` i.e. no error ("not enough args" case should still trigger an error) - error reading config file should exit with `1` Slightly refactor AppInitRPC/AppInitRawTx to return standard exit codes (EXIT_FAILURE/EXIT_SUCCESS) or CONTINUE_EXECUTION (-1)
* Globals: Decouple GetConfigFile and ReadConfigFile from global mapArgsJorge Timón2016-10-011-1/+1
|
* bitcoind: Daemonize using daemon(3)Matthew King2016-09-261-15/+8
| | | | | | | | | | | | | | | | Simplified version of #8278. Assumes that every OS that (a) is supported by Bitcoin Core (b) supports daemonization has the `daemon()` function in its C library. - Removes the fallback path for operating systems that support daemonization but not `daemon()`. This prevents never-exercised code from ending up in the repository (see discussion here: https://github.com/bitcoin/bitcoin/pull/8278#issuecomment-242704745). - Removes the windows-specific path. Windows doesn't support `daemon()`, so it don't support daemonization there, automatically. Original code by Matthew King, adapted by Wladimir van der Laan.
* trivial: remove unnecessary variable fDaemonmruddy2016-09-041-4/+1
|
* Merge branch 'master' into single_prodnameLuke Dashjr2016-02-031-3/+5
|\
| * move rpc* to rpc/Daniel Cousens2016-01-211-2/+1
| |
| * Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
| |
| * Initialize logging before we do parameter interactionJonas Schnelli2015-11-271-0/+2
| |
| * Refactor parameter interaction, call it before AppInit2()Jonas Schnelli2015-11-271-0/+1
| |
* | When/if the copyright line does not mention Bitcoin Core developers, add a ↵Luke Dashjr2016-02-031-1/+2
| | | | | | | | second line to copyrights in -version, About dialog, and splash screen
* | Unify package name to as few places as possible without major changesLuke Dashjr2015-12-141-2/+6
|/
* constify missing catch casesPhilip Kaufmann2015-10-271-1/+1
| | | | - ensure all missing catch cases are constant where possible
* Merge pull request #6846Wladimir J. van der Laan2015-10-221-1/+1
|\ | | | | | | 3cb56f3 *: alias -h for --help (Daniel Cousens)
| * *: alias -h for --helpDaniel Cousens2015-10-221-1/+1
| |
* | Merge pull request #6235Wladimir J. van der Laan2015-10-201-2/+4
|\ \ | |/ |/| | | | | 55a8975 Chainparams: Translations: DRY: options and error strings (Jorge Timón) f3525e2 Chainparams: Replace CBaseChainParams::Network enum with string constants (suggested by Wladimir) (Jorge Timón)
| * Chainparams: Translations: DRY: options and error stringsJorge Timón2015-10-201-2/+4
| | | | | | | | Also remove SelectBaseParamsFromCommandLine and SelectParamsFromCommandLine
* | evhttpd implementationWladimir J. van der Laan2015-09-031-2/+7
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - *Replace usage of boost::asio with [libevent2](http://libevent.org/)*. boost::asio is not part of C++11, so unlike other boost there is no forwards-compatibility reason to stick with it. Together with #4738 (convert json_spirit to UniValue), this rids Bitcoin Core of the worst offenders with regard to compile-time slowness. - *Replace spit-and-duct-tape http server with evhttp*. Front-end http handling is handled by libevent, a work queue (with configurable depth and parallelism) is used to handle application requests. - *Wrap HTTP request in C++ class*; this makes the application code mostly HTTP-server-neutral - *Refactor RPC to move all http-specific code to a separate file*. Theoreticaly this can allow building without HTTP server but with another RPC backend, e.g. Qt's debug console (currently not implemented) or future RPC mechanisms people may want to use. - *HTTP dispatch mechanism*; services (e.g., RPC, REST) register which URL paths they want to handle. By using a proven, high-performance asynchronous networking library (also used by Tor) and HTTP server, problems such as #5674, #5655, #344 should be avoided. What works? bitcoind, bitcoin-cli, bitcoin-qt. Unit tests and RPC/REST tests pass. The aim for now is everything but SSL support. Configuration options: - `-rpcthreads`: repurposed as "number of work handler threads". Still defaults to 4. - `-rpcworkqueue`: maximum depth of work queue. When this is reached, new requests will return a 500 Internal Error. - `-rpctimeout`: inactivity time, in seconds, after which to disconnect a client. - `-debug=http`: low-level http activity logging
* Includes: Cleanup around net main and walletJorge Timón2015-07-231-1/+0
| | | | | | -Move from .h to .cpp: in main, net and wallet -Remove unnecessary #include "main.h" -Cleanup some wallet files includes
* TRIVIAL: Missing includesJorge Timón2015-07-231-0/+1
|
* Create a scheduler thread for lightweight tasksGavin Andresen2015-05-141-1/+3
|
* Merge pull request #6022Wladimir J. van der Laan2015-04-301-1/+0
|\ | | | | | | b74dcb3 Separate CTranslationInterface from CClientUIInterface (Jorge Timón)
| * Separate CTranslationInterface from CClientUIInterfaceJorge Timón2015-04-161-1/+0
| |
* | Use https link to bitcoin.org in Doxygen introMichael Ford2015-04-201-1/+1
|/
* Get rid of DetectShutdownThreadWladimir J. van der Laan2015-01-191-13/+3
| | | | | | | | The main thread spends time waiting for the DetectShutdownThread. So why not just run this waiting loop function in the main thread? One thread-stack less saves 4MB of virtual memory on 32-bit, and 8MB on 64-bit.
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Merge pull request #5470Wladimir J. van der Laan2014-12-191-1/+1
|\ | | | | | | 78253fc Remove references to X11 licence (Michael Ford)
| * Remove references to X11 licenceMichael Ford2014-12-161-1/+1
| |
* | make all catch() arguments constPhilip Kaufmann2014-12-171-2/+2
|/ | | | | | | - I saw this on http://en.cppreference.com/w/cpp/language/try_catch and thought it would be a good idea - also unify used format to better be able to search for exception uses in our codebase
* Process help and version arguments before datadir.Pavel Janík2014-11-221-25/+28
|
* Separate protocol versioning from clientversionCory Fields2014-10-291-0/+1
|
* Also create pid file in non-daemon modeWladimir J. van der Laan2014-09-201-1/+0
| | | | | | | | | | Always make a pid file, not only when `-daemon` specified. This is useful for troubleshooting, for attaching debuggers and loggers and such. - Write the pid file only after the datadir lock was acquired - Don't create or remove a pid file on WIN32, and also don't show the option
* Split up util.cpp/hWladimir J. van der Laan2014-08-261-0/+1
| | | | | | | | | | | | | | | | Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.
* Remove cli functionality from bitcoindWladimir J. van der Laan2014-06-151-9/+3
| | | | | | | | | | | | As it says on the tin. It was deprecated in version 0.9, and at some point it should be removed. Removes the dependency of bitcoind on libbitcoin-cli.a. Move some functions that used to be shared but are now only used in bitcoin-cli.cpp to that file. After this change, an error is printed (and exit code 1 is returned) when the user tries to send RPC commands using bitcoind.
* Add 'about' information to `-version` outputWladimir J. van der Laan2014-06-121-1/+5
| | | | | | | Adds a copyright and attribution message to the `-version` output (the same as shown in the About dialog in the GUI). Move the message to a function LicenseInfo in init.cpp.
* Add `-version` option to get just the versionWladimir J. van der Laan2014-06-111-12/+15
| | | | | | | | | Adds a `-version` or `--version` option to print just the version of the program for bitcoind, bitcoin-cli and bitcoin-qt. Also make it that `-help` can be used to display the help (as well as existing `--help`). Up to now, `-help` was the only option that didn't work with either one or two dashes.
* Get rid of TestNet()jtimon2014-06-041-1/+1
|
* Remove fDaemon flag checking on return from main(), which is useless and ↵Huang Le2014-05-201-8/+1
| | | | looks really strange.
* SetupEnvironment() - clean commitStuart Cardall2014-05-131-0/+2
|
* Show error message if ReadConfigFile failsWladimir J. van der Laan2014-04-071-1/+7
| | | | | | | A runaway exception was raised if ReadConfigFile fails (usually due to a parse error in bitcoin.conf). Show an error message instead. Fixes #4013.
* Use the new name Bitcoin Core Daemon instead of Bitcoin serverpaveljanik2014-03-311-2/+2
| | | | | Rebased-By: Wladimir J. van der Laan <[email protected]> Rebased-From-Github-Pull: #3801