aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests
Commit message (Collapse)AuthorAgeFilesLines
* Establish Monzero Phase 0 and inactive assets baselinemonzero-phase0-assets-prototype-20260815Monzero Build System4 hours1-1/+5
|
* zmq: apply restricted-mode privacy filtering to get_transaction_poolgreatjourney5892026-05-081-1/+1
| | | | | | | | | | | | | | | | Add an include_sensitive parameter to tx_memory_pool::get_pool_for_rpc (and its core passthrough), mirroring the include_sensitive_data parameter on the HTTP analog get_transactions_and_spent_keys_info. When false, receive_time and last_relayed_time are zeroed using the same masking already applied on the HTTP path. The ZMQ handler in daemon_handler.cpp passes !m_restricted, so --restricted-zmq-rpc callers now receive the same privacy-filtered view as restricted HTTP callers instead of the unfiltered timing metadata they previously got. Stem-phase txs continue to be excluded regardless (relay_category::broadcasted filter unchanged). Refs #10529.
* cryptonote_core: add change address sanity checkjeffro2562026-04-274-5/+5
| | | | | | Prevents silly mistakes where wrong change address is passed Release versions uses boost::optional instead of std::optional
* blockchain sync: reduce disk writes from 2 to 1 per txjeffro2562025-03-101-4/+5
|
* build: fix build with Boost 1.85 and remove instances of viewkey logging ↵jeffro2562024-09-101-5/+5
| | | | | | | | | | | [RELEASE] 1. Use std::is_standard_layout and std::is_trivially_copyable instead of std::is_pod for KV byte-wise serialization, which fixes compile issue for Boost UUIDs 2. Removed reimplementation of std::hash for boost::uuids::uuid 3. Removed << operator overload for crypto::secret_key 4. Removed instances in code where private view key was dumped to the log in plaintext Release version of #9450, containing C++14 modified assertions
* Enforce Tx unlock_time is Zero by Relay Rule [RELEASE]jeffro2562024-04-2915-27/+54
| | | | | | | | | | | | | | | | Related to https://github.com/monero-project/research-lab/issues/78 Added a relay rule that enforces the `unlock_time` field is equal to 0 for non-coinbase transactions. UIs changed: * Removed `locked_transfer` and `locked_sweep_all` commands from `monero-wallet-cli` APIs changed: * Removed `unlock_time` parameters from `wallet2` transfer methods * Wallet RPC transfer endpoints send error codes when requested unlock time is not 0 * Removed `unlock_time` parameters from `construct_tx*` cryptonote core functions @tobtoht: undo rebase changes tx.dsts -> tx_dsts
* Second thread pool for IOSChernykh2022-09-201-1/+1
|
* feat(trezor): add HF15 support, BP+Dusan Klinec2022-08-051-1/+1
| | | | | - BP+ support added for Trezor - old Trezor firmware version support removed, code cleanup
* derive multisig tx secret keys from an entropy source plus the tx inputs' ↵koe2022-07-131-2/+3
| | | | key images
* multisig: fix critical vulnerabilities in signinganon2022-06-305-100/+89
|
* Merge pull request #8302luigi11112022-05-102-2/+2
|\ | | | | | | 41da2fe Update copyright to 2022 for Hardfork files (Akrit)
| * Update copyright to 2022 for Hardfork filesAkrit2022-04-292-2/+2
| | | | | | | | Update Makefile and LICENSE
* | Merge pull request #8277luigi11112022-05-101-2/+0
|\ \ | | | | | | | | | baee2c0 Preserve commitment format inside transactions (kayabaNerve)
| * | Preserve commitment format inside transactionsLuke Parker2022-04-211-2/+0
| |/
* | Merge pull request #8220luigi11112022-05-101-6/+2
|\ \ | |/ |/| | | 0d6ecb1 multisig: add post-kex verification round to check that all participants have completed the multisig address (koe)
| * multisig: add post-kex verification round to check that all participants ↵koe2022-04-291-6/+2
| | | | | | | | have completed the multisig address
* | Add view tags to outputs to reduce wallet scanning timej-berman2022-04-187-17/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #8205luigi11112022-04-061-0/+2
|\ \ | | | | | | | | | 0d6fce8 Compil. time: cryptonote_core minus portable_storage header (mj-xmr)
| * | Compil. time: cryptonote_core minus portable_storage headermj-xmr2022-03-041-0/+2
| |/
* | Merge pull request #8197luigi11112022-04-0638-38/+38
|\ \ | | | | | | | | | da9aa1f Copyright: Update to 2022 (mj-xmr)
| * | Copyright: Update to 2022mj-xmr2022-03-0438-38/+38
| |/
* | store outPk/8 in the tx for speedmoneromooo-monero2022-04-051-0/+2
| | | | | | | | | | | | 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-0511-22/+644
|/
* multisig key exchange update and refactorkoe2022-02-222-69/+59
|
* core_tests: remove unused typedef, fix warningselsta2021-08-191-1/+0
|
* Merge pull request #7661luigi11112021-06-101-8/+4
|\ | | | | | | 08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
| * Improve cryptonote (block and tx) binary read performanceLee Clagett2021-01-231-8/+4
| |
* | Warnings: unused var in core_tests:chaingen.hmj-xmr2021-05-111-1/+1
|/
* Merge pull request #7355luigi11112021-02-181-2/+2
|\ | | | | | | | | 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-2/+2
| |
* | Remove unused variables in monero codebaseKevin Barbour2021-02-092-5/+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.
* Add RELINK_TARGETS, monero_add_target_no_relink and use ↵mj-xmr2020-10-281-1/+1
| | | | | | | | monero_add_executable/monero_add_library where possible (mj-xmr) Add monero_add_minimal_executable and use in tests This is done in order not to have to relink targets, when just an .so changed, but not its interface.
* Merge pull request #6111Riccardo Spagni2020-09-061-3/+3
|\ | | | | | | | | | | 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-3/+3
| |
* | core_tests: fix failures after v13moneromooo-monero2020-08-284-13/+21
| | | | | | | | | | v13 enforces claiming the full block reward, so we need to keep track of tx fees to add them to the coinbase
* | core_tests: remove hardcoded hf versionmoneromooo-monero2020-08-281-1/+1
| |
* | Integrate CLSAGs into moneromoneromooo-monero2020-08-2710-79/+466
|/ | | | They are allowed from v12, and MLSAGs are rejected from v13.
* Merge pull request #6760Alexander Blair2020-08-273-0/+30
|\ | | | | | | 844fb4e94 enforce claiming maximum coinbase amount (moneromooo-monero)
| * enforce claiming maximum coinbase amountmoneromooo-monero2020-08-213-0/+30
| | | | | | | | | | Claiming a slightly lesser amount does not yield the size gains that were seen pre rct, so this closes a fingerprinting vector
* | replace most boost serialization with existing monero serializationmoneromooo-monero2020-08-171-2/+0
|/ | | | | | | | | | | | | | | | | | | | | | 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 #6512Alexander Blair2020-07-1935-35/+35
|\ | | | | | | 5ef0607da Update copyright year to 2020 (SomaticFanatic)
| * Update copyright year to 2020SomaticFanatic2020-05-0635-35/+35
| | | | | | | | Update copyright year to 2020
* | Fix boost <1.60 compilation and fix boost 1.73+ warningsLee Clagett2020-05-311-2/+3
| |
* | build: fix boost 1.73 compatibilityselsta2020-05-141-2/+2
|/
* Adding Dandelion++ support to public networks:Lee Clagett2020-03-264-2/+44
| | | | | | - 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
* Correct key image check in tx_poolLee Clagett2020-03-143-0/+64
|
* Merge pull request #6061Alexander Blair2020-02-284-5/+0
|\ | | | | | | f1091c41 core_tests: remove some useless verbose logs (moneromooo-monero)
| * core_tests: remove some useless verbose logsmoneromooo-monero2019-10-304-5/+0
| |
* | Merge pull request #6300Alexander Blair2020-01-241-4/+10
|\ \ | | | | | | | | | 6f330865 fix tests bug added in #6110 (Dusan Klinec)
| * | fix tests bug added in #6110Dusan Klinec2020-01-191-4/+10
| | | | | | | | | | | | | | | | | | - e.g., fixes gen_block_big_major_version test, error: generation failed: what=events not set, cannot compute valid RandomX PoW - ask for events only if difficulty > 1 (when it really matters) - throwing an exception changed to logging, so it is easy to spot a problem if tests start to fail.