summaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
* build: prepare v0.18.2.0selsta2023-02-081-1/+1
|
* Merge pull request #8676luigi11112023-01-111-1/+1
|\ | | | | | | 29208a3 Cache successful erRctNonSemanticsSimple calls (SChernykh)
| * Cache successful `verRctNonSemanticsSimple` callsSChernykh2022-12-201-1/+1
| |
* | Refactored rx-slow-hash.cSChernykh2022-12-141-14/+28
|/ | | | | | | | | - Straight-forward call interface: `void rx_slow_hash(const char *seedhash, const void *data, size_t length, char *result_hash)` - Consensus chain seed hash is now updated by calling `rx_set_main_seedhash` whenever a block is added/removed or a reorg happens - `rx_slow_hash` will compute correct hash no matter if `rx_set_main_seedhash` was called or not (the only difference is performance) - New environment variable `MONERO_RANDOMX_FULL_MEM` to force use the full dataset for PoW verification (faster block verification) - When dataset is used for PoW verification, dataset updates don't stall other threads (verification is done in light mode then) - When mining is running, PoW checks now also use dataset for faster verification
* build: prepare v0.18.1.2selsta2022-09-261-1/+1
|
* Second thread pool for IOSChernykh2022-09-201-2/+2
|
* build: prepare v0.18.1.1selsta2022-09-061-1/+1
|
* build: prepare v0.18.1.0selsta2022-07-281-1/+1
|
* build: prepare v0.18.0.0selsta2022-07-131-1/+1
|
* Merge pull request #8178luigi11112022-04-251-9/+15
|\ | | | | | | 5d388eb Bump ring size to 16 for v15 & remove set default in wallet cli (j-berman)
| * Bump ring size to 16 for v15 & remove set default in wallet clij-berman2022-04-181-9/+15
| |
* | Add view tags to outputs to reduce wallet scanning timej-berman2022-04-181-9/+23
|/ | | | | | | | | | | | | Implements view tags as proposed by @UkoeHB in MRL issue https://github.com/monero-project/research-lab/issues/73 At tx construction, the sender adds a 1-byte view tag to each output. The view tag is derived from the sender-receiver shared secret. When scanning for outputs, the receiver can check the view tag for a match, in order to reduce scanning time. When the view tag does not match, the wallet avoids the more expensive EC operations when deriving the output public key using the shared secret.
* Fee changes from ArticMinemoneromooo-monero2022-04-101-7/+130
| | | | | | https://github.com/ArticMine/Monero-Documents/blob/master/MoneroScaling2021-02.pdf with a change to use 1.7 instead of 2.0 for the max long term increase rate
* Merge pull request #8212luigi11112022-04-061-3/+0
|\ | | | | | | 591c174 Remove footgun doc comment in miner TX validation (Luke Parker)
| * Remove footgun doc comment in miner TX validationLuke Parker2022-03-101-3/+0
| | | | | | This comment suggests this check is unnecessary, when it is completely necessary as miner TXs can have multiple outputs *which is a statement directly, and incorrectly, contradicted by this comment*. While I don't ever see someone removing this code and getting their edits merged into Monero, someone inexperienced who thinks they're cleaning old code may break their own work, and then there's really just zero benefit to keeping this around.
* | Merge pull request #8197luigi11112022-04-061-1/+1
|\ \ | | | | | | | | | da9aa1f Copyright: Update to 2022 (mj-xmr)
| * | Copyright: Update to 2022mj-xmr2022-03-041-1/+1
| |/
* / plug bulletproofs plus into consensusmoneromooo-monero2022-04-051-4/+31
|/
* tx_pool: full tx revalidation on fork boundariesmoneromooo-monero2021-11-011-0/+21
| | | | | | avoids mining txes after a fork that are invalid by this fork's rules, but were valid by the previous fork rules at the time they were verified and added to the txpool.
* blockchain: fix pedantic assertselsta2021-10-111-0/+2
|
* RPC and ZeroMQ APIs to support p2poolSChernykh2021-09-111-1/+68
| | | | | | | | | | | | | | | | | | | | Adds the following: - "get_miner_data" to RPC API - "json-miner-data" to ZeroMQ subscriber contexts Both provide the necessary data to create a custom block template. They are used by p2pool. Data provided: - major fork version - current height - previous block id - RandomX seed hash - network difficulty - median block weight - coins mined by the network so far - mineable mempool transactions
* Merge pull request #7754luigi11112021-07-101-1/+1
|\ | | | | | | 8ff21e1 doc: update IRC references to Libera (fdov)
| * doc: update IRC references to Liberafdov2021-06-201-1/+1
| |
* | Merge pull request #7612luigi11112021-06-241-4/+6
|\ \ | |/ |/| | | 254a133 core: speed up print_coinbase_tx_sum (moneromooo-monero)
| * core: speed up print_coinbase_tx_summoneromooo-monero2021-03-181-4/+6
| | | | | | | | It only needs to parse the tx headers, not the full tx data
* | Merge pull request #7684luigi11112021-06-101-1/+4
|\ \ | | | | | | | | | ed6f053 blockchain: speed up repeated pops (mostly in tests) (moneromooo-monero)
| * | blockchain: speed up repeated pops (mostly in tests)moneromooo-monero2021-04-261-1/+4
| | | | | | | | | | | | | | | The heavy rolling median reset only has to be performed after all blocks are popped
* | | Warnings: unused variable in core/blockchain.cppmj-xmr2021-05-081-1/+1
| | |
* | | Remove payload copy in all outgoing p2p messagesLee Clagett2021-01-191-0/+1
| | |
* | | Revert "Merge pull request #7136"luigi11112021-04-161-1/+0
|/ / | | | | | | | | This reverts commit 63c7ca07fba2f063c760f786a986fb3e02fb040e, reversing changes made to 2218e23e84a89e9a1e4c0be5d50f891ab836754f.
* / Remove payload copy in all outgoing p2p messagesLee Clagett2021-01-161-0/+1
|/
* Merge pull request #7355luigi11112021-02-181-1/+1
|\ | | | | | | | | bd12984 Remove copies from foreach loops (thanks to Clang) (Lee Clagett) 1572df9 Removing unused namespace alias (Lee Clagett)
| * Remove copies from foreach loops (thanks to Clang)Lee Clagett2021-01-281-1/+1
| |
* | Remove unused variables in monero codebaseKevin Barbour2021-02-091-1/+0
|/ | | | | | | | | | | There are quite a few variables in the code that are no longer (or perhaps never were) in use. These were discovered by enabling compiler warnings for unused variables and cleaning them up. In most cases where the unused variables were the result of a function call the call was left but the variable assignment removed, unless it was obvious that it was a simple getter with no side effects.
* blockchain: lock access to m_blocks_hash_of_hashesmoneromooo-monero2021-01-021-0/+2
| | | | | it is accessed both when adding and when prevalidating a set of new hashes from a peer
* protocol: more sanity checks in new chain block hashesmoneromooo-monero2020-12-311-2/+14
|
* rpc: limit the number of txes for get_blocks.binmoneromooo-monero2020-12-291-3/+3
|
* Merge pull request #6924luigi11112020-11-291-8/+0
|\ | | | | | | 874487f blockchain: remove some dead code (moneromooo-monero)
| * blockchain: remove some dead codemoneromooo-monero2020-10-201-8/+0
| | | | | | | | This is already done
* | Make Blockchain::get_fee_quantization_mask() compile timeSChernykh2020-10-201-13/+0
| | | | | | | | This also removes potential thread safety bug in that function.
* | 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.
* 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)