summaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
* rpc: limit the number of txes for get_blocks.binmoneromooo-monero2020-12-291-3/+3
|
* build: prepare v0.17.1.8selsta2020-12-231-1/+1
|
* build: prepare v0.17.1.7selsta2020-12-101-1/+1
|
* build: prepare v0.17.1.6selsta2020-12-031-1/+1
|
* build: prepare v0.17.1.5selsta2020-11-231-1/+1
|
* build: prepare v0.17.1.2selsta2020-11-071-1/+1
|
* build: prepare v0.17.1.1selsta2020-10-181-1/+1
|
* blockchain: fix sync at v14 boundarymoneromooo-monero2020-10-181-3/+15
| | | | | | | | | Miners with MLSAG txes which they'd already verified included a couple in that block, but the consensus rules had changed in the meantime, so that block is technically invalid and any node which did not already have those two txes in their txpool could not sync. Grandfather them in, since it has no effect in practice.
* build: prepare v0.17.1.0selsta2020-10-131-1/+1
|
* build: prepare v0.17.0.1selsta2020-09-251-1/+1
|
* blockchain: deterministic UNIX time unlock checksmoneromooo-monero2020-09-151-16/+45
| | | | Based on a patch by TheCharlatan <seb.kung@gmail.com>
* build: prepare v0.17selsta2020-09-141-1/+1
|
* blockchain: fix pow skipping for old blocks without precalc hashmoneromooo-monero2020-09-071-1/+1
|
* Merge pull request #6111Riccardo Spagni2020-09-061-5/+41
|\ | | | | | | | | | | d20ff4f64 functional_tests: add a large (many randomx epochs) p2p reorg test (moneromooo-monero) 6a0b3b1f8 functional_tests: add randomx tests (moneromooo-monero) 9d42649d5 core: fix mining from a block that's not the current top (moneromooo-monero)
| * core: fix mining from a block that's not the current topmoneromooo-monero2020-08-271-5/+41
| |
* | Merge pull request #6757luigi11112020-09-031-7/+9
|\ \ | | | | | | | | | 6a37da8 threadpool: guard against exceptions in jobs, and armour plating (moneromooo-monero)
| * | threadpool: guard against exceptions in jobs, and armour platingmoneromooo-monero2020-09-011-7/+9
| | | | | | | | | | | | | | | Those would, if uncaught, exit run and leave the waiter to wait indefinitely for the number of active jobs to reach 0
* | | Integrate CLSAGs into moneromoneromooo-monero2020-08-271-3/+53
| |/ |/| | | | | They are allowed from v12, and MLSAGs are rejected from v13.
* | Merge pull request #6760Alexander Blair2020-08-271-2/+2
|\ \ | | | | | | | | | 844fb4e94 enforce claiming maximum coinbase amount (moneromooo-monero)
| * | enforce claiming maximum coinbase amountmoneromooo-monero2020-08-211-2/+2
| |/ | | | | | | | | Claiming a slightly lesser amount does not yield the size gains that were seen pre rct, so this closes a fingerprinting vector
* | Avoid some temporary strings when reading off the databasemoneromooo-monero2020-08-171-3/+3
| |
* | Merge pull request #6727Alexander Blair2020-08-161-0/+11
|\ \ | | | | | | | | | | | | | | | | | | 13eee1d6a rpc: reject wrong sized txid (moneromooo-monero) 92e6b7df2 easylogging++: fix crash with reentrant logging (moneromooo-monero) 6dd95d530 epee: guard against exceptions in RPC handlers (moneromooo-monero) 90016ad74 blockchain: guard against exceptions in add_new_block/children (moneromooo-monero)
| * | blockchain: guard against exceptions in add_new_block/childrenmoneromooo-monero2020-07-301-0/+11
| |/ | | | | | | Reporter requested credit to be given to Decred
* | Merge pull request #6661Alexander Blair2020-08-161-1/+1
|\ \ | | | | | | | | | 267ce5b71 avoid a couple needless copies (moneromooo-monero)
| * | avoid a couple needless copiesmoneromooo-monero2020-06-141-1/+1
| | |
* | | Adding ZMQ/Pub support for txpool_add and chain_main eventsLee Clagett2020-05-041-10/+21
| |/ |/|
* | Merge pull request #6534Alexander Blair2020-07-191-0/+115
|\ \ | | | | | | | | | 7bd66b01b daemon: guard against rare 'difficulty drift' bug with checkpoints and recalculation (stoffu)
| * | daemon: guard against rare 'difficulty drift' bug with checkpoints and ↵stoffu2020-06-091-0/+115
| |/ | | | | | | | | | | recalculation On startup, it checks against the difficulty checkpoints, and if any mismatch is found, recalculates all the blocks with wrong difficulties. Additionally, once a week it recalculates difficulties of blocks after the last difficulty checkpoint.
* | Merge pull request #6526Alexander Blair2020-07-191-0/+1
|\ \ | | | | | | | | | 5d882f4f1 blockchain: fix theoretical race getting bulk timestamps (moneromooo-monero)
| * | blockchain: fix theoretical race getting bulk timestampsmoneromooo-monero2020-05-131-0/+1
| | |
* | | Merge pull request #6512Alexander Blair2020-07-191-1/+1
|\ \ \ | | | | | | | | | | | | 5ef0607da Update copyright year to 2020 (SomaticFanatic)
| * | | Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
| |/ / | | | | | | | | | Update copyright year to 2020
* | | blockchain: fix timestamp/difficulty cache getting out of syncmoneromooo-monero2020-07-081-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cache is discarded when a block is popped, but then gets rebuilt when the difficulty for next block is requested. While this is all properly locked, it does not take into account the delay caused by a database transaction being only committed (and thus its effects made visible to other threads) later on, which means another thread could request difficulty between the pop and the commit, which would end up using stale database view to build the cache, but that cache would not be invalidated again when the transaction gets committed, which would cause the cache to not match the new database data. To fix this, we now keep track of when the cache is invalidated so we can invalidate it again upon database transaction commit to ensure it gets calculated again with fresh data next time it is nedeed.
* | | Merge pull request #6629luigi11112020-07-081-0/+1
|\ \ \ | | | | | | | | | | | | 795e186 blockchain: fix total_height in getblocks.bin response (moneromooo-monero)
| * | | blockchain: fix total_height in getblocks.bin responsemoneromooo-monero2020-06-051-0/+1
| |/ /
* | | Merge pull request #6544luigi11112020-07-081-5/+72
|\ \ \ | |_|/ |/| | | | | 5741b4d blockchain: detect and log bad difficulty calculations (moneromooo-monero)
| * | blockchain: detect and log bad difficulty calculationsmoneromooo-monero2020-05-171-5/+72
| |/
* / build: prepare v0.16.0.0 releaseselsta2020-05-131-1/+1
|/
* Merge pull request #6358luigi11112020-04-101-30/+2
|\ | | | | | | 8958b4e blockchain_db: faster fetching of consecutive txes (moneromooo-monero)
| * blockchain_db: faster fetching of consecutive txesmoneromooo-monero2020-02-271-30/+2
| | | | | | | | Useful for wallet refresh or node sync
* | Merge pull request #6347luigi11112020-04-041-8/+16
|\ \ | | | | | | | | | fcb06f7 cryptonote_core: skip block notify on blockchain switching rollback (xiphon)
| * | cryptonote_core: skip block notify on blockchain switching rollbackxiphon2020-02-191-8/+16
| |/
* | Merge pull request #6339luigi11112020-04-041-2/+2
|\ \ | | | | | | | | | c61abf8 remove empty statements (shopglobal)
| * | remove empty statementsInterchained2020-02-171-2/+2
| |/ | | | | | | Cleaning up a little around the code base.
* | Merge pull request #6284Alexander Blair2020-03-271-2/+2
|\ \ | | | | | | | | | 02224e71 Fix check_fee() discrepancy. (UkoeHB)
| * | Fix check_fee() discrepancy.UkoeHB2020-01-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | M100 = max{300kb, min{100block_median, m_long_term_effective_median_block_weight}} not M100 = max{300kb, m_long_term_effective_median_block_weight} Fix base reward in get_dynamic_base_fee_estimate(). get_dynamic_base_fee_estimate() should match check_fee() Fee is calculated based on block reward, and the reward penalty takes into account 0.5*max_block_weight (both before and after HF_VERSION_EFFECTIVE_SHORT_TERM_MEDIAN_IN_PENALTY). Moved median calculation according to best practice of 'keep definitions close to where they are used'.
* | | Merge pull request #6211Alexander Blair2020-02-281-0/+7
|\ \ \ | |_|/ |/| | | | | 5985c5af rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
| * | rpc: add bad-blocks to flush_cache RPCmoneromooo-monero2019-12-021-0/+7
| | | | | | | | | | | | Flushes m_invalid_blocks in Blockchain.
* | | Merge pull request #6233luigi11112020-02-041-1/+1
|\ \ \ | | | | | | | | | | | | 8a27645 blockchain: fix flushing txes from the txpool (moneromooo-monero)
| * | | blockchain: fix flushing txes from the txpoolmoneromooo-monero2019-12-141-1/+1
| | |/ | |/|