summaryrefslogtreecommitdiff
path: root/src/daemon/daemon.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Adding ZMQ/Pub support for txpool_add and chain_main eventsLee Clagett2020-05-041-30/+41
|
* Merge pull request #6516Alexander Blair2020-07-191-1/+0
|\ | | | | | | 8656a8c9f remove double includes (sumogr)
| * remove double includessumogr2020-05-111-1/+0
| |
* | Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
|/ | | | Update copyright year to 2020
* daemon: run with -rpc-payment-address and --rpc-restricted-bind-portmoneromooo-monero2019-11-291-4/+5
|
* Merge pull request #5597luigi11112019-07-241-14/+21
|\ | | | | | | 343c0b4 add a command line option to disable ZMQ server (jtgrassie)
| * add a command line option to disable ZMQ serverJethro Grassie2019-06-011-14/+21
| |
* | Add ssl_options support to monerod's rpc mode.Lee Clagett2019-05-221-1/+2
|/
* daemon: init public_port in all ctorsmoneromooo-monero2019-03-201-0/+2
| | | | Coverity 196596
* Merge pull request #5190Riccardo Spagni2019-03-171-2/+10
|\ | | | | | | 551104fb daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
| * daemon: add --public-node mode, RPC port propagation over P2Pxiphon2019-02-251-2/+10
| |
* | Update 2019 copyrightbinaryFate2019-03-051-1/+1
|/
* Merge pull request #4923Riccardo Spagni2018-12-121-2/+0
|\ | | | | | | aba9a9c2 daemon: stop miner before we bring the whole thing down (moneromooo-monero)
| * daemon: stop miner before we bring the whole thing downmoneromooo-monero2018-11-301-2/+0
| | | | | | | | | | | | This avoids the miner erroring out trying to submit blocks to a core that's already shut down (and avoids pegging the CPU while we're busy shutting down).
* | Don't cache nettype in core_rpc_server use m_coredoy-lee2018-11-161-5/+2
|/ | | | | | | This can go out of sync with m_core's nettype if you run in fakechain mode since entering fakechain mode is done through code not the command line and core_rpc_server only looks at the command line to figure out the nettype.
* daemon: fix reading past stack on exitmoneromooo-monero2018-10-151-5/+10
|
* daemon: do not run complex code in a signal handlermoneromooo-monero2018-10-121-1/+8
| | | | | instead, delegate the work to a one off thread and notify it from the signal handler
* add --regtest and --fixed-difficulty for regression testingvictorsintnicolaas2018-06-291-1/+2
| | | | | | | 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
* Stagenetstoffu2018-03-051-2/+3
|
* options: remove testnet-* optionswhythat2018-02-161-11/+3
|
* Merge pull request #3181Riccardo Spagni2018-02-161-1/+1
|\ | | | | | | e3f0980a daemon: don't drop RPC with busy error when running offline (moneromooo-monero)
| * daemon: don't drop RPC with busy error when running offlinemoneromooo-monero2018-01-251-1/+1
| |
* | Update 2018 copyrightxmr-eric2018-01-261-1/+1
|/
* Merge pull request #2945Riccardo Spagni2017-12-281-1/+2
|\ | | | | | | 9e07ccf1 daemon: remove some superfluous includes (moneromooo-monero)
| * daemon: remove some superfluous includesmoneromooo-monero2017-12-171-1/+2
| |
* | move includes around to lessen overall loadmoneromooo-monero2017-12-161-0/+1
|/
* RPC: allow binding of restricted port in addition to core portTim L2017-11-171-14/+26
|
* move cryptonote command line options to cryptonote_coremoneromooo-monero2017-11-141-1/+1
| | | | Those have no reason to be in a generic module
* json serialization for rpc-relevant monero typesThomas Winget2017-09-051-1/+40
| | | | | | | | | | | 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
* some include cleanupmoneromooo-monero2017-07-311-1/+1
|
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-211-1/+1
|
* daemon: silence spurious warning about uninitialized variablemoneromooo-monero2017-02-131-3/+3
| | | | Also fixes a leak
* daemon: fix crash on exit when miningmoneromooo-monero2017-02-121-0/+2
| | | | | | | When exiting while the miner is running, finding a block after the p2p layer has been shutdown will cause a crash as the now uninitialized p2p layer is asked to relay the found block to any peers.
* Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett2017-02-061-1/+3
|
* Change logging to easylogging++moneromooo-monero2017-01-161-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+1
| | | | | | | | 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.
* Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-211-3/+3
| | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
* Print stack trace upon exceptionsmoneromooo-monero2016-03-191-3/+3
| | | | Useful for debugging users' logs
* move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero2016-02-221-2/+0
| | | | | This avoids the need to define that variable in every program which uses epee.
* Nicer looking exit when blockchain.bin is foundmoneromooo-monero2015-12-311-1/+2
| | | | | Do not print the exception message, and write the important bit in red, since people will only read the last line otherwise.
* updated copyright yearRiccardo Spagni2015-12-311-1/+1
|
* Strip redundant includeshyc2015-12-211-3/+3
| | | | | | | In particular, <boost/program_options.hpp> blows up daemon.cpp.obj, making it too big to compile in debug mode on Win32. Even on a release build it drops daemon.cpp.o on Linux from 31MB to 20MB. This has no effect on the final linked binary size.
* daemon: fix crash exiting with ^Cmoneromooo-monero2015-12-131-1/+1
| | | | | We need to stop the p2p layer, which causes the rest to shutdown gracefully. Hitting ^C was still going through another path.
* daemon: fix an exit crashmoneromooo-monero2015-06-141-1/+10
|
* fix ^D exit for bitmonerodmoneromooo-monero2015-06-031-1/+1
| | | | | | It uses the async console handler differently than simplewallet, and wasn't running the same exit code, causing it to never actually exit after breaking out of the console entry loop.
* remerged; commands JSON. logging upgrade. doxygenrfree2monero2015-04-011-2/+8
|
* Restore daemon interactive modeThomas Winget2015-03-271-2/+18
| | | | | | | Daemon interactive mode is now working again. RPC mapped calls in daemon and wallet have both had connection_context removed as an argument as that argument was not being used anywhere.
* Daemonize changes pulled in -- daemon buildsThomas Winget2015-02-241-247/+89
| | | | | | | many RPC functions added by the daemonize changes (and related changes on the upstream dev branch that were not merged) were commented out (apart from return). Other than that, this *should* work...at any rate, it builds, and that's something.
* year updated in licenseRiccardo Spagni2015-01-021-1/+1
|
* Fixed segfault with checkpoints loadingThomas Winget2014-09-301-2/+0
| | | | | | Bounds checking on blockchain_storage' m_blocks.size() when validating against checkpoints. Also moved initial json & DNS checkpoints load to after blockchain init.