summaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #6079Riccardo Spagni2019-11-021-1/+1
| | | | e4d1674e8 0.15.0.0 release engineering (Riccardo Spagni)
* blockchain: fix unwanted error when probing the pool for a txmoneromooo-monero2019-10-271-2/+11
|
* Merge pull request #5974luigi11112019-10-221-2/+4
|\ | | | | | | 7fcd0b5 blockchain: initialize pow to ff..ff (moneromooo-monero)
| * blockchain: initialize pow to ff..ffmoneromooo-monero2019-10-161-2/+4
| | | | | | | | as a safety to reject if it somehow does not get initialised
* | Merge pull request #5970luigi11112019-10-221-3/+12
|\ \ | | | | | | | | | ab96181 blockchain: use effective median block weight for penalty from v12 (moneromooo-monero)
| * | blockchain: use effective median block weight for penalty from v12moneromooo-monero2019-10-111-3/+12
| |/ | | | | | | | | It was using the raw block weight median, which was not what was intended in ArticMine's design
* | Merge pull request #5966luigi11112019-10-221-8/+3
|\ \ | | | | | | | | | be82c40 Support median block size > 4 GB (moneromooo-monero)
| * | Support median block size > 4 GBmoneromooo-monero2019-10-211-8/+3
| | | | | | | | | | | | | | | add a 128/64 division routine so we can use a > 32 bit median block size in calculations
* | | Merge pull request #5919luigi11112019-10-221-0/+28
|\ \ \ | | | | | | | | | | | | 01f660f blockchain: fill in cumulative block weight for alt blocks (moneromooo-monero)
| * | | blockchain: fill in cumulative block weight for alt blocksmoneromooo-monero2019-10-101-0/+28
| | | |
* | | | Merge pull request #5941luigi11112019-10-141-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | d37d30f blockchain: tweak fee as a function of median values (moneromooo-monero)
| * | | | blockchain: tweak fee as a function of median valuesmoneromooo-monero2019-09-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the lesser of the short and long terms medians, rather then the long term median alone From ArticMine: I found a bug in the new fee calculation formula with using only the long term median It actually needs to be the lesser of the long term median and the old (modified short term median) short term median with the last 10 blocks calculated as empty Yes the issue occurs if there is a large long term median and, the short term median then falls and tries to then rise again The fees are could be not high enough for example LTM and STM rise to say 2000000 bytes STM falls back to 300000 bytes Fees are now based on 2000000 bytes until LTM also falls So the STM is could prevented from rising back up STM short term median LTM long term median
* | | | | Merge pull request #5933luigi11112019-10-141-0/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | 3455efa ban peers sending bad pow outright (moneromooo-monero)
| * | | | ban peers sending bad pow outrightmoneromooo-monero2019-09-251-0/+2
| | | | | | | | | | | | | | | | | | | | PoW is expensive to verify, so be strict
* | | | | Merge pull request #5915luigi11112019-10-081-50/+194
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | 8330e77 monerod can now sync from pruned blocks (moneromooo-monero)
| * | | | monerod can now sync from pruned blocksmoneromooo-monero2019-09-271-50/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the peer (whether pruned or not itself) supports sending pruned blocks to syncing nodes, the pruned version will be sent along with the hash of the pruned data and the block weight. The original tx hashes can be reconstructed from the pruned txes and theur prunable data hash. Those hashes and the block weights are hashes and checked against the set of precompiled hashes, ensuring the data we received is the original data. It is currently not possible to use this system when not using the set of precompiled hashes, since block weights can not otherwise be checked for validity. This is off by default for now, and is enabled by --sync-pruned-blocks
* | | | | 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
| | |/ | |/|