aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Remove copies from foreach loops (thanks to Clang)Lee Clagett2021-01-281-8/+8
| |/ /
* | | Merge pull request #7352luigi11112021-02-181-9/+9
|\ \ \ | | | | | | | | | | | | a60d3d8 unit_tests: fix wipeable_string parse_hexstr test with latest gtest (xiphon)
| * | | unit_tests: fix wipeable_string parse_hexstr test with latest gtestxiphon2021-01-271-9/+9
| |/ / | | | | | | | | | https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973196
* | | Merge pull request #7346luigi11112021-02-185-5/+1
|\ \ \ | | | | | | | | | | | | 85db173 Remove unused variables in monero codebase (Kevin Barbour)
| * | | Remove unused variables in monero codebaseKevin Barbour2021-02-095-5/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #7308luigi11112021-02-151-0/+150
|\ \ \ | | | | | | | | | | | | | | | | df2f00f boosted_tcp_server: fix connection lifetime (anon) 3833624 boosted_tcp_server: add segfault demo (anon)
| * | | boosted_tcp_server: add segfault demoanon2021-01-191-0/+150
| |/ /
* / / Reduce compilation time of epee/portable_storage.hmj-xmr2021-02-061-0/+1
|/ /
* | Merge pull request #7285Alexander Blair2021-01-071-3/+40
|\ \ | | | | | | | | | 927141bcc Command max_bytes moved from dynamic map to static switch (Lee Clagett)
| * | Command max_bytes moved from dynamic map to static switchLee Clagett2020-12-221-3/+40
| | |
* | | Restrict duplicate keys in epee binary formatLee Clagett2020-12-202-0/+55
|/ /
* | add a max levin packet size by command typemoneromooo-monero2021-01-031-0/+1
| |
* | Merge pull request #7250Alexander Blair2021-01-012-0/+4
|\ \ | | | | | | | | | 61b6e4cc6 Add aggressive restrictions to pre-handshake p2p buffer limit (Lee Clagett)
| * | Add aggressive restrictions to pre-handshake p2p buffer limitLee Clagett2020-12-172-0/+4
| | |
* | | protocol: more sanity checks in new chain block hashesmoneromooo-monero2020-12-311-1/+2
|/ /
* | protocol: fix false positives dropping peersmoneromooo-monero2020-12-271-0/+1
| | | | | | | | it'd trigger on reorgs
* | Revert "Reject existing claimed blocks in sync mode"luigi11112020-12-271-1/+0
| |
* | Merge pull request #7154Alexander Blair2020-12-261-0/+1
|\ \ | | | | | | | | | | | | cf7e1571d protocol: reject claimed block hashes that already are in the chain (moneromooo-monero) af0a25544 protocol: drop peers we can't download anything from in sync mode (moneromooo-monero)
| * | protocol: reject claimed block hashes that already are in the chainmoneromooo-monero2020-12-171-0/+1
| | |
* | | Fix byte_stream::put_nLee Clagett2020-12-141-0/+17
|/ /
* | Merge pull request #7110Alexander Blair2020-12-101-9/+11
|\ \ | | | | | | | | | d660f22ed protocol: drop origin IP if a block fails to verify in sync mode (moneromooo-monero)
| * | protocol: drop origin IP if a block fails to verify in sync modemoneromooo-monero2020-12-101-9/+11
| | | | | | | | | | | | | | | It would otherwise be possible for a peer to send bad blocks, then disconnect and reconnect again, escaping bans
* | | Merge pull request #7009Alexander Blair2020-12-104-24/+23
|\ \ \ | | | | | | | | | | | | 7414e2bac Change epee binary output from std::stringstream to byte_stream (Lee Clagett)
| * | | Change epee binary output from std::stringstream to byte_streamLee Clagett2020-10-104-24/+23
| |/ /
* | | Merge pull request #7003Alexander Blair2020-12-101-43/+50
|\ \ \ | |/ / |/| | | | | 08eb0949f Change to more efficient allocation strategy in byte_stream (Lee Clagett)
| * | Change to more efficient allocation strategy in byte_streamLee Clagett2020-10-131-43/+50
| |/
* | Merge pull request #7018luigi11112020-11-292-2/+8
|\ \ | | | | | | | | | a9cd5d9 cryptonote_core: dandelion - use local height or median height if syncing (xiphon)
| * | cryptonote_core: dandelion - use local height or median height if syncingxiphon2020-11-252-2/+8
| | |
* | | Merge pull request #6973luigi11112020-11-291-0/+109
|\ \ \ | | | | | | | | | | | | be84f67 Switch to Dandelion++ fluff mode if no out connections for stem mode (Lee Clagett)
| * | | Switch to Dandelion++ fluff mode if no out connections for stem modeLee Clagett2020-11-031-0/+109
| | |/ | |/|
* | | Merge pull request #6937luigi11112020-11-291-2/+2
|\ \ \ | | | | | | | | | | | | 8a282f6 Add RELINK_TARGETS, monero_add_target_no_relink and use monero_add_executable/monero_add_library where possible (mj-xmr) Add monero_add_minimal_executable and use in tests (mj-xmr)
| * | | Add RELINK_TARGETS, monero_add_target_no_relink and use ↵mj-xmr2020-10-281-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | 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 #6856luigi11112020-11-281-18/+0
|\ \ \ | |_|/ |/| | | | | db70af1 Unit Tests: Remove block reward upper bound size checks (TheCharlatan)
| * | Unit Tests: Remove block reward upper bound size checksTheCharlatan2020-10-031-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests running after being compiled with `make debug-test` failed with ``` [ FAILED ] block_reward_and_current_block_weight.fails_on_huge_median_size [ FAILED ] block_reward_and_current_block_weight.fails_on_huge_block_weight ``` With the introduction of the patch in https://github.com/monero-project/monero/commit/be82c40703d267184ee07bf7be71002122c86656#diff-1a57d4e6013984c420da98d1adde0eafL113 the assertions checking the weight of the median and current block against a size limit were removed. Since the limit is now enforced by a long divisor and a uint64_t type, checking in a separate test makes little sense, so they are removed here.
* | | Better log message for unusable anon networksHoward Chu2020-11-161-1/+2
| |/ |/|
* | Dandelion++: skip desynced peers in stem phasexiphon2020-10-121-34/+41
|/
* Merge pull request #6757luigi11112020-09-031-20/+20
|\ | | | | | | 6a37da8 threadpool: guard against exceptions in jobs, and armour plating (moneromooo-monero)
| * threadpool: guard against exceptions in jobs, and armour platingmoneromooo-monero2020-09-011-20/+20
| | | | | | | | | | Those would, if uncaught, exit run and leave the waiter to wait indefinitely for the number of active jobs to reach 0
* | Merge pull request #6769Alexander Blair2020-08-271-0/+41
|\ \ | | | | | | | | | b641e0a2c Add clear method to byte_stream (Lee Clagett)
| * | Add clear method to byte_streamLee Clagett2020-08-171-0/+41
| | |
* | | CLSAG optimizationsSarang Noether2020-08-271-83/+81
| | |
* | | Integrate CLSAGs into moneromoneromooo-monero2020-08-272-1/+185
| | | | | | | | | | | | They are allowed from v12, and MLSAGs are rejected from v13.
* | | unit_tests: add ge_triple_scalarmult_base_vartime testmoneromooo-monero2020-08-271-0/+62
| | |
* | | Merge pull request #6690Alexander Blair2020-08-272-2/+2
|\ \ \ | |/ / |/| | | | | 7175dcb10 replace most boost serialization with existing monero serialization (moneromooo-monero)
| * | replace most boost serialization with existing monero serializationmoneromooo-monero2020-08-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Revert "Use domain-separated ChaCha20 for in-memory key encryption"luigi11112020-08-172-74/+0
|/ / | | | | | | This reverts commit 921dd8dde5d381052d0aa2936304a3541a230c55.
* | Merge pull request #6718Alexander Blair2020-08-161-0/+11
|\ \ | | | | | | | | | 85efc88c1 Fix overflow issue in epee:misc_utils::rolling_median_t and median(), with unit test (koe)
| * | Fix overflow issue in epee:misc_utils::rolling_median_t and median(), with ↵koe2020-07-231-0/+11
| |/ | | | | | | unit test
* | Merge pull request #6716Alexander Blair2020-08-161-1/+1
|\ \ | | | | | | | | | 76c16822d wallet2_api: implement runtime proxy configuration (xiphon)
| * | wallet2_api: implement runtime proxy configurationxiphon2020-07-201-1/+1
| |/