summaryrefslogtreecommitdiff
path: root/src/daemon
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | daemon: add mining status to the status commandmoneromooo-monero2015-12-071-8/+22
|/
* Merge pull request #503Riccardo Spagni2015-11-301-2/+2
|\ | | | | | | 55e5a33 rpc: pass current block target in rpc (moneromooo-monero)
| * rpc: pass current block target in rpcmoneromooo-monero2015-11-261-2/+2
| | | | | | | | | | This fixes the hash rate being wrong on testnet after the switch to 2 minute blocks
* | add RPC calls and commands to get/set bansmoneromooo-monero2015-11-265-0/+162
|/
* daemon: fix blockchain height display not updating after syncmoneromooo-monero2015-11-231-1/+1
|
* disable time-stats by default, tweak fast-block-sync descriptionRiccardo Spagni2015-11-211-2/+2
|
* Fix startup crash when using a locale boost does not likemoneromooo-monero2015-11-211-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.
* rpc: fix start_mining and status RPC crashesmoneromooo-monero2015-10-283-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.
* Merge pull request #448Riccardo Spagni2015-10-261-7/+9
|\ | | | | | | | | 06c65cb rpc: fix hard_fork_info RPC (moneromooo-monero) 6f5c129 rpc: fix a few commands not working as command line (moneromooo-monero)
| * rpc: fix hard_fork_info RPCmoneromooo-monero2015-10-261-4/+6
| | | | | | | | I had never tested it, obviously
| * rpc: fix a few commands not working as command linemoneromooo-monero2015-10-261-3/+3
| | | | | | | | | | The method name to the "json_rpc" commands are names, not part of URLs.
* | daemon: add a status commandmoneromooo-monero2015-10-255-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.
* core_rpc_server: add a getblock RPC command, and fix print_blockmoneromooo-monero2015-10-131-8/+10
|
* build: default to Berkeley DB for 32 bit and ARMmoneromooo-monero2015-10-041-1/+1
|
* Add an RPC call and daemon command to get info on hard fork votingmoneromooo-monero2015-09-195-0/+62
|
* Add a is_key_image_spent daemon command and RPC callmoneromooo-monero2015-08-115-0/+65
|
* daemon: omit extra set of <> in error messagemoneromooo-monero2015-08-091-1/+1
| | | | The string conversion already adds them
* daemon: print a decoded tx in print_txmoneromooo-monero2015-08-091-0/+18
| | | | in addition to the raw hex representation
* daemon: fix print_tx not find transactionsmoneromooo-monero2015-08-091-0/+1
| | | | It was not even trying to