summaryrefslogtreecommitdiff
path: root/src/cryptonote_core
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #779Riccardo Spagni2016-04-021-5/+1
|\ | | | | | | daac1cc core: remove the block reward accumulation loop (moneromooo-monero)
| * core: remove the block reward accumulation loopmoneromooo-monero2016-04-011-5/+1
| | | | | | | | | | | | | | | | This can generate non decomposed outputs for very large block rewards (or not so large ones if a miner decides to not quantize the block rewards). Out of an abundance of caution, we refuse to generate those. They are still accepted by the consensus code, however.
* | Merge pull request #767Riccardo Spagni2016-04-025-11/+39
|\ \ | | | | | | | | | 24b3e90 Convey tx verification failure reasons to the RPC client (moneromooo-monero)
| * | Convey tx verification failure reasons to the RPC clientmoneromooo-monero2016-03-275-11/+39
| |/ | | | | | | | | | | | | | | | | | | | | This allows appropriate action to be taken, like displaying the reason to the user. Do just that in simplewallet, which should help a lot in determining why users fail to send. Also make it so a tx which is accepted but not relayed is seen as a success rather than a failure.
* | Merge pull request #764Riccardo Spagni2016-04-022-74/+374
|\ \ | | | | | | | | | | | | f746c9d minor corrections/clarifications (Thomas Winget) c6bb201 Transaction pool documentation (and some cleanup) (Thomas Winget)
| * | minor corrections/clarificationsThomas Winget2016-03-302-4/+6
| | |
| * | Transaction pool documentation (and some cleanup)Thomas Winget2016-03-242-74/+372
| | | | | | | | | | | | | | | | | | | | | tx_pool.h doxygen documentation completed. Many notes made on areas for improvement, be that functionality or code clarity. Commented code and unused code removed.
* | | Merge pull request #765Riccardo Spagni2016-03-272-0/+14
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | d5d46e6 tests: obligatory hardfork unit build fix after interface change (moneromooo-monero) 25672d3 wallet: pass std::function by const ref, not value (moneromooo-monero) 0be6e08 wallet: do not leak owned amounts to the daemon unless --trusted-daemon (moneromooo-monero) 12146da wallet: change sweep_dust to sweep_unmixable (moneromooo-monero) 600a3cf New RPC and daemon command to get output histogram (moneromooo-monero) f9a2fd2 wallet: handle rare case where fee adjustment can bump to the next kB (moneromooo-monero) f26651a wallet: factor fee calculation (moneromooo-monero)
| * | New RPC and daemon command to get output histogrammoneromooo-monero2016-03-262-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | blockchain: for v3, require miner tx to have well behaved outsmoneromooo-monero2016-03-252-3/+13
| | | | | | | | | | | | | | | | | | This was meant to go in v2, but the miner tx slipped through the cracks as it doesn't go through the main tx verification since it doesn't get added to the pool.
* | | core: fix miner tx block reward with feesmoneromooo-monero2016-03-251-8/+7
|/ /
* | Merge pull request #749Riccardo Spagni2016-03-2512-431/+1965
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-2512-1965/+431
| | | | | | | | | | This reverts commit 7fa63a82a1c3a0243f6757c1689855ed3ca61695, reversing changes made to cb6be986c36b78eddb4b7f16e9ad440af8567dc4.
* | Merge pull request #749Riccardo Spagni2016-03-2512-431/+1965
|\| | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * remove defunct code from cryptonote::coreThomas Winget2016-03-242-22/+0
| |
| * cryptonote::core doxygen documentationThomas Winget2016-03-242-26/+617
| |
| * doxygen documentation for difficulty functionsThomas Winget2016-03-242-2/+16
| |
| * Move checkpoint functions into checkpoints classThomas Winget2016-03-248-358/+327
| | | | | | | | | | | | | | | | | | 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.
| * doxygen documentation for checkpoints.{h,cpp}Thomas Winget2016-03-222-6/+99
| | | | | | | | | | | | | | | | All functions in src/cryptonote_core/checkpoints.h are now documented in doxygen style. checkpoints.cpp has been reviewed, one function has been marked for discussion on correctness.
| * Remove unnecessary or defunct codeThomas Winget2016-03-222-22/+0
| |
| * Updated documentation for blockchain.*Thomas Winget2016-03-222-14/+925
| | | | | | | | | | | | | | | | All functions are now documented in doxygen format. Comments have been updated to reflect the current state of the code. Many areas for improvement in clarity and design have been noted, as well as cruft to be removed. These changes are not reflected in this commit both to allow time for comment and to keep commits organized by purpose.
* | blockchain: fix partial block reward detectionmoneromooo-monero2016-03-221-1/+1
|/
* Merge pull request #743Riccardo Spagni2016-03-211-1/+1
|\ | | | | | | a1c3829 also maybe do the block height this time, you know, just so that it actually works. (Riccardo Spagni)
| * also maybe do the block height this time, you know, just so that it actually ↵Riccardo Spagni2016-03-211-1/+1
| | | | | | | | works.
* | Merge pull request #742Riccardo Spagni2016-03-211-1/+1
|\| | | | | | | 23d1538 also update the timestamp for the hard fork (Riccardo Spagni)
| * also update the timestamp for the hard forkRiccardo Spagni2016-03-211-1/+1
| |
* | Merge pull request #741Riccardo Spagni2016-03-211-0/+3
|\| | | | | | | eda51a0 set fork date for September, add hyc's GPG key, remove aabramov's (Riccardo Spagni)
| * set fork date for September, add hyc's GPG key, remove aabramov'sRiccardo Spagni2016-03-211-0/+3
| |
* | Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-215-6/+2
|/ | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
* Print stack trace upon exceptionsmoneromooo-monero2016-03-195-2/+6
| | | | Useful for debugging users' logs
* Fix issue #706Howard Chu2016-03-191-0/+1
|
* Use boost::thread instead of std::threadHoward Chu2016-03-111-3/+3
| | | | and all other associated IPC
* Blockchain: Omit verbose time stats messages by defaultwarptangent2016-03-031-1/+1
| | | | | | | | | This is already the default for the daemon, but by checking a command line argument and calling a Blockchain member function setter. Initialize the variable to false so it's not dependent on an external command-line argument check. This allows utilities like blockchain_import to have a reasonable default without code changes.
* Merge pull request #688Riccardo Spagni2016-02-292-1/+10
|\ | | | | | | | | c2a1fee simplewallet: prompt for private keys when generating wallets (moneromooo-monero) 4513b4c simplewallet: add a new --restore-from-keys option (moneromooo-monero)
| * simplewallet: add a new --restore-from-keys optionmoneromooo-monero2016-02-222-1/+10
| | | | | | | | | | | | | | It is similar in use to --restore-from-view-key, but also expects a spend private key. Requested by luigi1112, and useful to restore MyMonero wallets.
| * core: check whether an update is needed straight awaymoneromooo-monero2016-02-171-1/+1
| |
| * core: print "update needed" hard fork notifications in redmoneromooo-monero2016-02-171-2/+2
| |
* | Wrap some more actions in a larger read txnHoward Chu2016-02-231-11/+25
| |
* | read txn/cursor stuffHoward Chu2016-02-232-1/+14
| | | | | | | | Could wrap more later.
* | core: check whether an update is needed straight awaymoneromooo-monero2016-02-231-1/+1
| |
* | core: print "update needed" hard fork notifications in redmoneromooo-monero2016-02-231-2/+2
|/
* hardfork: add a default fork entry for v1 if none existmoneromooo-monero2016-02-081-0/+5
| | | | To avoid special cases
* blockchain: initialize m_hardfork to NULLmoneromooo-monero2016-02-081-1/+1
| | | | It can now be set by some other code, and is thus tested
* core_tests: add tests for hard fork behaviors (MRL-0004)moneromooo-monero2016-02-084-12/+26
| | | | | | We also replace the --fakechain option with an optional structure containing details about configuration for the core/blockchain, for test purposes. This seems more future friendly.
* blockchain: reset hardfork object when resetting blockchainmoneromooo-monero2016-02-081-0/+1
| | | | | Not doing so will prevent the new genesis block from being reset if a switch past v1 had occured already.
* Blockchain: Update comments on removing blockwarptangent2016-02-081-0/+5
|
* Move HardFork DB update to BlockchainDB::add_block()warptangent2016-02-081-3/+0
| | | | | | | Ensures the database is consistent. Also simplifes blockchain_import in that verify mode off has less to work around.
* Make HardFork object available to BlockchainDB and derived DB implementationswarptangent2016-02-081-0/+2
| | | | | | This will later allow the HardFork object's DB update functions to be called when the DB transaction that persists across block add/remove is open.
* Blockchain: Optionally pass in HardFork objectwarptangent2016-02-082-4/+21
|
* Merge pull request #643Riccardo Spagni2016-02-081-8/+10
|\ | | | | | | 05bfb51 core: move the db lock to the data directory (moneromooo-monero)