summaryrefslogtreecommitdiff
path: root/src/daemon
Commit message (Collapse)AuthorAgeFilesLines
* epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero2016-09-188-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.
* cmake: transitive deps and remove deprecated LINK_*redfish2016-09-181-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.
* daemon: log version when startingmoneromooo-monero2016-09-161-0/+3
| | | | Helps with investigating bug reports
* Merge pull request #1068Riccardo Spagni2016-09-151-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)
| * Add snap packaging.Casey Marshall2016-09-111-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.
* | Daemon: fix hashrate display in diff command outputiDunk54002016-09-101-1/+1
|/
* fix remaining bitmonero and simplewallet bitsRiccardo Spagni2016-09-031-2/+2
|
* rename Monero daemonRiccardo Spagni2016-09-031-1/+1
|
* Fix incorrect help usage for the threads option to start_miningQuanah Gibson-Mount2016-08-302-2/+2
|
* daemon: print time to next forkmoneromooo-monero2016-08-121-1/+23
|
* cmake,common: flag for stack traceredfish2016-07-271-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).
* daemon: fix ban seconds being misinterpreted as absolutemoneromooo-monero2016-07-101-3/+1
| | | | Absolute to relative conversion is already done by the callee.
* daemon: print exception errors when failing to parse config filemoneromooo-monero2016-06-301-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.
* Merge pull request #775Riccardo Spagni2016-06-191-0/+2
|\ | | | | | | | | e409e59 Print stack trace on exceptions (moneromooo-monero) ef4ff42 connection_basic: avoid gratuitous exception (moneromooo-monero)
| * Print stack trace on exceptionsmoneromooo-monero2016-04-281-0/+2
| | | | | | | | | | | | if libunwind is found. Useful for debugging logs.
* | add a --max-concurrency flagmoneromooo-monero2016-04-282-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.
* | Merge pull request #797Riccardo Spagni2016-04-141-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)
| * | rpc: print human readable time since received when printing poolmoneromooo-monero2016-04-051-11/+33
| |/
* / rpc: add pool/blockchain and block height results to gettransactionsmoneromooo-monero2016-04-091-3/+13
|/
* New RPC and daemon command to get output histogrammoneromooo-monero2016-03-265-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.
* Merge pull request #749Riccardo Spagni2016-03-251-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)
* Revert "Merge pull request #749"Riccardo Spagni2016-03-251-0/+1
| | | | | This reverts commit 7fa63a82a1c3a0243f6757c1689855ed3ca61695, reversing changes made to cb6be986c36b78eddb4b7f16e9ad440af8567dc4.
* Move checkpoint functions into checkpoints classThomas Winget2016-03-241-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.
* Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-217-11/+8
| | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
* Merge pull request #735Riccardo Spagni2016-03-201-1/+1
|\ | | | | | | d2aa427 rpc: fix print_tx in command line mode (moneromooo-monero)
| * rpc: fix print_tx in command line modemoneromooo-monero2016-03-191-1/+1
| | | | | | | | It was only filling the input in non rpc mode
* | Print stack trace upon exceptionsmoneromooo-monero2016-03-197-8/+11
|/ | | | Useful for debugging users' logs
* fix formatting error on bitmonero print_block returnMike C2016-03-141-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.
* move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero2016-02-222-3/+1
| | | | | This avoids the need to define that variable in every program which uses epee.
* daemon: remove leftover debug logmoneromooo-monero2016-02-051-1/+0
|
* Merge pull request #631Riccardo Spagni2016-01-311-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)
| * daemon: fix a few issues reported by valgrindmoneromooo-monero2016-01-301-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.
* | new flush_txpool command, and associated RPC callmoneromooo-monero2016-01-305-0/+57
|/ | | | | It can flush a particular tx, or the whole pool (the RPC command can flush a list of transactions too)
* add received time to print_pool and print_pool_shRiccardo Spagni2016-01-281-1/+3
|
* 'max limit of...' is redundant wording, rephrasebinaryFate2016-01-142-2/+2
|
* Print msg when successfully updating out_peersbinaryFate2016-01-141-0/+2
|
* daemon: fix status command when run from command linemoneromooo-monero2016-01-111-1/+1
|
* fixed conflictsRiccardo Spagni2016-01-031-2/+2
|\
| * Use CMAKE_LINKER, not hardcoded "ld"Howard Chu2016-01-031-2/+2
| |
* | daemon: fix ban length using wrong parametermoneromooo-monero2016-01-021-1/+1
|/
* update versionRiccardo Spagni2015-12-313-4/+4
|
* Nicer looking exit when blockchain.bin is foundmoneromooo-monero2015-12-312-3/+5
| | | | | Do not print the exception message, and write the important bit in red, since people will only read the last line otherwise.
* updated copyright yearRiccardo Spagni2015-12-3117-17/+17
|
* Merge pull request #552Riccardo Spagni2015-12-228-24/+4
|\ | | | | | | 9428d53 Strip redundant includes (hyc)
| * Strip redundant includeshyc2015-12-218-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.
* | print top block hash in daemon diff commandmoneromooo-monero2015-12-181-0/+1
| | | | | | | | and add top block hash in get_info RPC
* | Replace tabs with two spaces for consistency with rest of codebasewarptangent2015-12-152-17/+17
|/ | | | Remove trailing whitespace in same files.
* daemon: fix crash exiting with ^Cmoneromooo-monero2015-12-131-1/+1
| | | | | We need to stop the p2p layer, which causes the rest to shutdown gracefully. Hitting ^C was still going through another path.
* Merge pull request #527Riccardo Spagni2015-12-092-55/+3
|\ | | | | | | 336b375 Register daemon command line arguments to core if they're used in core (moneromooo-monero)
| * Register daemon command line arguments to core if they're used in coremoneromooo-monero2015-12-082-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.