aboutsummaryrefslogtreecommitdiff
path: root/src/daemon (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-10-07Subaddresseskenshi842-9/+12
2017-10-02Merge pull request #2512Riccardo Spagni3-3/+8
792ba4f0 Log categories can now be added to and removed from (moneromooo-monero) 48f92eb6 easylogging++: add categories getter (moneromooo-monero) f35afe62 epee: factor log level/categories setting (moneromooo-monero)
2017-10-02Merge pull request #2470Riccardo Spagni3-52/+118
2e59f6ea rpc: add new RPCs to get and set limits (MaxXor)
2017-09-25Merge pull request #2466Riccardo Spagni1-1/+1
bc429e9c daemon: make this build with boost 1.61 (moneromooo-monero)
2017-09-25Merge pull request #2456Riccardo Spagni2-1/+7
91def9a5 daemon, wallet: add --max-log-file-size option (selsta)
2017-09-25Merge pull request #2424Riccardo Spagni1-0/+1
28b72b6e tx_pool: pre-init tvc.m_verifivation_failed before processing (moneromooo-monero) 50a629b2 core_tests: catch (impossible in practice) tx extra api failure (moneromooo-monero) fee15ef1 wallet2: catch failure to parse address (moneromooo-monero) 1399e26d net_peerlist: remove dead code (moneromooo-monero) 50e09698 tx_pool: guard against failure getting tx hash (moneromooo-monero) 54cc209a wallet_rpc_server: catch failure to create directory (moneromooo-monero) 3e55099c wallet_rpc_server: init m_vm to NULL in ctor (moneromooo-monero) 7d0dde5e wallet_args: remove redundant default value for --log-file (moneromooo-monero) ed4a3350 wallet2: catch failure to save keys file (moneromooo-monero) 44434c8a wallet2_api: check whether dynamic_cast returns NULL (moneromooo-monero) 92f2f687 core: check return value from parse_hexstr_to_binbuff (moneromooo-monero) 5475692e wallet2_api: remove an unused, uninitialized, field (moneromooo-monero) a7ba3de1 libwallet_api_tests: initialize newblock_triggered on reset (moneromooo-monero) b2763ace wallet2_api: init error code to "no error" in the ctor (moneromooo-monero) b5faac53 get_blockchain_top now returns void (moneromooo-monero) 2e44d8f2 wallet_rpc_server: guard against exceptions (moneromooo-monero) 4230876b simplewallet: guard against I/O exceptions (moneromooo-monero) 06c1e057 daemon: initialize decode_as_json in RPC request (moneromooo-monero) 11f71af5 http_base: init size_t in http_request_info ctor (moneromooo-monero)
2017-09-25Merge pull request #2442Riccardo Spagni1-1/+1
e29282d2 build: auto update version info without manually deleting version.h (stoffu)
2017-09-25daemon: initialize decode_as_json in RPC requestmoneromooo-monero1-0/+1
CID 161886
2017-09-22Log categories can now be added to and removed frommoneromooo-monero3-3/+8
Also, set_log without parameters now prints the log categories
2017-09-21build: auto update version info without manually deleting version.hstoffu1-1/+1
2017-09-21daemon: indicate whether the spent key image is mined or unconfirmedstoffu1-1/+1
2017-09-20Merge pull request #2414Riccardo Spagni1-1/+1
ea016330 updated clarification bc_dyn_stats (Matthew Campassi) 5aa2f24b clarification bc_dyn_stats (Matthew Campassi)
2017-09-19rpc: add new RPCs to get and set limitsMaxXor3-52/+118
2017-09-18Merge pull request #2044Riccardo Spagni5-1/+67
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)
2017-09-18daemon: make this build with boost 1.61moneromooo-monero1-1/+1
2017-09-17daemon, wallet: add --max-log-file-size optionselsta2-1/+7
2017-09-08updated clarification bc_dyn_stats Matthew Campassi1-1/+1
updated clarification of required parameter for bc_dyn_stats
2017-09-08clarification bc_dyn_statsMatthew Campassi1-1/+1
clarification of required parameter for bc_dyn_stats
2017-09-05Fix various oversights/bugs in ZMQ RPC server codeThomas Winget2-7/+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
2017-09-05json serialization for rpc-relevant monero typesThomas Winget5-1/+74
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-09-02Use latest height for fork date estimateHoward Chu1-2/+3
2017-09-02Merge pull request #2370Riccardo Spagni1-1/+1
3d19ab70 Revert "Cleanup test impact of moving blockchain_db_types()" (Howard Chu) a95e460c move db specific options to BlockchainDB (moneromooo-monero)
2017-09-02Merge pull request #2310Riccardo Spagni1-1/+1
ea996f91 clarification of parameters for print_coinbase_tx_sum (Matthew Campassi)
2017-08-29move db specific options to BlockchainDBmoneromooo-monero1-1/+1
Avoids common depending on blockchain_db, which can cause link errors.
2017-08-27Merge pull request #2349Riccardo Spagni1-1/+1
1914c999 txpool: update db tx metadata when it changes (moneromooo) 4dbf29bd txpool: add tx size median to the pool stats (moneromooo)
2017-08-26Merge pull request #2313Riccardo Spagni1-6/+3
3dd34a49 Cleanup test impact of moving blockchain_db_types() (Howard Chu) 80344740 More DB support cleanup (Howard Chu) 4c7f8ac0 DB cleanup (Howard Chu)
2017-08-26daemon: fix backlog estimating at max block sizemoneromooo-monero1-2/+3
Block size will pretty much never be fully used, unless all txes are using max fee.
2017-08-25txpool: add tx size median to the pool statsmoneromooo1-1/+1
2017-08-25Merge pull request #2311Riccardo Spagni1-16/+4
df0cffed cryptonote_protocol: warn if we see a higher top version we expect (moneromooo-monero) 317ab21a cryptonote_protocol: less strict check on top version on connect (moneromooo-monero) cc81a371 cryptonote_protocol: update target height when syncing too (moneromooo-monero) e2ad372b cryptonote_protocol: simplify and remove unnecessary casts (moneromooo-monero) 727e67ca cryptonote_protocol: print peer top height along with its version (moneromooo-monero) b5345ef4 crypto: use malloc instead of alloca (moneromooo-monero) 80794b31 thread_group: set thread size to THREAD_STACK_SIZE (moneromooo-monero) 5524bc31 print peer id in 0 padded hex for consistency (moneromooo-monero) 8f8cc09b contrib: add sync_info to rlwrap command set (moneromooo-monero) 70b8c6d7 cryptonote_protocol: misc fixes to the new sync algorithm (moneromooo-monero)
2017-08-23print peer id in 0 padded hex for consistencymoneromooo-monero1-16/+4
2017-08-23daemon: print estimated tx backlog in print_pool_statsmoneromooo-monero1-2/+24
2017-08-20More DB support cleanupHoward Chu1-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
2017-08-18clarification of parameters for print_coinbase_tx_sumMatthew Campassi1-1/+1
2017-08-16Consistently print peer id in hex and on 16 charsmoneromooo-monero1-5/+12
2017-08-12daemon: print peers' top height in sync_infomoneromooo-monero1-1/+1
2017-08-07Merge pull request #2149Riccardo Spagni5-0/+84
158c3ecf core: thread most of handle_incoming_tx (moneromooo-monero) f57ee382 cryptonote_protocol: retry stale spans early (moneromooo-monero) 90df52e1 cryptonote_protocol: light cleanup (moneromooo-monero) 84e23156 cryptonote_protocol: avoid spurious SYNCHRONIZED OK messages (moneromooo-monero) 5be43fcd cryptonote_protocol_handler: sync speedup (moneromooo-monero)
2017-08-07Merge pull request #2244Riccardo Spagni1-4/+1
328bebbe daemon: some more include cleanup (moneromooo-monero)
2017-08-07Merge pull request #2234Riccardo Spagni1-1/+1
214fd81e some include cleanup (moneromooo-monero)
2017-08-07Merge pull request #2223Riccardo Spagni1-1/+4
d37e8f88 daemon: add average seconds per block in bc_dyn_stats (moneromooo-monero)
2017-08-07cryptonote_protocol_handler: sync speedupmoneromooo-monero5-0/+84
A block queue is now placed between block download and block processing. Blocks are now requested only from one peer (unless starved). Includes a new sync_info coommand.
2017-08-02daemon: some more include cleanupmoneromooo-monero1-4/+1
2017-07-31some include cleanupmoneromooo-monero1-1/+1
2017-07-29daemon: add average seconds per block in bc_dyn_statsmoneromooo-monero1-1/+4
2017-07-27Move OpenAlias console input back from libsmoneromooo-monero1-1/+2
Library code should definitely not ask for console input unless it's clearly an input function. Delegating the user interaction part to the caller means it can now be used by a GUI, or have a decision algorithm better adapted to a particular caller.
2017-07-19Merge pull request #2170Riccardo Spagni1-5/+4
c3bb6bec daemon: fix status in command line mode if using restricted rpc (moneromooo-monero)
2017-07-13daemon: fix status in command line mode if using restricted rpcmoneromooo-monero1-5/+4
2017-07-10Fix #2164 histogram outputHoward Chu1-1/+1
When there are more than 50txs, the timestamp for the last bin was printed incorrectly. Subtracting "now" was omitted by mistake in 3fc22e7b78ab1dd409de4f3e8f5bff27be19735b
2017-06-04Add histogram to poolstatsHoward Chu1-1/+42
2017-06-01Speedup print_pool_statsHoward Chu1-34/+12
Since we're just counting txs, there's no reason to deserialize all the blobs.
2017-05-30Merge pull request #2039Riccardo Spagni1-1/+1
4b932ff3 changed crypto to cncrypto so it generated libcncrypto (Gentian)
2017-05-23changed crypto to cncrypto so it generated libcncryptoGentian1-1/+1
fix a cmakelist
2017-05-19Fix typoxmr-eric1-1/+1
2017-04-11Merge pull request #1956Riccardo Spagni1-1/+3
eb20f720 daemon: print average fee per byte in print_pool_stats (moneromooo-monero) 37be70bb daemon: add fee/byte when print pool transaction info (moneromooo-monero) 893f5a30 tx_pool: add blob size and fee/byte when logging a new tx (moneromooo-monero)
2017-04-04daemon: print average fee per byte in print_pool_statsmoneromooo-monero1-1/+1
2017-04-04daemon: add fee/byte when print pool transaction infomoneromooo-monero1-0/+2
2017-04-02daemon: new relay_tx command and RPCmoneromooo-monero5-0/+52
2017-03-21daemon: better error reporting in commandsmoneromooo-monero1-41/+48
2017-03-21Merge pull request #1897Riccardo Spagni2-0/+11
44a5b038 create a foreground non-interactive mode (Noah Watkins)
2017-03-18daemon: fix missing close parenthesis in alt_chain_info outputmoneromooo-monero1-1/+1
Reported by assylias_ on IRC
2017-03-18daemon: alt_chain_info now prints fork depthmoneromooo-monero1-2/+14
2017-03-10fix dependency: put HardFork back to cryptonote_basic, made some ↵kenshi841-1/+1
BlockchainDB functions virtual again to avoid missing symbols error
2017-03-04Add dependency for blocksdat.oHoward Chu1-2/+2
To make sure it gets regenerated whenever checkpoints.dat changes Likewise for blocks.o and testnet_blocks.o
2017-03-03Merge pull request #1814Riccardo Spagni1-2/+2
11a00df6 daemon: fix bc_dyn_stats via rpc (moneromooo-monero)
2017-03-03Merge pull request #1811Riccardo Spagni1-1/+0
378d2bb1 Revert attempt to write to console on daemon shutdown (Nano Akron)
2017-03-03Merge pull request #1804Riccardo Spagni1-1/+1
12adb4a3 core: move hardfork back to cryptonote_core (moneromooo-monero)
2017-02-26daemon: fix bc_dyn_stats via rpcmoneromooo-monero1-2/+2
2017-02-26Revert attempt to write to console on daemon shutdownNano Akron1-1/+0
2017-02-25core: move hardfork back to cryptonote_coremoneromooo-monero1-1/+1
should fix a cross dependency betewen cryptonote_basic and blockchain_db
2017-02-24daemon/rpc: updates command and RPCmoneromooo-monero5-0/+67
subcommands "check", "download", and "update". update is not yet implemented.
2017-02-24daemon: avoid pre-log-init spew on creating directoriesmoneromooo-monero1-1/+3
2017-02-23Add print_pl_stats daemon commandMiguel Herranz5-0/+44
2017-02-21create a foreground non-interactive modeNoah Watkins2-0/+11
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni17-17/+17
2017-02-21Fix core_tests breaking on startupmoneromooo-monero1-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.
2017-02-21Merge pull request #1716Riccardo Spagni1-3/+3
b560ed4a daemon: silence spurious warning about uninitialized variable (moneromooo-monero)
2017-02-16More robust battery status handling.Dion Ahmetaj4-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.
2017-02-13daemon: silence spurious warning about uninitialized variablemoneromooo-monero1-3/+3
Also fixes a leak
2017-02-12Merge pull request #1711Riccardo Spagni1-0/+2
cf2e75eb daemon: fix crash on exit when mining (moneromooo-monero)
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-10Added a note about smart mining to status command. Fixed up a bug where I ↵Dion Ahmetaj1-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.
2017-02-10Background/smart mining. If a users' computer is plugged into a powerDion Ahmetaj4-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).
2017-02-11Merge pull request #1689Riccardo Spagni8-13/+42
ce7fcbb4 Add server auth to monerod, and client auth to wallet-cli and wallet-rpc (Lee Clagett)
2017-02-11Merge pull request #1680Riccardo Spagni1-1/+1
db0a5392 Clarify in/out connections for users (NanoAkron)
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi842-2/+2
2017-02-06Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett8-13/+42
2017-02-05Clarify in/out connections for usersNanoAkron1-1/+1
2017-02-02Fix missing parenthesesMiguel Herranz1-2/+2
2017-02-02Merge pull request #1663Riccardo Spagni1-0/+2
bbcc3a12 Add missing include (Miguel Herranz)
2017-02-02Merge pull request #1654Riccardo Spagni1-4/+6
084aef70 Added days uptime to the status message (NanoAkron)
2017-02-02Add missing includeMiguel Herranz1-0/+2
Fails to build without it.
2017-02-02Merge pull request #1628Riccardo Spagni1-0/+1
66665003 Clear feedback to user when daemon has stopped successfully (NanoAkron)
2017-01-31Added days uptime to the status messageNanoAkron1-4/+6
Also broke down the time calculations for legibility
2017-01-25Clear feedback to user when daemon has stopped successfullyNanoAkron1-0/+1
2017-01-23rpc: fix bc_dyn_stats not setting grace blocksmoneromooo-monero1-0/+1
This caused a random value to be used, and the resulting incorrect fee when it wasn't 0.
2017-01-16Change logging to easylogging++moneromooo-monero16-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.
2017-01-15Merge pull request #1561Riccardo Spagni1-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)
2017-01-15Merge pull request #1571Riccardo Spagni1-0/+2
81c384e4 fix do_not_relay not preventing relaying on a timer (moneromooo-monero)
2017-01-14fix do_not_relay not preventing relaying on a timermoneromooo-monero1-0/+2
Also print its value when printing pool
2017-01-14make struct/class declarations consistent (mismatched-tags warning)Chris Vickio1-1/+1
2017-01-13rpc: add a command to get info about the current blockchainmoneromooo-monero5-0/+130
About the tip of the main chain, and the last N blocks
2017-01-12Add start_time to get_info methods and show uptimeMiguel Herranz1-1/+6
2017-01-08Merge pull request #1534Riccardo Spagni1-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)
2017-01-06rpc: add block size to GET_BLOCK_HEADER RPCmoneromooo-monero1-1/+2
and print it in print_bc
2016-12-21make openalias also available for solo miner; introduce namespace ↵kenshi841-7/+25
tools::dns_utils; support integrated address with dns lookup
2016-12-17rpc: new function and RPC to get alternative chain infomoneromooo-monero5-0/+53
2016-11-09add lightweight block propagation ("fluffy blocks")Dion Ahmetaj1-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.
2016-10-23daemon: fix min/max tracking using the wrong sizemoneromooo-monero1-4/+4
Reported by iDunk
2016-10-23daemon: even when switching branches, compile the damn thing ffsmoneromooo-monero1-1/+1
2016-10-23daemon: do not divide by 0 when the pool is emptymoneromooo-monero1-2/+2
2016-10-23Merge pull request #1250Riccardo Spagni5-0/+72
839280d daemon: add a print_pool_stats daemon command (moneromooo-monero)
2016-10-23daemon: add a print_pool_stats daemon commandmoneromooo-monero5-0/+72
Helps see what's going on now that Monero is getting used
2016-10-23daemon: report transaction relay status in print_pool* commandsmoneromooo-monero1-0/+2
2016-10-15wallet: select part of the fake outs from recent outputsmoneromooo-monero1-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.
2016-10-10print_coinbase_tx_sum now breaks output into fee and emission componentsDion Ahmetaj1-1/+3
2016-10-10changed params from start/end index to height/countDion Ahmetaj5-16/+16
2016-10-10attempted to remove whitespace spamDion Ahmetaj5-50/+50
2016-10-10added print_coinbase_tx_sum optionDion Ahmetaj5-51/+115
2016-10-04Merge pull request #1164Riccardo Spagni1-12/+8
179b1f4 daemon: implement missing print_bc and matching RPC (moneromooo-monero)
2016-10-04Merge pull request #1139Riccardo Spagni1-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)
2016-10-04Merge pull request #1171Riccardo Spagni5-43/+0
6390673 Removed all code related to fast_exit (NanoAkron)
2016-10-04Merge pull request #1168Riccardo Spagni1-2/+3
10be903 Brackets to prevent premature return (NanoAkron) fb1785a Brackets to ensure doesn't function prematurely return (NanoAkron) 8ed0d72 Moved logging to target functions rather than caller (NanoAkron) 442bfd1 Added messages at log level 2 to reflect deactivation procedure (NanoAkron)
2016-10-04Merge pull request #1149Riccardo Spagni1-1/+1
25be1d3 Noticed two spellings of the word 'response' in the codebase, one 'responce' and the other 'response'. (NanoAkron)
2016-10-04Merge pull request #1145Riccardo Spagni1-1/+1
8438fb4 Improving daemon startup log message (NanoAkron)
2016-10-03Moved logging to target functions rather than callerNanoAkron1-2/+3
2016-10-03Removed all code related to fast_exitNanoAkron5-43/+0
2016-10-02daemon: implement missing print_bc and matching RPCmoneromooo-monero1-12/+8
2016-09-29Noticed two spellings of the word 'response' in the codebase, one 'responce' ↵NanoAkron1-1/+1
and the other 'response'. Fixed to the standard spelling 'response'. This may fix some functionality - some calls had mixed spellings.
2016-09-28Improving daemon startup log messageNanoAkron1-1/+1
2016-09-26Dropped "bit" from bitmonero.Randi Joseph1-2/+2
2016-09-24daemon: report status at 99.9% rather than 100% when not quite syncedmoneromooo-monero1-1/+11
Less confusing for users.
2016-09-18epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero8-4/+11
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-09-18cmake: transitive deps and remove deprecated LINK_*redfish1-3/+1
Keep the immediate direct deps at the library that depends on them, declare deps as PUBLIC so that targets that link against that library get the library's deps as transitive deps. Break dep cycle between blockchain_db <-> crytonote_core. No code refactoring, just hide cycle from cmake so that it doesn't complain (cycles are allowed only between static libs, not shared libs). This is in preparation for supproting BUILD_SHARED_LIBS cmake built-in option for building internal libs as shared.
2016-09-16daemon: log version when startingmoneromooo-monero1-0/+3
Helps with investigating bug reports
2016-09-15Merge pull request #1068Riccardo Spagni1-0/+1
a5af33d Add libminiupnpc and libunwind to snap. (Casey Marshall) 823843e Fix portability issues discovered with fresh snap install. (Casey Marshall) 0a56d83 Add snap packaging. (Casey Marshall)
2016-09-11Add snap packaging.Casey Marshall1-0/+1
This adds [snap](https://snapcraft.io) packaging to the project. See the link for more information on snaps. Snap packages install on all Linux distributions. On Ubuntu, snap confinement with apparmor and seccomp provide an additional layer of security. This snap sets up monerod as a systemd service, which should start immediately on install. To access the wallet CLI, simply run `monero` (/snap/bin/monero). I think it's a really quick & easy way to get started with monero. I've made some opinionated decisions in the packaging just to kick this off, but I'm happy to iterate on this stuff.
2016-09-10Daemon: fix hashrate display in diff command outputiDunk54001-1/+1
2016-09-03fix remaining bitmonero and simplewallet bitsRiccardo Spagni1-2/+2
2016-09-03rename Monero daemonRiccardo Spagni1-1/+1
2016-08-30Fix incorrect help usage for the threads option to start_miningQuanah Gibson-Mount2-2/+2
2016-08-12daemon: print time to next forkmoneromooo-monero1-1/+23
2016-07-27cmake,common: flag for stack traceredfish1-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).
2016-07-10daemon: fix ban seconds being misinterpreted as absolutemoneromooo-monero1-3/+1
Absolute to relative conversion is already done by the callee.
2016-06-30daemon: print exception errors when failing to parse config filemoneromooo-monero1-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.
2016-06-19Merge pull request #775Riccardo Spagni1-0/+2
e409e59 Print stack trace on exceptions (moneromooo-monero) ef4ff42 connection_basic: avoid gratuitous exception (moneromooo-monero)
2016-04-28Print stack trace on exceptionsmoneromooo-monero1-0/+2
if libunwind is found. Useful for debugging logs.
2016-04-28add a --max-concurrency flagmoneromooo-monero2-0/+9
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.
2016-04-14Merge pull request #797Riccardo Spagni1-11/+33
d662ab5 rpc: print human readable time since received when printing pool (moneromooo-monero) 5c9dd23 rpc: add a do_not_relay boolean to tx submission (moneromooo-monero)
2016-04-09rpc: add pool/blockchain and block height results to gettransactionsmoneromooo-monero1-3/+13
2016-04-05rpc: print human readable time since received when printing poolmoneromooo-monero1-11/+33
2016-03-26New RPC and daemon command to get output histogrammoneromooo-monero5-0/+63
This is a list of existing output amounts along with the number of outputs of that amount in the blockchain. The daemon command takes: - no parameters: all outputs with at least 3 instances - one parameter: all outputs with at least that many instances - two parameters: all outputs within that many instances The default starts at 3 to avoid massive spamming of all dust outputs in the blockchain, and is the current minimum mixin requirement. An optional vector of amounts may be passed, to request histogram only for those outputs.
2016-03-25Merge pull request #749Riccardo Spagni1-1/+0
bfd4a28 Update BlockchainDB documentation (Thomas Winget) 797357e Change Doxyfile, Blockchain not blockchain_storage (Thomas Winget) c835215 remove defunct code from cryptonote::core (Thomas Winget) 50dba6d cryptonote::core doxygen documentation (Thomas Winget) 8ac329d doxygen documentation for difficulty functions (Thomas Winget) 540a76c Move checkpoint functions into checkpoints class (Thomas Winget) 1b0c98e doxygen documentation for checkpoints.{h,cpp} (Thomas Winget) 89c24ac Remove unnecessary or defunct code (Thomas Winget) ab0ed14 doxygen include private and static members (Thomas Winget) 3a48449 Updated documentation for blockchain.* (Thomas Winget)
2016-03-25Revert "Merge pull request #749"Riccardo Spagni1-0/+1
This reverts commit 7fa63a82a1c3a0243f6757c1689855ed3ca61695, reversing changes made to cb6be986c36b78eddb4b7f16e9ad440af8567dc4.
2016-03-24Move checkpoint functions into checkpoints classThomas Winget1-1/+0
The functions in src/cryptonote_core/checkpoints_create.{h,cpp} should be member functions of the checkpoints class, if nothing else for the sake of keeping their documentation together. This commit covers moving those functions to be member functions of the checkpoints class as well as documenting those functions.
2016-03-21Revert "Print stack trace upon exceptions"moneromooo-monero7-11/+8
Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
2016-03-20Merge pull request #735Riccardo Spagni1-1/+1
d2aa427 rpc: fix print_tx in command line mode (moneromooo-monero)
2016-03-19rpc: fix print_tx in command line modemoneromooo-monero1-1/+1
It was only filling the input in non rpc mode
2016-03-19Print stack trace upon exceptionsmoneromooo-monero7-8/+11
Useful for debugging users' logs
2016-03-14fix formatting error on bitmonero print_block returnMike C1-1/+1
Example of current return for `print_block 912345`: timestamp: 1452793716 previous hash: b61c58b2e0be53fad5ef9d9731a55e8a81d972b8d90ed07c04fd37ca6403ff78 nonce: 1646 is orphan: 0 height: 912345 depth: 85434 hash: e22cf75f39ae720e8b71b3d120a5ac03f0db50bba6379e2850975b4859190bc6difficul ty: 815625611 reward: 7388968946286 { "major_version": 1, "minor_version": 2, … Without `std::endl`, the difficulty gets smashed on the end of the hash.
2016-02-22move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero2-3/+1
This avoids the need to define that variable in every program which uses epee.
2016-02-05daemon: remove leftover debug logmoneromooo-monero1-1/+0
2016-01-31Merge pull request #631Riccardo Spagni1-29/+43
bcac101 daemon: fix a few issues reported by valgrind (moneromooo-monero) a7e8174 tx_pool: fix serialization of new relayed data (moneromooo-monero) 601ad76 hardfork: fix mixup in indexing variable in get_voting_info (moneromooo-monero) 444e22f blockchain: remove unused timer (moneromooo-monero) 7edfdd8 blockchain: fix m_sync_counter uninitialized variable use (moneromooo-monero) d97582c epee: use generate_random_bytes for new random uuids (moneromooo-monero) 17c7c9c epee: remove dodgy random code that nobody uses (moneromooo-monero)
2016-01-30daemon: fix a few issues reported by valgrindmoneromooo-monero1-29/+43
In particular, ensure we check the status of RPC response structures, as some functions will return success, but with a BUSY status, when the daemon is not yet synced, and the response will not filled.
2016-01-30new flush_txpool command, and associated RPC callmoneromooo-monero5-0/+57
It can flush a particular tx, or the whole pool (the RPC command can flush a list of transactions too)
2016-01-28add received time to print_pool and print_pool_shRiccardo Spagni1-1/+3
2016-01-14'max limit of...' is redundant wording, rephrasebinaryFate2-2/+2
2016-01-14Print msg when successfully updating out_peersbinaryFate1-0/+2
2016-01-11daemon: fix status command when run from command linemoneromooo-monero1-1/+1
2016-01-03fixed conflictsRiccardo Spagni1-2/+2
2016-01-03Use CMAKE_LINKER, not hardcoded "ld"Howard Chu1-2/+2
2016-01-02daemon: fix ban length using wrong parametermoneromooo-monero1-1/+1
2015-12-31update versionRiccardo Spagni3-4/+4
2015-12-31Nicer looking exit when blockchain.bin is foundmoneromooo-monero2-3/+5
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 Spagni17-17/+17
2015-12-22Merge pull request #552Riccardo Spagni8-24/+4
9428d53 Strip redundant includes (hyc)
2015-12-21Strip redundant includeshyc8-24/+4
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-18print top block hash in daemon diff commandmoneromooo-monero1-0/+1
and add top block hash in get_info RPC
2015-12-15Replace tabs with two spaces for consistency with rest of codebasewarptangent2-17/+17
Remove trailing whitespace in same files.
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-12-09Merge pull request #527Riccardo Spagni2-55/+3
336b375 Register daemon command line arguments to core if they're used in core (moneromooo-monero)
2015-12-08Register daemon command line arguments to core if they're used in coremoneromooo-monero2-55/+3
This fixes coretests, which does not register daemon specific arguments, but uses core, which uses those arguments. Also gets rid of an unwanted dependency on daemon code from core.
2015-12-07daemon: add mining status to the status commandmoneromooo-monero1-8/+22
2015-11-30Merge pull request #503Riccardo Spagni1-2/+2
55e5a33 rpc: pass current block target in rpc (moneromooo-monero)
2015-11-26rpc: pass current block target in rpcmoneromooo-monero1-2/+2
This fixes the hash rate being wrong on testnet after the switch to 2 minute blocks
2015-11-26add RPC calls and commands to get/set bansmoneromooo-monero5-0/+162
2015-11-23daemon: fix blockchain height display not updating after syncmoneromooo-monero1-1/+1
2015-11-21disable time-stats by default, tweak fast-block-sync descriptionRiccardo Spagni1-2/+2
2015-11-21Fix startup crash when using a locale boost does not likemoneromooo-monero1-0/+2
There are various locale related bugs in various versions of boost, where exceptions are thrown in boost::filesystem APIs when the current locale is not to boost's liking. It's not clear what "not to boost's liking" means in detail, though "en" and "en_US.UTF-8" are not to its liking. Fix it by running a test function that's known to throw in such a case, and resetting LANG and LC_ALL to C if an exception is thrown. In simplewallet, the locale is queried before that so the correct translations will still be used.
2015-10-28rpc: fix start_mining and status RPC crashesmoneromooo-monero3-6/+8
They check whether they're running on testnet by accessing the m_rpc_server object, which does not exist when in RPC mode. Also, fix hard_fork_info being called with the wrong API.
2015-10-26Merge pull request #448Riccardo Spagni1-7/+9
06c65cb rpc: fix hard_fork_info RPC (moneromooo-monero) 6f5c129 rpc: fix a few commands not working as command line (moneromooo-monero)
2015-10-26rpc: fix hard_fork_info RPCmoneromooo-monero1-4/+6
I had never tested it, obviously
2015-10-26rpc: fix a few commands not working as command linemoneromooo-monero1-3/+3
The method name to the "json_rpc" commands are names, not part of URLs.
2015-10-25daemon: add a status commandmoneromooo-monero5-0/+71
Displays current block height and target, net hash, hard fork basic info, and connections. Useful as a basic user friendly "what's going on here" command.
2015-10-13core_rpc_server: add a getblock RPC command, and fix print_blockmoneromooo-monero1-8/+10
2015-10-04build: default to Berkeley DB for 32 bit and ARMmoneromooo-monero1-1/+1
2015-09-19Add an RPC call and daemon command to get info on hard fork votingmoneromooo-monero5-0/+62
2015-08-11Add a is_key_image_spent daemon command and RPC callmoneromooo-monero5-0/+65
2015-08-09daemon: omit extra set of <> in error messagemoneromooo-monero1-1/+1
The string conversion already adds them
2015-08-09daemon: print a decoded tx in print_txmoneromooo-monero1-0/+18
in addition to the raw hex representation
2015-08-09daemon: fix print_tx not find transactionsmoneromooo-monero1-0/+1
It was not even trying to
2015-07-15Fixed binary size issue due to embedded checkpoint data.NoodleDoodleNoodleDoodleNoodleDoodleNoo1-2/+6
Fixed OSX compilation issues due to random lmdb resize points. Fixed infinite loop bug when calling core::get_block_template(..).