summaryrefslogtreecommitdiff
path: root/tests/unit_tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #7825luigi11112021-08-261-9/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ccfed60 cmake: test is a reserved keyword (selsta) f0fa959 cmake: fix ccache detection (anon) 8dbe2e5 Daemon: Update average block size table (rbrunner7) 94bad34 wallet2: Don't auto lock device on process parsed blocks (tobtoht) 3c23aca ledger: don't lock for software device (tobtoht) 49beb8d ledger: use software device if we have view key (tobtoht) d188b5f wallet_api: getPassword (tobtoht) a395f36 depends, docker: fix bintray links (selsta) 0fecd7e blocks: fix cmake syntax (selsta) 76824bf Stop adding more outputs than bulletproof allows (Alex Opie) 67ba733 unit_tests: fix wipeable_string parse_hexstr test with latest gtest (xiphon) 402ba04 cmake: use CMAKE_CURRENT_LIST_DIR in FindLibUSB (selsta) 1565bcb epee: include public openssl header in cmake (selsta) 2e9af2a cmake: treat warnings as error in compiler flag tests (selsta) db564ef wallet_api: fix typo in exportKeyImages (selsta) 8507917 depends: add getmonero package mirror (selsta) 8716d2a cmake: fix non portable code (selsta)
| * unit_tests: fix wipeable_string parse_hexstr test with latest gtestxiphon2021-08-011-9/+9
| | | | | | | | https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973196
* | Merge pull request #7817luigi11112021-08-112-8/+8
|\ \ | | | | | | | | | 1510b1e unit_tests: fix broken tests (anon)
| * | unit_tests: fix broken testsanon2021-07-282-8/+8
| |/ | | | | | | | | boosted_tcp_server: check condition before sleep too cryptonote_protocol_handler: each instance of BlockchainLMDB requires separate thread due to private thread local fields
* / p2p: remove blocked addresses/hosts from peerlistmoneromooo-monero2021-08-051-0/+1
|/
* unit_tests: fix boost 1.58 compatibilityanon2021-04-081-1/+1
|
* Tests: Fix test node_server.bind_same_p2p_port from randomly crashingmj-xmr2021-04-051-0/+12
|
* Merge pull request #7621luigi11112021-03-291-0/+589
|\ | | | | | | | | 21ab1de cryptonote_protocol_handler: fix race condition (anon) 699e82c cryptonote_protocol_handler: add race condition demo (anon)
| * cryptonote_protocol_handler: add race condition demoanon2021-03-221-0/+589
| |
* | async_protocol_handler_config: add deadlock demoanon2021-03-121-0/+110
|/
* async_protocol_handler_config: add segfault demoanon2021-02-191-2/+73
|
* boosted_tcp_server: add segfault demoanon2021-01-191-0/+150
|
* Command max_bytes moved from dynamic map to static switchLee Clagett2020-12-231-3/+40
|
* Merge pull request #7248luigi11112021-01-061-0/+1
|\ | | | | | | 3c7eec1 add a max levin packet size by command type (moneromooo-monero)
| * add a max levin packet size by command typemoneromooo-monero2021-01-031-0/+1
| |
* | Merge pull request #7247Alexander Blair2021-01-011-1/+2
|\ \ | |/ |/| | | 57f7c2e53 protocol: more sanity checks in new chain block hashes (moneromooo-monero)
| * protocol: more sanity checks in new chain block hashesmoneromooo-monero2020-12-311-1/+2
| |
* | Add aggressive restrictions to pre-handshake p2p buffer limitLee Clagett2020-12-292-0/+4
|/
* 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 #7155Alexander Blair2020-12-261-0/+1
|\ | | | | | | | | 42ee30929 protocol: reject claimed block hashes that already are in the chain (moneromooo-monero) a436c3625 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
|/
* 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
* cryptonote_core: dandelion - use local height or median height if syncingxiphon2020-11-252-2/+8
|
* Better log message for unusable anon networksHoward Chu2020-11-161-1/+2
|
* Switch to Dandelion++ fluff mode if no out connections for stem modeLee Clagett2020-10-061-0/+109
|
* 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
| |/
* | Merge pull request #6603Alexander Blair2020-08-161-1/+16
|\ \ | | | | | | | | | 4e2377995 Change ZMQ-JSON txextra to hex and remove unnecessary base fields (Lee Clagett)
| * | Change ZMQ-JSON txextra to hex and remove unnecessary base fieldsLee Clagett2020-08-141-1/+16
| | |
* | | Merge pull request #6601Alexander Blair2020-08-161-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | 98c151ecb Optimize ZMQ-JSON vector reading; GetBlocksFast reads 24%+ faster (Lee Clagett) 60627c9f2 Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ faster (Lee Clagett) fe96e66eb Fix pruned tx for ZMQ's GetBlocksFast (Lee Clagett)
| * | | Fix pruned tx for ZMQ's GetBlocksFastLee Clagett2020-08-141-1/+1
| | | |
* | | | Merge pull request #6493Alexander Blair2020-08-162-0/+74
|\ \ \ \ | | | | | | | | | | | | | | | 921dd8dde Use domain-separated ChaCha20 for in-memory key encryption (Sarang Noether)
| * | | | Use domain-separated ChaCha20 for in-memory key encryptionSarang Noether2020-08-092-0/+74
| | |_|/ | |/| |
* | | | Merge pull request #6329Alexander Blair2020-08-162-0/+131
|\ \ \ \ | |_|/ / |/| | | | | | | 6bfcd3101 Updates InProofV1, OutProofV1, and ReserveProofV1 to new V2 variants that include all public proof parameters in Schnorr challenges, along with hash function domain separators. Includes new randomized unit tests. (Sarang Noether)
| * | | Updates InProofV1, OutProofV1, and ReserveProofV1 to new V2 variants that ↵Sarang Noether2020-08-092-0/+131
| |/ / | | | | | | | | | include all public proof parameters in Schnorr challenges, along with hash function domain separators. Includes new randomized unit tests.