aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-05-04Adding ZMQ/Pub support for txpool_add and chain_main eventsLee Clagett1-30/+41
2020-07-19Merge pull request #6516Alexander Blair1-1/+0
8656a8c9f remove double includes (sumogr)
2020-05-11remove double includessumogr1-1/+0
2020-05-06Update copyright year to 2020SomaticFanatic1-1/+1
Update copyright year to 2020
2019-11-29daemon: run with -rpc-payment-address and --rpc-restricted-bind-portmoneromooo-monero1-4/+5
2019-07-24Merge pull request #5597luigi11111-14/+21
343c0b4 add a command line option to disable ZMQ server (jtgrassie)
2019-06-01add a command line option to disable ZMQ serverJethro Grassie1-14/+21
2019-05-22Add ssl_options support to monerod's rpc mode.Lee Clagett1-1/+2
2019-03-20daemon: init public_port in all ctorsmoneromooo-monero1-0/+2
Coverity 196596
2019-03-17Merge pull request #5190Riccardo Spagni1-2/+10
551104fb daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2019-02-25daemon: add --public-node mode, RPC port propagation over P2Pxiphon1-2/+10
2018-12-12Merge pull request #4923Riccardo Spagni1-2/+0
aba9a9c2 daemon: stop miner before we bring the whole thing down (moneromooo-monero)
2018-11-30daemon: stop miner before we bring the whole thing downmoneromooo-monero1-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).
2018-11-16Don't cache nettype in core_rpc_server use m_coredoy-lee1-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.
2018-10-15daemon: fix reading past stack on exitmoneromooo-monero1-5/+10
2018-10-12daemon: do not run complex code in a signal handlermoneromooo-monero1-1/+8
instead, delegate the work to a one off thread and notify it from the signal handler
2018-06-29add --regtest and --fixed-difficulty for regression testingvictorsintnicolaas1-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
2018-03-05Stagenetstoffu1-2/+3
2018-02-16options: remove testnet-* optionswhythat1-11/+3
2018-02-16Merge pull request #3181Riccardo Spagni1-1/+1
e3f0980a daemon: don't drop RPC with busy error when running offline (moneromooo-monero)
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2018-01-25daemon: don't drop RPC with busy error when running offlinemoneromooo-monero1-1/+1
2017-12-28Merge pull request #2945Riccardo Spagni1-1/+2
9e07ccf1 daemon: remove some superfluous includes (moneromooo-monero)
2017-12-17daemon: remove some superfluous includesmoneromooo-monero1-1/+2
2017-12-16move includes around to lessen overall loadmoneromooo-monero1-0/+1
2017-11-17RPC: allow binding of restricted port in addition to core portTim L1-14/+26
2017-11-14move cryptonote command line options to cryptonote_coremoneromooo-monero1-1/+1
Those have no reason to be in a generic module
2017-09-05json serialization for rpc-relevant monero typesThomas Winget1-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
2017-07-31some include cleanupmoneromooo-monero1-1/+1
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2017-02-13daemon: silence spurious warning about uninitialized variablemoneromooo-monero1-3/+3
Also fixes a leak
2017-02-12daemon: fix crash on exit when miningmoneromooo-monero1-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.
2017-02-06Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett1-1/+3
2017-01-16Change logging to easylogging++moneromooo-monero1-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.
2016-09-18epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero1-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.
2016-03-21Revert "Print stack trace upon exceptions"moneromooo-monero1-3/+3
Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
2016-03-19Print stack trace upon exceptionsmoneromooo-monero1-3/+3
Useful for debugging users' logs
2016-02-22move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero1-2/+0
This avoids the need to define that variable in every program which uses epee.
2015-12-31Nicer looking exit when blockchain.bin is foundmoneromooo-monero1-1/+2
Do not print the exception message, and write the important bit in red, since people will only read the last line otherwise.
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-12-21Strip redundant includeshyc1-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.
2015-12-13daemon: fix crash exiting with ^Cmoneromooo-monero1-1/+1
We need to stop the p2p layer, which causes the rest to shutdown gracefully. Hitting ^C was still going through another path.
2015-06-14daemon: fix an exit crashmoneromooo-monero1-1/+10
2015-06-03fix ^D exit for bitmonerodmoneromooo-monero1-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.
2015-04-01remerged; commands JSON. logging upgrade. doxygenrfree2monero1-2/+8
2015-03-27Restore daemon interactive modeThomas Winget1-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.
2015-02-24Daemonize changes pulled in -- daemon buildsThomas Winget1-250/+92
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.
2015-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-09-30Fixed segfault with checkpoints loadingThomas Winget1-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.
2014-09-30DNS checkpoint updating added, and daemon flag to enforce themThomas Winget1-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"
2014-09-30reload checkpoints file every ~hr and print if any failThomas Winget1-1/+2
also some other minor bug squashing and code formatting
2014-09-25Added ability to read chechpoint hashes from json file in data folderTomer Konforty1-0/+5
2014-09-15fixed incorrect version referenceRiccardo Spagni1-1/+1
2014-09-15Separate testnet address prefixZachary Michaels1-3/+3
2014-09-15Create testnet data dir if necessaryZachary Michaels1-0/+1
2014-09-15Separate testnet default data dirZachary Michaels1-27/+37
2014-09-15Separate network id for testnetZachary Michaels1-1/+5
2014-09-15Separate rpc port for testnetZachary Michaels1-1/+1
2014-09-15Add testnet flagZachary Michaels1-4/+13
Source: cryptonotefoundation
2014-09-12versioning now includes the commit hash, or -final for tagged releasesRiccardo Spagni1-3/+3
2014-09-11Merge remote-tracking branch 'upstream/master'jebes1-17/+17
2014-09-09commented util.hjebes1-35/+34
2014-09-09moved non-critical warnings and errors to log level 1fluffypony1-17/+17
2014-07-23License updated to BSD 3-clausefluffypony1-3/+29
2014-04-07Improvements in JSON RPCAntonio Juarez1-1/+1
2014-04-02json rpc for wallet and bugfixAntonio Juarez1-4/+1
2014-03-20some fixesAntonio Juarez1-3/+15
2014-03-03moved all stuff to githubAntonio Juarez1-0/+234