aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain_storage.cpp
Commit message (Collapse)AuthorAgeFilesLines
* remove original Cryptonote blockchain_storage blockchain formatmoneromooo-monero2016-08-281-1952/+0
|
* Merge pull request #749Riccardo Spagni2016-03-251-4/+4
| | | | | | | | | | | | | 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-4/+4
| | | | | This reverts commit 7fa63a82a1c3a0243f6757c1689855ed3ca61695, reversing changes made to cb6be986c36b78eddb4b7f16e9ad440af8567dc4.
* Move checkpoint functions into checkpoints classThomas Winget2016-03-241-4/+4
| | | | | | | | | 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.
* new flush_txpool command, and associated RPC callmoneromooo-monero2016-01-301-0/+19
| | | | | It can flush a particular tx, or the whole pool (the RPC command can flush a list of transactions too)
* Fix V1/V2 use of hard fork related parametersmoneromooo-monero2016-01-291-5/+5
| | | | | Some of it uses hardcoded height, which will need some thinking for next (voted upon) fork.
* updated copyright yearRiccardo Spagni2015-12-311-1/+1
|
* Fix typowarptangent2015-12-151-1/+1
|
* Replace tabs with two spaces for consistency with rest of codebasewarptangent2015-12-151-44/+44
| | | | Remove trailing whitespace in same files.
* Relay transactions when they linger too long in the poolmoneromooo-monero2015-11-211-4/+5
| | | | | | | | The last relayed time of a transaction is maintained, and transactions will be relayed again if they are still in the pool after a certain amount of time, which increases with the transaction's age. All such transactions are resent, whether or not they originated on the local node.
* More changes for 2-min blocksJavier Smooth2015-11-131-3/+3
| | | | | | Use the correct block time for realtime fuzz on locktime Use the correct block time to calculate next_difficulty on alt chains (will not work as-is with voting) Lock unit tests to original block time for now
* Adjust difficulty target (2 min) and full reward zone (60 kbytes) for block ↵Javier Smooth2015-11-131-1/+1
| | | | version 2
* Build fixes for the old blockchain_storage versionmoneromooo-monero2015-10-261-4/+6
|
* Merge pull request #444Riccardo Spagni2015-10-261-1/+1
|\ | | | | | | ecbb732 Fix leak on real output when using a very recent output (moneromooo-monero)
| * Fix leak on real output when using a very recent outputmoneromooo-monero2015-10-251-1/+1
| | | | | | | | | | | | | | | | The wallet and the daemon applied different height considerations when selecting outputs to use. This can leak information on which input in a ring signature is the real one. Found and originally fixed by smooth on Aeon.
* | Add functions to iterate through blocks, txes, outputs, key imagesmoneromooo-monero2015-10-251-0/+38
|/
* core: add consts where appropriatemoneromooo-monero2015-09-191-3/+3
|
* Merge BlockchainDB into upstreamThomas Winget2015-04-071-80/+70
|\
| * Merge upstream into blockchainThomas Winget2015-03-291-4/+7
| |\
| * \ Merge upstream updates into blockchain branchThomas Winget2015-03-251-2/+10
| |\ \
| * | | Add compile-time support for both db implementations: in-memory and LMDBwarptangent2015-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage: default is lmdb for blockchain branch: $ make release same as: $ DATABASE=lmdb make release for original in-memory implementation: $ DATABASE=memory make release
| * | | blockchain_storage: refactor genesis block creationmoneromooo-monero2015-01-041-15/+5
| | | | | | | | | | | | | | | | | | | | The existing assert is kept as it is stricter than the function's internal assert.
| * | | blockchain_storage: add consts where appropriatemoneromooo-monero2015-01-041-53/+53
| | | |
| * | | very, VERY primitive blockchain converterThomas Winget2015-01-041-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hard-coded config folder, hard-coded BlockchainDB subclass. Needs finessing, but should be testable this way. update for rebase (warptangent 2015-01-04) fix conflicts with upstream CMakeLists.txt files src/CMakeLists.txt (edit original commit) src/blockchain_converter/CMakeLists.txt (add)
* | | | handle unlikely rounding up after sqrtJavier Smooth2015-04-051-0/+3
| | | |
* | | | triangular distribution to choose recent outputs more often for mixinsJavier Smooth2015-04-051-1/+5
| | | |
* | | | Merge remote-tracking branch 'monero-official/master' into network-1.6-work1rfree2monero2015-04-011-6/+17
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge pull request #242Riccardo Spagni2015-03-261-4/+7
| |\ \ \ | | |_|/ | |/| | | | | | | | | | b43716c Do store transaction's blob size in transaction_chain_entry (Sergey Kazenyuk) 3be518f Use single get_transaction_hash to get both id and blob size (Sergey Kazenyuk)
| | * | Do store transaction's blob size in transaction_chain_entrySergey Kazenyuk2015-03-151-3/+4
| | | |
| | * | Use single get_transaction_hash to get both id and blob sizeSergey Kazenyuk2015-03-151-2/+4
| | | |
| * | | Merge upstream to daemonize changesThomas Winget2015-03-241-1/+8
| |\| | | | | | | | | | | | | | Preparation for PR
| | * | add comment about avoiding overflowsmooth2015-03-051-0/+6
| | | |
| | * | minimum subsidy for mining incentives, remove unused LEGACY_FEE definesmooth2015-03-041-1/+2
| | |/
| * / DNS checkpoint loading for testnet should now be correctThomas Winget2015-03-011-1/+2
| |/
* | 2014 network limit 1.2 +utils +toc -doc -drmonerorfree2monero2015-02-201-17/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new update of the pr with network limits more debug options: discarding downloaded blocks all or after given height. trying to trigger the locking errors. debug levels polished/tuned to sane values. debug/logging improved. warning: this pr should be correct code, but it could make an existing (in master version) locking error appear more often. it's a race on the list (map) of peers, e.g. between closing/deleting them versus working on them in net-limit sleep in sending chunk. the bug is not in this code/this pr, but in the master version. the locking problem of master will be fixed in other pr. problem is ub, and in practice is seems to usually cause program abort (tested on debian stable with updated gcc). see --help for option to add sleep to trigger the error faster.
* | 2014 network limit 1.1 +utils +toc -doc -drmonerorfree2monero2015-02-201-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update of the PR with network limits works very well for all speeds (but remember that low download speed can stop upload because we then slow down downloading of blockchain requests too) more debug options fixed pedantic warnings in our code should work again on Mac OS X and FreeBSD fixed warning about size_t tested on Debian, Ubuntu, Windows(testing now) TCP options and ToS (QoS) flag FIXED peer number limit FIXED some spikes in ingress/download FIXED problems when other up and down limit
* | 2014 network limit 1.0a +utils +toc -doc -drmonerorfree2monero2015-02-201-0/+26
|/ | | | | | | | | | commands and options for network limiting works very well e.g. for 50 KiB/sec up and down ToS (QoS) flag peer number limit TODO some spikes in ingress/download TODO problems when other up and down limit added "otshell utils" - simple logging (with colors, text files channels)
* year updated in licenseRiccardo Spagni2015-01-021-1/+1
|
* fixed checkpointing bugRiccardo Spagni2014-10-031-1/+1
|
* MoneroPulse log wording tweaksRiccardo Spagni2014-10-031-2/+2
|
* various changes to runtime checkpoint updatingThomas Winget2014-09-301-10/+43
| | | | | | | | | json checkpoints will be checked every 10 minutes, dns every 60. json checkpoints always enforced, dns still with flag. conflicting checkpoints is hard fail, but soft if dns enforce flag not set and dns checkpoints are wonky.
* Fixed segfault with checkpoints loadingThomas Winget2014-09-301-0/+6
| | | | | | Bounds checking on blockchain_storage' m_blocks.size() when validating against checkpoints. Also moved initial json & DNS checkpoints load to after blockchain init.
* DNS checkpoint updating added, and daemon flag to enforce themThomas Winget2014-09-301-6/+26
| | | | | | | | | | | | The daemon should now check for updated checkpoints from checkpoints.moneropulse.org as well as from the configured json file every ~1hr (and on launch). The daemon now has a flag to enable enforcing these checkpoints (rather than just printing a warning when they fail). TODO: an easily configurable list of DNS servers to check for checkpoints as opposed to the hard-coded "checkpoints.moneropulse.org"
* reload checkpoints file every ~hr and print if any failThomas Winget2014-09-301-0/+21
| | | | also some other minor bug squashing and code formatting
* Pass tx and nonce to genesis block constructorZachary Michaels2014-09-151-9/+23
|
* Add testnet flagZachary Michaels2014-09-151-6/+34
| | | | Source: cryptonotefoundation
* output rng fix from boolberryiamsmooth2014-09-121-2/+1
|
* a few more error messages moved to log level 1fluffypony2014-09-091-11/+11
|
* moved non-critical warnings and errors to log level 1fluffypony2014-09-091-49/+49
|
* fix checkpointsiamsmooth2014-09-061-1/+4
|