summaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
* update checkpoints.dat hashRiccardo Spagni2019-07-181-1/+1
|
* blockchain: silence an error getting blocks for pruned nodesmoneromooo-monero2019-06-161-4/+8
| | | | | This happens often when a pre-pruning node asks a pruned node for data it does not have
* prep for 0.14.1 releaseRiccardo Spagni2019-06-131-1/+1
|
* Merge pull request #5572Riccardo Spagni2019-06-011-12/+19
|\ | | | | | | | | a663ccba blockchain: do not try to pop blocks down to the genesis block (moneromooo-monero) 8f2a99d8 core: do not commit half constructed batch db txn (moneromooo-monero)
| * blockchain: do not try to pop blocks down to the genesis blockmoneromooo-monero2019-05-261-0/+3
| |
| * core: do not commit half constructed batch db txnmoneromooo-monero2019-05-251-12/+16
| |
* | Fix #5553Howard Chu2019-05-191-1/+2
|/ | | | Make sure the tip hash still matches the cached block
* Merge pull request #5510Riccardo Spagni2019-05-071-2/+2
|\ | | | | | | e9809382 fix wide difficulty conversion with some versions of boost (moneromooo-monero)
| * fix wide difficulty conversion with some versions of boostmoneromooo-monero2019-05-011-2/+2
| |
* | blockchain: keep a rolling long term block weight medianmoneromooo-monero2019-05-021-27/+29
|/
* Merge pull request #5448Riccardo Spagni2019-04-161-5/+13
|\ | | | | | | | | d009f6dd rpc: fix get_block_hashes.bin from wallet on pruned blockchain (moneromooo-monero) bb0ef5b1 blockchain: lock the blockchain while pruning (moneromooo-monero)
| * rpc: fix get_block_hashes.bin from wallet on pruned blockchainmoneromooo-monero2019-04-151-5/+9
| | | | | | | | We want to get all blocks here, even pruned ones
| * blockchain: lock the blockchain while pruningmoneromooo-monero2019-04-151-0/+4
| |
* | Merge pull request #5414Riccardo Spagni2019-04-161-1/+0
|\ \ | | | | | | | | | | | | | | | | | | e9fac29a unit_tests/long_term_block_weight: some tweaks that seem to make more sense (stoffu) 467f4c7e tests/block_weight: use integer division when computing median (stoffu) 815d08dc tests/block_weight: remove unused MULTIPLIER_SMALL (stoffu) 661f1fb8 blockchain: remove unused calc of short_term_constraint (stoffu)
| * | blockchain: remove unused calc of short_term_constraintstoffu2019-04-091-1/+0
| | |
* | | blockchain_db: fix db txn ending too earlymoneromooo-monero2019-04-141-29/+23
| |/ |/| | | | | | | | | | | | | | | | | The db txn in add_block ending caused the entire overarching batch txn to stop. Also add a new guard class so a db txn can be stopped in the face of exceptions. Also use a read only db txn in init when the db itself is read only, and do not save the max tx size in that case.
* | functional_tests: add more blockchain related testsmoneromooo-monero2019-04-111-61/+136
| | | | | | | | | | Related to emission, reorgs, getting tx data back, output distribution and histogram
* | Merge pull request #5380Riccardo Spagni2019-04-111-0/+2
|\ \ | | | | | | | | | | | | | | | 113e4877 blockchain_stats: fix sign in formatting function (moneromooo-monero) adaea3ea various: remove unused variables (moneromooo-monero) 631ef00e blockchain: some debug info when adding txes-from-block fails (moneromooo-monero)
| * | blockchain: some debug info when adding txes-from-block failsmoneromooo-monero2019-04-011-0/+2
| | |
* | | Merge pull request #5378Riccardo Spagni2019-04-111-6/+0
|\ \ \ | | | | | | | | | | | | eda2661a Allow pruning before v10 (moneromooo-monero)
| * | | Allow pruning before v10moneromooo-monero2019-04-011-6/+0
| | | | | | | | | | | | | | | | | | | | This check is now not needed anymore, and would prevent people from using --prune-blockchain when starting a new sync
* | | | Merge pull request #5373Riccardo Spagni2019-04-111-2/+4
|\ \ \ \ | | | | | | | | | | | | | | | aff80e70 blockchain: fix returned height in create_block_template (moneromooo-monero)
| * | | | blockchain: fix returned height in create_block_templatemoneromooo-monero2019-03-301-2/+4
| |/ / / | | | | | | | | | | | | It's now needed for CNv4, and was not retained when cached
* | | | Merge pull request #5123Riccardo Spagni2019-04-111-0/+6
|\ \ \ \ | |_|_|/ |/| | | | | | | 089c7637 cryptonote: rework block blob size sanity check (moneromooo-monero)
| * | | cryptonote: rework block blob size sanity checkmoneromooo-monero2019-04-051-0/+6
| | |/ | |/| | | | | | | | | | Use the actual block weight limit, assuming that weight is always greater or equal to size
* | | Merge pull request #5346Riccardo Spagni2019-04-061-4/+7
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | c84ea299 cryptonote_basic: some more minor speedups (moneromooo-monero) e40eb2ad cryptonote_basic: speedup calculate_block_hash (moneromooo-monero) 547a9708 cryptonote: block parsing + hash calculation speedup (moneromooo-monero) 11604b6d blockchain: avoid unneeded block copy (moneromooo-monero) 8461df04 save some database calls when getting top block hash and height (moneromooo-monero) 3bbc3661 Avoid repeated (de)serialization when syncing (moneromooo-monero)
| * | cryptonote: block parsing + hash calculation speedupmoneromooo-monero2019-03-251-4/+6
| | | | | | | | | | | | This saves a duplicate serialization step
| * | blockchain: avoid unneeded block copymoneromooo-monero2019-03-251-1/+2
| | |
| * | save some database calls when getting top block hash and heightmoneromooo-monero2019-03-251-0/+1
| | |
| * | Avoid repeated (de)serialization when syncingmoneromooo-monero2019-03-251-2/+1
| |/
* | Merge pull request #5352Riccardo Spagni2019-04-011-0/+44
|\ \ | | | | | | | | | | | | ae6885f6 blockchain: incremental long term block weight cache (moneromooo-monero) 9b687c78 blockchain: simple cache for the long term block weights (moneromooo-monero)
| * | blockchain: incremental long term block weight cachemoneromooo-monero2019-03-281-0/+22
| | |
| * | blockchain: simple cache for the long term block weightsmoneromooo-monero2019-03-281-0/+22
| |/
* | Merge pull request #5294Riccardo Spagni2019-04-011-0/+2
|\ \ | | | | | | | | | 77e9815d blockchain: do not try to pop the genesis block (moneromooo-monero)
| * | blockchain: do not try to pop the genesis blockmoneromooo-monero2019-03-151-0/+2
| | |
* | | Make difficulty 128 bit instead of 64 bitmoneromooo-monero2019-03-241-2/+6
| |/ |/| | | | | | | | | Based on Boolberry work by: jahrsg <jahr@jahr.me> cr.zoidberg <crypto.zoidberg@gmail.com>
* | Merge pull request #5256Riccardo Spagni2019-03-211-13/+11
|\ \ | | | | | | | | | 4b21d38d blockchain: speed up getting N blocks weights/long term weights (moneromooo-monero)
| * | blockchain: speed up getting N blocks weights/long term weightsmoneromooo-monero2019-03-081-13/+11
| | |
* | | Merge pull request #5061Riccardo Spagni2019-03-171-1/+1
|\ \ \ | |_|/ |/| | | | | 1f2930ce Update 2019 copyright (binaryFate)
| * | Update 2019 copyrightbinaryFate2019-03-051-1/+1
| | |
* | | blockchain: fix ahead of time PoW batch calcmoneromooo-monero2019-03-101-2/+2
| |/ |/|
* | Merge pull request #5232Riccardo Spagni2019-03-071-1/+1
|\ \ | |/ |/| | | | | | | | | 082149c5 fix merge errors, update recommended version to 0.14.0.2 (Riccardo Spagni) f3b368c6 update checkpoints hash (Riccardo Spagni) e518f2b1 update checkpoints, update README for 0.14.1 release (Riccardo Spagni) 8780d6b4 update readme via cherry-pick (Riccardo Spagni)
| * fix merge errors, update recommended version to 0.14.0.2Riccardo Spagni2019-03-051-1/+1
| |
| * update checkpoints hashRiccardo Spagni2019-03-051-2/+2
| |
* | cryptonote: avoid double parsing blocks when syncingmoneromooo-monero2019-03-051-10/+3
| |
* | core: avoid double parsing blocks after hohmoneromooo-monero2019-03-051-2/+2
| |
* | blockchain: avoid unneeded block copymoneromooo-monero2019-03-051-1/+2
| |
* | save some database calls when getting top block hash and heightmoneromooo-monero2019-03-051-25/+35
| |
* | blockchain: avoid pointless transaction copy and temporarymoneromooo-monero2019-03-051-3/+4
| |
* | blockchain: avoid duplicate block hash computationmoneromooo-monero2019-03-051-2/+1
| |