aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #8223luigi11112022-04-062-10/+9
|\ | | | | | | 17772ef Eliminate dependence on boost::interprocess #8223 (Jeffrey)
| * Eliminate dependence on boost::interprocess #8223Jeffrey2022-03-302-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | In this repo, `boost::interprocess` was being used soley to make `uint32_t` operations atomic. So I replaced each instance of `boost::interprocess::ipcdetail::atomic(...)32` with `std::atomic` methods. I replaced member declarations as applicable. For example, when I needed to change a `volatile uint32_t` into a `std::atomic<uint32_t>`. Sometimes, a member was being used a boolean flag, so I replaced it with `std::atomic<bool>`. You may notice that I didn't touch `levin_client_async.h`. That is because this file is entirely unused and will be deleted in PR monero-project#8211. Additional changes from review: * Make some local variables const * Change postfix operators to prefix operators where value was not need
* | Merge pull request #8197luigi11112022-04-0627-27/+32
|\ \ | | | | | | | | | da9aa1f Copyright: Update to 2022 (mj-xmr)
| * | Copyright: Update to 2022mj-xmr2022-03-0427-27/+32
| |/
* | store outPk/8 in the tx for speedmoneromooo-monero2022-04-051-1/+1
| | | | | | | | | | | | It avoids dividing by 8 when deserializing a tx, which is a slow operation, and multiplies by 8 when verifying and extracing the amount, which is much faster as well as less frequent
* | plug bulletproofs plus into consensusmoneromooo-monero2022-04-052-14/+65
|/
* multisig key exchange update and refactorkoe2022-02-223-7/+20
|
* RPC and ZeroMQ APIs to support p2poolSChernykh2021-09-113-0/+4
| | | | | | | | | | | | | | | | | | | | 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
* cmake: fix undefined symbols and multiple definitionsanon2021-07-133-16/+58
|
* Improve cryptonote (block and tx) binary read performanceLee Clagett2021-01-234-67/+26
|
* Split epee/string_tools.h and encapsulate boost::lexical_castmj-xmr2021-04-161-0/+1
|
* Merge pull request #7002luigi11112021-04-161-0/+1
|\ | | | | | | 673c6d2 Reduce compilation time of epee/portable_storage_template_helper.h (mj-xmr)
| * Reduce compilation time of epee/portable_storage_template_helper.hmj-xmr2021-03-281-0/+1
| |
* | cryptonote_protocol_handler: fix race conditionanon2021-03-221-0/+2
|/
* Merge pull request #6810luigi11112021-03-205-0/+157
|\ | | | | | | 19b2283 New add_aux_pow RPC to support merge mining (moneromooo-monero)
| * New add_aux_pow RPC to support merge miningmoneromooo-monero2021-02-095-0/+157
| |
* | 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.
* Command max_bytes moved from dynamic map to static switchLee Clagett2020-12-223-22/+75
|
* add a max levin packet size by command typemoneromooo-monero2021-01-031-0/+23
|
* Add aggressive restrictions to pre-handshake p2p buffer limitLee Clagett2020-12-171-0/+2
|
* cryptonote_basic: guess what got lost porting patches to branches againmoneromooo-monero2020-12-261-1/+1
|
* protocol: drop nodes if they claim new data but only give stale datamoneromooo-monero2020-12-251-1/+2
| | | | Some joker is spending time actually doing this
* protocol: stricter checks on received chain hash listmoneromooo2020-12-111-0/+1
|
* protocol: drop peers that don't reply to queriesmoneromooo2020-12-061-1/+3
|
* protocol: add scoring system to drop peers that don't behavemoneromooo2020-12-041-2/+2
|
* Merge pull request #6111Riccardo Spagni2020-09-062-7/+9
|\ | | | | | | | | | | 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-272-7/+9
| |
* | Integrate CLSAGs into moneromoneromooo-monero2020-08-272-8/+28
|/ | | | They are allowed from v12, and MLSAGs are rejected from v13.
* Merge pull request #6690Alexander Blair2020-08-273-3/+1
|\ | | | | | | 7175dcb10 replace most boost serialization with existing monero serialization (moneromooo-monero)
| * replace most boost serialization with existing monero serializationmoneromooo-monero2020-08-173-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reduces the attack surface for data that can come from malicious sources (exported output and key images, multisig transactions...) since the monero serialization is already exposed to the outside, and the boost lib we were using had a few known crashers. For interoperability, a new load-deprecated-formats wallet setting is added (off by default). This allows loading boost format data if there is no alternative. It will likely go at some point, along with the ability to load those. Notably, the peer lists file still uses the boost serialization code, as the data it stores is define in epee, while the new serialization code is in monero, and migrating it was fairly hairy. Since this file is local and not obtained from anyone else, the marginal risk is minimal, but it could be migrated later if needed. Some tests and tools also do, this will stay as is for now.
* | Merge pull request #6613Alexander Blair2020-08-273-31/+35
|\ \ | | | | | | | | | 55363c594 Avoid some temporary strings when reading off the database (moneromooo-monero)
| * | Avoid some temporary strings when reading off the databasemoneromooo-monero2020-08-173-31/+35
| |/
* | Merge pull request #6607Alexander Blair2020-08-261-4/+3
|\ \ | | | | | | | | | eb1b321fe miner: increase min/max intervals to full extents (moneromooo-monero)
| * | miner: increase min/max intervals to full extentsmoneromooo-monero2020-05-311-4/+3
| | | | | | | | | | | | | | | | | | This prevents setting target to, eg, 65 being ignored and remove an unused constant
* | | Revert "Use domain-separated ChaCha20 for in-memory key encryption"luigi11112020-08-172-71/+50
| |/ |/| | | | | This reverts commit 921dd8dde5d381052d0aa2936304a3541a230c55.
* | Merge pull request #6493Alexander Blair2020-08-162-50/+71
|\ \ | | | | | | | | | 921dd8dde Use domain-separated ChaCha20 for in-memory key encryption (Sarang Noether)
| * | Use domain-separated ChaCha20 for in-memory key encryptionSarang Noether2020-08-092-50/+71
| | |
* | | Adding ZMQ/Pub support for txpool_add and chain_main eventsLee Clagett2020-05-042-0/+82
|/ /
* / Update copyright year to 2020SomaticFanatic2020-05-0621-21/+21
|/ | | | Update copyright year to 2020
* Merge pull request #6472luigi11112020-05-061-0/+2
|\ | | | | | | 2efbd5f cryptonote: fix reuse of non default tx data when relaying (moneromooo-monero)
| * cryptonote: fix reuse of non default tx data when relayingmoneromooo-monero2020-04-221-0/+2
| | | | | | | | | | | | An automatic tx variable is initialized properly on the first run through the loop, but not the second. Moving the variable inside the loop ensures the ctor is called again to init it.
* | Merge pull request #6436luigi11112020-05-012-0/+16
|\ \ | |/ |/| | | 688a3e8 Add timelock verification on device (cslashm)
| * Add timelock verification on devicecslashm2020-04-082-0/+16
| |
* | Adding Dandelion++ support to public networks:Lee Clagett2020-03-261-1/+6
| | | | | | | | | | | | - New flag in NOTIFY_NEW_TRANSACTION to indicate stem mode - Stem loops detected in tx_pool.cpp - Embargo timeout for a blackhole attack during stem phase
* | Merge pull request #6338luigi11112020-04-042-6/+2
|\ \ | | | | | | | | | 80d5320 Hash domain separation (SarangNoether)
| * | Hash domain separationSarang Noether2020-04-012-6/+2
| |/
* / cryptonote_basic: drop unused verification_context::m_not_rct fieldxiphon2020-03-311-1/+0
|/
* p2p: remove old debug commandsAaron Hook2020-03-202-55/+0
|
* Merge pull request #6225Alexander Blair2020-02-282-2/+18
|\ | | | | | | 987c3139 print_coinbase_tx_sum now supports 128 bits sums (moneromooo-monero)
| * print_coinbase_tx_sum now supports 128 bits sumsmoneromooo-monero2019-12-122-2/+18
| | | | | | | | The tail emission will bring the total above 64 bits