summaryrefslogtreecommitdiff
path: root/src/daemon
Commit message (Collapse)AuthorAgeFilesLines
* daemon: avoid pre-log-init spew on creating directoriesmoneromooo-monero2017-02-241-1/+3
|
* Add print_pl_stats daemon commandMiguel Herranz2017-02-235-0/+44
|
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-2117-17/+17
|
* Fix core_tests breaking on startupmoneromooo-monero2017-02-211-1/+0
| | | | | | | | | | You're wondering how this fixes core tests, aren't you... It prevents the miner (initialized by cryptonote::core) from breaking trying to access arguments that were not added. Since the tests don't use the miner directly, it makes more sense to have cryptonote_core add those, since it also uses the miner.
* Merge pull request #1716Riccardo Spagni2017-02-211-3/+3
|\ | | | | | | b560ed4a daemon: silence spurious warning about uninitialized variable (moneromooo-monero)
| * daemon: silence spurious warning about uninitialized variablemoneromooo-monero2017-02-131-3/+3
| | | | | | | | Also fixes a leak
* | More robust battery status handling.Dion Ahmetaj2017-02-164-7/+14
|/ | | | | | Added an extra path to check for linux power supply status. Added ignore battery option. If set to true, then when we can't figure out the power status, we'll assume the system is plugged in.
* Merge pull request #1711Riccardo Spagni2017-02-121-0/+2
|\ | | | | | | cf2e75eb daemon: fix crash on exit when mining (moneromooo-monero)
| * 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.
* | Added a note about smart mining to status command. Fixed up a bug where I ↵Dion Ahmetaj2017-02-101-1/+1
| | | | | | | | was resetting bg mining enabled instead of started. Upped the miner threshold. Also moved setting of enabled on start above miner thread creation since starting with true, then stopping, then starting with false resulted in race condition.
* | Background/smart mining. If a users' computer is plugged into a powerDion Ahmetaj2017-02-104-6/+14
|/ | | | | | | | | | | source, and CPU has been idle for some time, then begin mining to some threshold (don't destroy the users' CPU). This patch only supports windows and linux (I've only tested on Win64 and Ubuntu). The variables currently default to pretty conservative values (i.e. 20% CPU mining threshold).
* Merge pull request #1689Riccardo Spagni2017-02-118-13/+42
|\ | | | | | | 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-068-13/+42
| |
* | Merge pull request #1680Riccardo Spagni2017-02-111-1/+1
|\ \ | | | | | | | | | db0a5392 Clarify in/out connections for users (NanoAkron)
| * | Clarify in/out connections for usersNanoAkron2017-02-051-1/+1
| |/
* / extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-082-2/+2
|/
* Fix missing parenthesesMiguel Herranz2017-02-021-2/+2
|
* Merge pull request #1663Riccardo Spagni2017-02-021-0/+2
|\ | | | | | | bbcc3a12 Add missing include (Miguel Herranz)
| * Add missing includeMiguel Herranz2017-02-021-0/+2
| | | | | | | | Fails to build without it.
* | Merge pull request #1654Riccardo Spagni2017-02-021-4/+6
|\ \ | |/ |/| | | 084aef70 Added days uptime to the status message (NanoAkron)
| * Added days uptime to the status messageNanoAkron2017-01-311-4/+6
| | | | | | | | Also broke down the time calculations for legibility
* | Merge pull request #1628Riccardo Spagni2017-02-021-0/+1
|\ \ | | | | | | | | | 66665003 Clear feedback to user when daemon has stopped successfully (NanoAkron)
| * | Clear feedback to user when daemon has stopped successfullyNanoAkron2017-01-251-0/+1
| |/
* / rpc: fix bc_dyn_stats not setting grace blocksmoneromooo-monero2017-01-231-0/+1
|/ | | | | This caused a random value to be used, and the resulting incorrect fee when it wasn't 0.
* Change logging to easylogging++moneromooo-monero2017-01-1616-84/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #1561Riccardo Spagni2017-01-151-1/+1
|\ | | | | | | | | | | | | | | | | | | d561f4ad enable clang checks that were disabled (Chris Vickio) 0aefb2f6 remove std::move from return statements (pessimizing-move warning) (Chris Vickio) 629d5b76 change counter from bool to int (deprecated-increment-bool warning) (Chris Vickio) fb76d439 add extra braces around subobjects (missing-braces warning) (Chris Vickio) 3b6d5f25 make struct/class declarations consistent (mismatched-tags warning) (Chris Vickio) fcf66925 remove unused fields from network_throttle (unused-private-field warning) (Chris Vickio) 296f8c16 inline unused function (for unused-function warning) (Chris Vickio)
| * make struct/class declarations consistent (mismatched-tags warning)Chris Vickio2017-01-141-1/+1
| |
* | Merge pull request #1571Riccardo Spagni2017-01-151-0/+2
|\ \ | | | | | | | | | 81c384e4 fix do_not_relay not preventing relaying on a timer (moneromooo-monero)
| * | fix do_not_relay not preventing relaying on a timermoneromooo-monero2017-01-141-0/+2
| | | | | | | | | | | | Also print its value when printing pool
* | | rpc: add a command to get info about the current blockchainmoneromooo-monero2017-01-135-0/+130
|/ / | | | | | | About the tip of the main chain, and the last N blocks
* / Add start_time to get_info methods and show uptimeMiguel Herranz2017-01-121-1/+6
|/
* Merge pull request #1534Riccardo Spagni2017-01-081-1/+2
|\ | | | | | | | | | | 1607cb7e tx_pool: better block template filling algorithm (moneromooo-monero) 9731b4e5 rpc: add block size to GET_BLOCK_HEADER RPC (moneromooo-monero) 9188b346 rpc: add current block size to the getinfo call (moneromooo-monero)
| * rpc: add block size to GET_BLOCK_HEADER RPCmoneromooo-monero2017-01-061-1/+2
| | | | | | | | and print it in print_bc
* | make openalias also available for solo miner; introduce namespace ↵kenshi842016-12-211-7/+25
|/ | | | tools::dns_utils; support integrated address with dns lookup
* rpc: new function and RPC to get alternative chain infomoneromooo-monero2016-12-175-0/+53
|
* add lightweight block propagation ("fluffy blocks")Dion Ahmetaj2016-11-091-0/+2
| | | | | | | | | | | | | | | | | | | | Added a new command to the P2P protocol definitions to allow querying for support flags. Implemented handling of new support flags command in net_node. Changed for_each callback template to include support flags. Updated print_connections command to show peer support flags. Added p2p constant for signaling fluffy block support. Added get_pool_transaction function to cryptnote_core. Added new commands to cryptonote protocol for relaying fluffy blocks. Implemented handling of fluffy block command in cryptonote protocol. Enabled fluffy block support in node initial configuration. Implemented get_testnet function in cryptonote_core. Made it so that fluffy blocks only run on testnet.
* daemon: fix min/max tracking using the wrong sizemoneromooo-monero2016-10-231-4/+4
| | | | Reported by iDunk
* daemon: even when switching branches, compile the damn thing ffsmoneromooo-monero2016-10-231-1/+1
|
* daemon: do not divide by 0 when the pool is emptymoneromooo-monero2016-10-231-2/+2
|
* Merge pull request #1250Riccardo Spagni2016-10-235-0/+72
|\ | | | | | | 839280d daemon: add a print_pool_stats daemon command (moneromooo-monero)
| * daemon: add a print_pool_stats daemon commandmoneromooo-monero2016-10-235-0/+72
| | | | | | | | Helps see what's going on now that Monero is getting used
* | daemon: report transaction relay status in print_pool* commandsmoneromooo-monero2016-10-231-0/+2
|/
* wallet: select part of the fake outs from recent outputsmoneromooo-monero2016-10-151-2/+4
| | | | | | | 25% of the outputs are selected from the last 5 days (if possible), in order to avoid the common case of sending recently received outputs again. 25% and 5 days are subject to review later, since it's just a wallet level change.
* print_coinbase_tx_sum now breaks output into fee and emission componentsDion Ahmetaj2016-10-101-1/+3
|
* changed params from start/end index to height/countDion Ahmetaj2016-10-105-16/+16
|
* attempted to remove whitespace spamDion Ahmetaj2016-10-105-50/+50
|
* added print_coinbase_tx_sum optionDion Ahmetaj2016-10-105-51/+115
|
* Merge pull request #1164Riccardo Spagni2016-10-041-12/+8
|\ | | | | | | 179b1f4 daemon: implement missing print_bc and matching RPC (moneromooo-monero)
| * daemon: implement missing print_bc and matching RPCmoneromooo-monero2016-10-021-12/+8
| |
* | Merge pull request #1139Riccardo Spagni2016-10-041-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 01ec195 Update CMakeLists.txt (codehalo) 446ebbc Update CMakeLists.txt (codehalo) bd773e7 Update CMakeLists.txt (codehalo) 3627cea Cleanup. Dropped "bit" from bitmonero. (Randi Joseph) 2a51396 Dropped "bit" from bitmonero. (Randi Joseph) 78b13d6 Cleanup. Dropped "bit" from bitmonero. (Randi Joseph) 1e6aedb Cleanup. Dropped "bit" from bitmonero. (Randi Joseph) 9e54616 Dropped "bit" from bitmonero. (Randi Joseph)