aboutsummaryrefslogtreecommitdiff
path: root/src/daemon (follow)
AgeCommit message (Collapse)AuthorFilesLines
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-10-08Revert "Merge pull request #4472"Riccardo Spagni2-10/+19
This reverts commit 79d46c4d551a9b1261801960095bf4d24967211a, reversing changes made to c9fc61dbb56cca442c775faa2554a7460879b637.
2018-10-04blocks: use auto-generated .c files instead of 'LD -r -b binary'xiphon2-19/+10
2018-10-02Merge pull request #4485Riccardo Spagni1-5/+15
5ec929fb daemon: do not display uptime when not known (moneromooo-monero)
2018-10-02daemon: do not display uptime when not knownmoneromooo-monero1-5/+15
2018-09-29Fix 32bit depends buildsTheCharlatan1-0/+2
Add architecture flags when cmake invokes gcc manually. Add 32bit to Travis.
2018-09-18Merge pull request #4341Riccardo Spagni1-0/+2
e6117282 daemon: request no PoW hashes we don't need when asking for blocks (moneromooo-monero)
2018-09-18Merge pull request #4317Riccardo Spagni1-2/+5
76f95f05 rpc: allow to pass RPC login via RPC_LOGIN env var (Dusan Klinec)
2018-09-18Merge pull request #3430Riccardo Spagni1-1/+3
42397359 Fixup 32bit arm build (TheCharlatan) a06d2581 Fix Windows build (TheCharlatan) ecaf5b3f Add libsodium to the packages, the arm build was complaining about it. (TheCharlatan) cbbf4d24 Adapt translations to upstream changes (TheCharlatan) db571546 Updated pcsc url (TheCharlatan) f0ba19fd Add lrelease to the depends (TheCharlatan) cfb30462 Add Miniupnp submodule (TheCharlatan) 5f7da005 Unbound is now a submodule. Adapt depends for this. (TheCharlatan) d6b9bdd3 Update readmes to reflect the usage of depends (TheCharlatan) 56b6e41e Add support for apple and arm building (TheCharlatan) 29311fd1 Disable stack unwinding for mingw32 depends build. (TheCharlatan) 8db3d573 Modify depends for monero's dependencies (TheCharlatan) 0806a23a Initial depends addition (TheCharlatan)
2018-09-11v8: per byte fee, pad bulletproofs, fixed 11 ring sizemoneromooo-monero1-12/+15
2018-09-10Add support for apple and arm buildingTheCharlatan1-1/+3
Add pcsc-lite to linux builds Fixup windows icu4c linking with depends, the static libraries have an 's' appended to them Compiling depends arm-linux-gnueabihf will allow you to compile armv6zk monero binaries
2018-09-05daemon: request no PoW hashes we don't need when asking for blocksmoneromooo-monero1-0/+2
This fixes the horrendous slowdown in bc_dyn_stats
2018-08-31rpc: allow to pass RPC login via RPC_LOGIN env varDusan Klinec1-2/+5
- passing by parameter is insecure as it is shown in the process list
2018-07-24daemon.print_bc: don't print difficulty twicestoffu1-1/+1
2018-07-19Merge pull request #4075luigi11111-1/+0
438d52d remove epee from link lines where it's redundant (moneromooo-monero)
2018-07-19Merge pull request #4029luigi11111-1/+3
bd9e4e3 daemon: show a bit more info with print_block (stoffu)
2018-07-19Merge pull request #3973luigi11114-10/+31
50af357 alt_chain_info can now give more info about a particular alt chain (moneromooo-monero)
2018-07-19Merge pull request #3854luigi11112-3/+5
149da42 db_lmdb: enable batch transactions by default (stoffu) 34cb6b4 add --regtest and --fixed-difficulty for regression testing (vicsn) 9e1403e update get_info RPC and bump RPC version (vicsn) 207b66e first new functional tests (vicsn)
2018-06-29add --regtest and --fixed-difficulty for regression testingvictorsintnicolaas2-3/+5
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-06-28remove epee from link lines where it's redundantmoneromooo-monero1-1/+0
For some reason, this confuses and kills ASAN on startup as it thinks const uint8_t ipv4_network_address::ID is defined multiple times.
2018-06-26alt_chain_info can now give more info about a particular alt chainmoneromooo-monero4-10/+31
2018-06-20Merge pull request #3897luigi11112-1/+7
63d0ab0 mlog: --max-log-files to set the max number of rotated log files (stoffu)
2018-06-20Merge pull request #3888luigi11111-0/+3
1aae39d daemon: fix readline interfering with std::cerr usage (moneromooo-monero)
2018-06-20Merge pull request #3757luigi11111-2/+17
6f9260e handle optional miner params better (cryptochangements34)
2018-06-20daemon: show a bit more info with print_blockstoffu1-1/+3
2018-06-19Merge pull request #3851luigi11111-1/+1
a87980f fix build with GCC 8.1.0 (moneromooo-monero)
2018-06-16Merge pull request #3725luigi11111-1/+1
9cc0d42 connection_context: remove state_ prefix from state names (moneromooo-monero) d9d002c daemon: print peer state in sync_info (moneromooo-monero)
2018-06-13mlog: --max-log-files to set the max number of rotated log filesstoffu2-1/+7
2018-05-31Merge pull request #3583luigi11111-1/+1
372ffeb Add a space in mining to testnet/stagenet string (cryptochangements34)
2018-05-31Merge pull request #3561luigi11111-0/+3
353e9c0 Core RPC: optionally add POW hash to block_header_response (stoffu)
2018-05-31daemon: fix readline interfering with std::cerr usagemoneromooo-monero1-0/+3
Once readline is initialized, std::cerr's operator<< will output a 0xff byte for unknown reasons.
2018-05-26fix build with GCC 8.1.0moneromooo-monero1-1/+1
2018-05-19daemon: request unpruned transactions for print_txmoneromooo-monero1-0/+1
instead of uninitialized
2018-05-06handle optional miner params bettercryptochangements341-2/+17
2018-04-28daemon: print peer state in sync_infomoneromooo-monero1-1/+1
It's often relevant
2018-04-25Fix broken interactive daemon 'limit' commands plus RPC callsrbrunner72-12/+6
2018-04-21Merge pull request #3636Riccardo Spagni1-23/+22
998c1461 daemon: read config file before reading any other args (stoffu)
2018-04-14daemon: read config file before reading any other argsstoffu1-23/+22
2018-04-13daemon: add a version commandmoneromooo-monero3-0/+14
2018-04-08Add a space in mining to testnet/stagenet stringcryptochangements341-1/+1
2018-04-05Core RPC: optionally add POW hash to block_header_responsestoffu1-0/+3
2018-03-27fix lambda compile error on openbsdmoneromooo-monero1-3/+3
2018-03-15Fix typos in various filesDimitris Apostolou1-1/+1
2018-03-05Stagenetstoffu8-40/+74
2018-02-16options: add testnet option dependencieswhythat2-13/+27
2018-02-16options: remove testnet-* optionswhythat4-32/+10
2018-02-16Merge pull request #3181Riccardo Spagni2-3/+3
e3f0980a daemon: don't drop RPC with busy error when running offline (moneromooo-monero)
2018-02-16Merge pull request #3165Riccardo Spagni1-4/+21
7539603f Bootstrap daemon (stoffu)
2018-02-16Merge pull request #3163Riccardo Spagni5-3/+62
628b78ae Fix in_peers/out_peers RPC operations (Erik de Castro Lopo) ece9bcf5 rpc_client: Fix error handling (Erik de Castro Lopo) 8f30350d Fix method name in invoke_http_json_rpc (Erik de Castro Lopo) 32c0f908 Allow the number of incoming connections to be limited (Erik de Castro Lopo) d609a2c1 Rename delete_connections to delete_out_connections (Erik de Castro Lopo) b927c0fc Rename connections_count to max_out_connection_count (Erik de Castro Lopo)
2018-02-16Merge pull request #3161Riccardo Spagni1-1/+1
78a2e15b daemon: exit with 0 when successful (moneromooo-monero)
2018-02-16Merge pull request #3094Riccardo Spagni1-9/+9
a85dbb3f Fixed typos and wording tweaks (Maxithi)
2018-01-30Bootstrap daemonstoffu1-4/+21
2018-01-29Fixed typos and wording tweaksMaxithi1-9/+9
2018-01-29Fix in_peers/out_peers RPC operationsErik de Castro Lopo1-2/+2
Original implementations could never have worked.
2018-01-29Allow the number of incoming connections to be limitedErik de Castro Lopo5-2/+61
It was already possible to limit outgoing connections. One might want to do this on home network connections with high bandwidth but low usage caps.
2018-01-26Update 2018 copyrightxmr-eric17-17/+17
2018-01-25Merge pull request #3011Riccardo Spagni1-1/+1
619bb723 daemon+simplewallet: given an unknown command, show it (stoffu)
2018-01-25daemon: don't drop RPC with busy error when running offlinemoneromooo-monero2-3/+3
2018-01-20daemon: exit with 0 when successfulmoneromooo-monero1-1/+1
2018-01-11Keep readline optionalJethro Grassie1-1/+1
2017-12-31Add misc hardening flags to the cmake machinerymoneromooo-monero1-2/+2
See https://wiki.debian.org/Hardening#User_Space
2017-12-28Merge pull request #2946Riccardo Spagni1-1/+1
1a686bf8 daemon: print num txes in print_bc (moneromooo-monero)
2017-12-28Merge pull request #2945Riccardo Spagni4-5/+2
9e07ccf1 daemon: remove some superfluous includes (moneromooo-monero)
2017-12-27daemon+simplewallet: given an unknown command, show itstoffu1-1/+1
2017-12-18use const refs in for loops for non tiny typesmoneromooo-monero1-1/+1
2017-12-18catch const exceptionsmoneromooo-monero1-3/+3
2017-12-17daemon: print num txes in print_bcmoneromooo-monero1-1/+1
2017-12-17Merge pull request #2877Riccardo Spagni3-2/+15
43f5269f Wallets now do not depend on the daemon rpc lib (moneromooo-monero) bb89ae8b move connection_basic and network_throttle from src/p2p to epee (moneromooo-monero) 4abf25f3 cryptonote_core does not depend on p2p anymore (moneromooo-monero)
2017-12-17daemon: remove some superfluous includesmoneromooo-monero4-5/+2
2017-12-16cryptonote_core does not depend on p2p anymoremoneromooo-monero3-2/+15
As a followon side effect, this makes a lot of inline code included only in particular cpp files (and instanciated when necessary.
2017-12-16move includes around to lessen overall loadmoneromooo-monero4-2/+3
2017-12-02Merge pull request #2836Riccardo Spagni2-25/+43
23b6f685 RPC: allow binding of restricted port in addition to core port (Tim L)
2017-11-26Added command descriptionsCifrado2-47/+90
2017-11-25Merge pull request #2807Riccardo Spagni1-1/+1
61712384 daemon & simplewallet: don't set max-concurrency when unspecified (stoffu)
2017-11-20Merge pull request #2783Riccardo Spagni1-0/+4
416a7933 Print msg upon success for commands that were silent (binaryFate)
2017-11-17RPC: allow binding of restricted port in addition to core portTim L2-25/+43
2017-11-16daemon & simplewallet: don't set max-concurrency when unspecifiedstoffu1-1/+1
2017-11-14Merge pull request #2736Riccardo Spagni3-7/+12
0d9c0db9 Do not build against epee_readline if it was not built (Howard Chu) 178014c9 split off readline code into epee_readline (moneromooo-monero) a9e14a19 link against readline only for monerod and wallet-wallet-{rpc,cli} (moneromooo-monero) 437421ce wallet: move some scoped_message_writer calls from the libs (moneromooo-monero) e89994e9 wallet: rejig to avoid prompting in wallet2 (moneromooo-monero) ec5135e5 move input_line from command_line to simplewallet (moneromooo-monero) 082db75f move cryptonote command line options to cryptonote_core (moneromooo-monero)
2017-11-14Do not build against epee_readline if it was not builtHoward Chu1-1/+1
2017-11-14split off readline code into epee_readlinemoneromooo-monero1-0/+2
2017-11-14link against readline only for monerod and wallet-wallet-{rpc,cli}moneromooo-monero1-0/+1
2017-11-14wallet: rejig to avoid prompting in wallet2moneromooo-monero1-1/+6
wallet2 is a library, and should not prompt for stdin. Instead, pass a function so simplewallet can prompt on stdin, and a GUI might display a window, etc.
2017-11-14move cryptonote command line options to cryptonote_coremoneromooo-monero2-6/+3
Those have no reason to be in a generic module
2017-11-14remove "using namespace std" from headersmoneromooo-monero1-1/+1
It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
2017-11-14Merge pull request #2615Riccardo Spagni1-3/+3
10013e94 Protect node privacy by proper filtering in restricted-mode RPC answers (binaryFate)
2017-11-10Print msg upon success for commands that were silentbinaryFate1-0/+4
2017-11-08Protect node privacy by proper filtering in restricted-mode RPC answersbinaryFate1-3/+3
This patch allows to filter out sensitive information for queries that rely on the pool state, when running in restricted mode. This filtering is only applied to data sent back to RPC queries. Results of inline commands typed locally in the daemon are not affected. In practice, when running with `--restricted-rpc`: * get_transaction_pool will list relayed transactions with the fields "last relayed time" and "received time" set to zero. * get_transaction_pool will not list transaction that have do_not_relay set to true, and will not list key images that are used only for such transactions * get_transaction_pool_hashes.bin will not list such transaction * get_transaction_pool_stats will not count such transactions in any of the aggregated values that are computed The implementation does not make filtering the default, so developers should be mindful of this if they add new RPC functionality. Fixes #2590.
2017-11-06track double spending in the txpoolmoneromooo-monero1-1/+3
Transactions in the txpool are marked when another transaction is seen double spending one or more of its inputs. This is then exposed wherever appropriate. Note that being marked with this "double spend seen" flag does NOT mean this transaction IS a double spend and will never be mined: it just means that the network has seen at least another transaction spending at least one of the same inputs, so care should be taken to wait for a few confirmations before acting upon that transaction (ie, mostly of use for merchants wanting to accept unconfirmed transactions).
2017-11-06Merge pull request #2591Riccardo Spagni4-22/+43
93ad1f87 Fix #2559: more flexible print_tx daemon command (binaryFate)
2017-10-15Merge pull request #2599Riccardo Spagni3-11/+26
b776c725 daemon: use @N syntax to output_histogram for specific amounts (moneromooo-monero)
2017-10-15Merge pull request #2589Riccardo Spagni1-2/+2
8f0cea63 add a command_line function to check for defaulted options (moneromooo-monero)
2017-10-15Merge pull request #2573Riccardo Spagni1-6/+13
7e7acdc3 daemon: catch out of range exceptions too when calling stoll/stoi (moneromooo-monero)
2017-10-15Merge pull request #2568Riccardo Spagni1-1/+1
7130cf0c Add tools::on_startup, and warn about glibc 2.25 bug if found (moneromooo-monero)
2017-10-14Add tools::on_startup, and warn about glibc 2.25 bug if foundmoneromooo-monero1-1/+1
https://sourceware.org/bugzilla/show_bug.cgi?id=21778
2017-10-08Fix #2559: more flexible print_tx daemon commandbinaryFate4-22/+43
2017-10-07daemon: use @N syntax to output_histogram for specific amountsmoneromooo-monero3-11/+26
Makes debugging tx verification easier
2017-10-07Subaddresseskenshi842-9/+12
2017-10-06add a command_line function to check for defaulted optionsmoneromooo-monero1-2/+2
2017-10-03daemon: catch out of range exceptions too when calling stoll/stoimoneromooo-monero1-6/+13
And any other exception, just to be safe
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