aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* DNS checkpoint updating added, and daemon flag to enforce themThomas Winget2014-09-301-2/+8
| | | | | | | | | | | | The daemon should now check for updated checkpoints from checkpoints.moneropulse.org as well as from the configured json file every ~1hr (and on launch). The daemon now has a flag to enable enforcing these checkpoints (rather than just printing a warning when they fail). TODO: an easily configurable list of DNS servers to check for checkpoints as opposed to the hard-coded "checkpoints.moneropulse.org"
* reload checkpoints file every ~hr and print if any failThomas Winget2014-09-301-1/+2
| | | | also some other minor bug squashing and code formatting
* Added ability to read chechpoint hashes from json file in data folderTomer Konforty2014-09-251-0/+5
|
* fixed incorrect version referenceRiccardo Spagni2014-09-151-1/+1
|
* Separate testnet address prefixZachary Michaels2014-09-151-3/+3
|
* Create testnet data dir if necessaryZachary Michaels2014-09-151-0/+1
|
* Separate testnet default data dirZachary Michaels2014-09-151-27/+37
|
* Separate network id for testnetZachary Michaels2014-09-151-1/+5
|
* Separate rpc port for testnetZachary Michaels2014-09-151-1/+1
|
* Add testnet flagZachary Michaels2014-09-151-4/+13
| | | | Source: cryptonotefoundation
* versioning now includes the commit hash, or -final for tagged releasesRiccardo Spagni2014-09-121-3/+3
|
* Merge remote-tracking branch 'upstream/master'jebes2014-09-111-17/+17
|\
| * moved non-critical warnings and errors to log level 1fluffypony2014-09-091-17/+17
| |
* | commented util.hjebes2014-09-091-35/+34
|/
* License updated to BSD 3-clausefluffypony2014-07-231-3/+29
|
* Improvements in JSON RPCAntonio Juarez2014-04-071-1/+1
|