aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Merge pull request #5902luigi11112019-09-301-1/+3
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | b9da023 blockchain: keep block template timestamp not below recent median (moneromooo-monero)
| * | | | blockchain: keep block template timestamp not below recent medianmoneromooo-monero2019-09-111-1/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Such a template would yield an invalid block, though would require an attacker to have mined a long blockchain with drifting times (assuming the miner's clock is roughly correct) Fixed by crCr62U0
* | / / RandomX integrationHoward Chu2019-09-251-4/+40
| |/ / |/| | | | | | | | Support RandomX PoW algorithm
* | | Merge pull request #5882luigi11112019-09-241-0/+10
|\ \ \ | | | | | | | | | | | | a444f06 blockchain: enforce 10 block age for spending outputs (moneromooo-monero)
| * | | blockchain: enforce 10 block age for spending outputsmoneromooo-monero2019-09-171-0/+10
| | |/ | |/| | | | | | | | | | Some custom wallet code apparently ignores this, which causes users of that code to be fingerprinted
* | | Merge pull request #5877luigi11112019-09-241-8/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | 2cd4fd8 Changed the use of boost:value_initialized for C++ list initializer (JesusRami) 4ad191f Removed unused boost/value_init header (whyamiroot) 928f4be Make null hash constants constexpr (whyamiroot)
| * | | Changed the use of boost:value_initialized for C++ list initializerJesus Ramirez2019-09-021-8/+8
| | | |
* | | | core: move hardforks into its own libmoneromooo-monero2019-09-191-125/+4
| |/ / |/| | | | | | | | So it can be used by others without encumbrance
* | | Merge pull request #5865luigi11112019-09-141-2/+3
|\ \ \ | | | | | | | | | | | | | | | | 11f13da blockchain: fix logging bad number of blocks if first one fails (moneromooo-monero) 19bfe7e simplewallet: fix warnings about useless std::move (moneromooo-monero)
| * | | blockchain: fix logging bad number of blocks if first one failsmoneromooo-monero2019-08-281-2/+3
| |/ /
* | | Merge pull request #5823luigi11112019-09-141-12/+37
|\ \ \ | |_|/ |/| | | | | | | | | | | 26072f1 blockchain: forbid v1 coinbase from v12 (moneromooo-monero) 555dc7c core: from v12, require consistent ring size for mixable txes (moneromooo-monero) d22dfb7 blockchain: reject rct signatures in coinbase txes from v12 (moneromooo-monero)
| * | blockchain: reject rct signatures in coinbase txes from v12moneromooo-monero2019-08-191-0/+7
| | |
| * | core: from v12, require consistent ring size for mixable txesmoneromooo-monero2019-08-191-8/+23
| | | | | | | | | | | | | | | | | | We're supposed to have a fixed ring size now Already checked by MLSAG verification, but here seems more intuitive
| * | blockchain: forbid v1 coinbase from v12moneromooo-monero2019-08-191-4/+7
| | |
* | | Merge pull request #5819luigi11112019-09-041-1/+2
|\ \ \ | |_|/ |/| | | | | 07cb087 blockchain: Fix alt chain generated coins overflow (iamamyth)
| * | blockchain: Fix alt chain generated coins overflowiamamyth2019-08-181-1/+2
| | | | | | | | | | | | | | | Apply the overflow logic used for computing already_generated_coins in the main chain to alternative chains.
* | | Merge pull request #5721luigi11112019-08-191-36/+6
|\ \ \ | |_|/ |/| | | | | c164f90 Remove unnecessary m_check_txin_table, fix const correctness (omartijn)
| * | Remove unnecessary m_check_txin_table, fix const correctnessMartijn Otto2019-07-031-36/+6
| | |
* | | Merge pull request #5525luigi11112019-08-141-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | 0605406 daemon: sort alt chains by height (moneromooo-monero) 4228ee0 daemon: add optional arguments to alt_chain_info (moneromooo-monero) 880ebfd daemon: add more chain specific info in alt_chain_info (moneromooo-monero)
| * | | daemon: sort alt chains by heightmoneromooo-monero2019-05-091-2/+2
| | | |
* | | | Merge pull request #5487luigi11112019-08-141-0/+13
|\ \ \ \ | |_|_|/ |/| | | | | | | df83ed7 consensus: from v12, enforce >= 2 outputs (moneromooo-monero)
| * | | consensus: from v12, enforce >= 2 outputsmoneromooo-monero2019-04-231-0/+13
| | | |
* | | | Merge pull request #5591luigi11112019-07-241-2/+0
|\ \ \ \ | | | | | | | | | | | | | | | f17dcde Remove unused txs member in NOTIFY_RESPONSE_GET_OBJECT (Doy-lee)
| * | | | Remove unused txs member in NOTIFY_RESPONSE_GET_OBJECTDoyle2019-07-151-2/+0
| | | | |
* | | | | Merge pull request #5524luigi11112019-07-241-66/+126
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 06b8f29 blockchain: keep alternative blocks in LMDB (moneromooo-monero)
| * | | | | blockchain: keep alternative blocks in LMDBmoneromooo-monero2019-05-081-66/+126
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Alternative blocks are cleared on startup unless --keep-alt-blocks is passed on the command line
* | | | | Merge pull request #5502luigi11112019-07-241-6/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 25a7cfd add a few checks where it seems appropriate (moneromooo-monero) 1a66a86 remove unused code (moneromooo-monero)
| * | | | | remove unused codemoneromooo-monero2019-04-291-6/+2
| |/ / / /
* | / / / 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-141-1/+1
| | |
* | | Merge pull request #5571Riccardo Spagni2019-06-011-12/+19
|\ \ \ | | | | | | | | | | | | | | | | 35da33be blockchain: do not try to pop blocks down to the genesis block (moneromooo-monero) 4b51f9a3 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)