summaryrefslogtreecommitdiff
path: root/src/daemon/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add ssl_options support to monerod's rpc mode.Lee Clagett2019-05-211-1/+5
|
* daemon: fix absolute/relative log file test for windowsmoneromooo-monero2019-04-161-5/+1
|
* daemon: if a log file has a /, interpret it from the cwdmoneromooo-monero2019-04-131-1/+6
| | | | | | rather than from data dir where it normally is. It makes things like --log-file ./foo.log behave as you'd expect.
* Merge pull request #5190Riccardo Spagni2019-03-171-1/+54
|\ | | | | | | 551104fb daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
| * daemon: add --public-node mode, RPC port propagation over P2Pxiphon2019-02-251-1/+54
| |
* | Update 2019 copyrightbinaryFate2019-03-051-1/+1
|/
* daemon: print monero version at startup when calling a detached daemonmoneromooo-monero2018-11-301-10/+10
| | | | So people who want a timstamp get a timestamp
* rpc: allow to pass RPC login via RPC_LOGIN env varDusan Klinec2018-08-311-2/+5
| | | | - passing by parameter is insecure as it is shown in the process list
* Merge pull request #3854luigi11112018-07-191-2/+3
|\ | | | | | | | | | | | | 149da42 db_lmdb: enable batch transactions by default (stoffu) 34cb6b4 add --regtest and --fixed-difficulty for regression testing (vicsn) 9e1403e update get_info RPC and bump RPC version (vicsn) 207b66e first new functional tests (vicsn)
| * add --regtest and --fixed-difficulty for regression testingvictorsintnicolaas2018-06-291-2/+3
| | | | | | | | | | | | | | on_generateblocks RPC call combines functionality from the on_getblocktemplate and on_submitblock RPC calls to allow rapid block creation. Difficulty is set permanently to 1 for regtest. Makes use of FAKECHAIN network type, but takes hard fork heights from mainchain Default reserve_size in generate_blocks RPC call is now 1. If it is 0, the following error occurs 'Failed to calculate offset for'. Queries hard fork heights info of other network types
* | Merge pull request #3897luigi11112018-06-201-1/+2
|\ \ | | | | | | | | | 63d0ab0 mlog: --max-log-files to set the max number of rotated log files (stoffu)
| * | mlog: --max-log-files to set the max number of rotated log filesstoffu2018-06-131-1/+2
| |/
* / daemon: fix readline interfering with std::cerr usagemoneromooo-monero2018-05-311-0/+3
|/ | | | | Once readline is initialized, std::cerr's operator<< will output a 0xff byte for unknown reasons.
* daemon: read config file before reading any other argsstoffu2018-04-141-23/+22
|
* Stagenetstoffu2018-03-051-0/+8
|
* options: add testnet option dependencieswhythat2018-02-161-7/+2
|
* options: remove testnet-* optionswhythat2018-02-161-10/+1
|
* Merge pull request #3161Riccardo Spagni2018-02-161-1/+1
|\ | | | | | | 78a2e15b daemon: exit with 0 when successful (moneromooo-monero)
| * daemon: exit with 0 when successfulmoneromooo-monero2018-01-201-1/+1
| |
* | Update 2018 copyrightxmr-eric2018-01-261-1/+1
| |
* | daemon+simplewallet: given an unknown command, show itstoffu2017-12-271-1/+1
|/
* cryptonote_core does not depend on p2p anymoremoneromooo-monero2017-12-161-0/+1
| | | | | | As a followon side effect, this makes a lot of inline code included only in particular cpp files (and instanciated when necessary.
* daemon & simplewallet: don't set max-concurrency when unspecifiedstoffu2017-11-161-1/+1
|
* wallet: rejig to avoid prompting in wallet2moneromooo-monero2017-11-141-1/+6
| | | | | | wallet2 is a library, and should not prompt for stdin. Instead, pass a function so simplewallet can prompt on stdin, and a GUI might display a window, etc.
* move cryptonote command line options to cryptonote_coremoneromooo-monero2017-11-141-5/+2
| | | | Those have no reason to be in a generic module
* Merge pull request #2589Riccardo Spagni2017-10-151-2/+2
|\ | | | | | | 8f0cea63 add a command_line function to check for defaulted options (moneromooo-monero)
| * add a command_line function to check for defaulted optionsmoneromooo-monero2017-10-061-2/+2
| |
* | Add tools::on_startup, and warn about glibc 2.25 bug if foundmoneromooo-monero2017-10-141-1/+1
|/ | | | https://sourceware.org/bugzilla/show_bug.cgi?id=21778
* Merge pull request #2456Riccardo Spagni2017-09-251-1/+2
|\ | | | | | | 91def9a5 daemon, wallet: add --max-log-file-size option (selsta)
| * daemon, wallet: add --max-log-file-size optionselsta2017-09-171-1/+2
| |
* | Merge pull request #2044Riccardo Spagni2017-09-181-0/+3
|\ \ | |/ |/| | | | | | | | | 0299cb77 Fix various oversights/bugs in ZMQ RPC server code (Thomas Winget) 77986023 json serialization for rpc-relevant monero types (Thomas Winget) 5c1e08fe Refactor some things into more composable (smaller) functions (Thomas Winget) 9ac2ad07 DRY refactoring (Thomas Winget)
| * Fix various oversights/bugs in ZMQ RPC server codeThomas Winget2017-09-051-1/+0
| | | | | | | | | | | | | | | | | | - Add some RPC commands (and touch up a couple others) - some bounds checking - some better pointer management - const correctness and error handling -- Thanks @vtnerd for type help with serialization and CMake changes
| * json serialization for rpc-relevant monero typesThomas Winget2017-09-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | Structured {de-,}serialization methods for (many new) types which are used for requests or responses in the RPC. New types include RPC requests and responses, and structs which compose types within those. # Conflicts: # src/cryptonote_core/blockchain.cpp
* | move db specific options to BlockchainDBmoneromooo-monero2017-08-291-1/+1
|/ | | | | Avoids common depending on blockchain_db, which can cause link errors.
* More DB support cleanupHoward Chu2017-08-201-6/+3
| | | | | | | | Hide DB types from db_types.h - no reason to recompile dependencies when DB types change. Also remove lingering in-memory DB references, they've been obsolete since 9e82b694da120708652871b55f639d1ef306a7ec
* daemon: avoid pre-log-init spew on creating directoriesmoneromooo-monero2017-02-241-1/+3
|
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-211-1/+1
|
* Merge pull request #1689Riccardo Spagni2017-02-111-3/+18
|\ | | | | | | ce7fcbb4 Add server auth to monerod, and client auth to wallet-cli and wallet-rpc (Lee Clagett)
| * Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett2017-02-061-3/+18
| |
* | extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-081-1/+1
|/
* Change logging to easylogging++moneromooo-monero2017-01-161-43/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
* epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero2016-09-181-1/+2
| | | | | | | | This is intended to catch traffic coming from a web browser, so we avoid issues with a web page sending a transfer RPC to the wallet. Requiring a particular user agent can act as a simple password scheme, while we wait for 0MQ and proper authentication to be merged.
* daemon: log version when startingmoneromooo-monero2016-09-161-0/+3
| | | | Helps with investigating bug reports
* cmake,common: flag for stack traceredfish2016-07-271-1/+6
| | | | | | | By default the flag is enabled whenever libunwind is found on the system, with the exception of static build on OSX (for which we can't install the throw hook #932 due to lack of support for --wrap in OSX ld64 linker).
* daemon: print exception errors when failing to parse config filemoneromooo-monero2016-06-301-1/+10
| | | | | | When an exception happens while reading the config file, we need to print the error, as the logging system isn't initialized yet, so the generic catch will not print anything.
* Merge pull request #775Riccardo Spagni2016-06-191-0/+2
|\ | | | | | | | | e409e59 Print stack trace on exceptions (moneromooo-monero) ef4ff42 connection_basic: avoid gratuitous exception (moneromooo-monero)
| * Print stack trace on exceptionsmoneromooo-monero2016-04-281-0/+2
| | | | | | | | | | | | if libunwind is found. Useful for debugging logs.
* | add a --max-concurrency flagmoneromooo-monero2016-04-281-0/+4
|/ | | | | | It sets the max number of threads to use for a parallel job. This is different that the number of total threads, since monero binaries typically start a lot of them.
* move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero2016-02-221-1/+1
| | | | | This avoids the need to define that variable in every program which uses epee.
* update versionRiccardo Spagni2015-12-311-2/+2
|