aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | epee: support unicode in parsed stringsmoneromooo-monero2019-08-161-0/+17
| | |
* | | Merge pull request #5652luigi11112019-08-151-2/+2
|\ \ \ | |_|/ |/| | | | | f81cb4f unit_tests: add more leeway to the 'same distribution' check (moneromooo-monero)
| * | unit_tests: add more leeway to the "same distribution" checkmoneromooo-monero2019-06-161-2/+2
| |/ | | | | | | | | This is an inherently probabilistic check, which occasionally fails for a matching distribution
* | Merge pull request #5529luigi11112019-07-243-8/+8
|\ \ | | | | | | | | | de27651 use crypto::rand instead of libc rand in a few tests (moneromooo-monero)
| * | use crypto::rand instead of libc rand in a few testsmoneromooo-monero2019-05-103-8/+8
| | | | | | | | | | | | We don't need secure randomness here, but it should shut coverity up
* | | Merge pull request #5502luigi11112019-07-242-1/+1
|\ \ \ | | | | | | | | | | | | | | | | 25a7cfd add a few checks where it seems appropriate (moneromooo-monero) 1a66a86 remove unused code (moneromooo-monero)
| * | | remove unused codemoneromooo-monero2019-04-291-1/+0
| | | |
| * | | add a few checks where it seems appropriatemoneromooo-monero2019-04-291-0/+1
| | | |
* | | | allow blocking whole subnetsmoneromooo-monero2019-07-162-3/+53
| | | |
* | | | keccak: guard against misaligned memory accesses on ARMmoneromooo-monero2019-07-041-0/+17
| |_|/ |/| | | | | | | | | | | The code generated is exactly the same as the direct access one on x86_64
* | | unit_tests: make the density test a bit less stringentmoneromooo-monero2019-05-201-1/+1
| |/ |/| | | | | It's an inherently random test
* | Merge pull request #5510Riccardo Spagni2019-05-071-4/+4
|\ \ | | | | | | | | | e9809382 fix wide difficulty conversion with some versions of boost (moneromooo-monero)
| * | fix wide difficulty conversion with some versions of boostmoneromooo-monero2019-05-011-4/+4
| |/
* | Merge pull request #5508Riccardo Spagni2019-05-071-3/+1
|\ \ | | | | | | | | | 1c44e658 wallet2: reject standalone short payment IDs in monero: URI API (moneromooo-monero)
| * | wallet2: reject standalone short payment IDs in monero: URI APImoneromooo-monero2019-05-011-3/+1
| |/
* | Merge pull request #5499Riccardo Spagni2019-05-072-0/+203
|\ \ | | | | | | | | | a4c4a2d8 blockchain: keep a rolling long term block weight median (moneromooo-monero)
| * | blockchain: keep a rolling long term block weight medianmoneromooo-monero2019-05-022-0/+203
| |/
* | Merge pull request #5496Riccardo Spagni2019-05-071-11/+18
|\ \ | | | | | | | | | 0eb0d6b8 rpc: improve get_output_distribution (moneromooo-monero)
| * | rpc: improve get_output_distributionmoneromooo-monero2019-04-251-11/+18
| |/ | | | | | | | | | | | | It can now handle small reorgs without having to rescan the whole blockchain. Also add a test for it.
* / unit_tests: fix crash in debug in output_distribution testmoneromooo-monero2019-04-251-0/+7
|/ | | | | updating the block size limit needs recent block sizes, so we feed it dummy ones
* unit_tests: don't delete log file on windows, it will failmoneromooo-monero2019-04-231-0/+3
|
* Fix socks tests in windows and handle errors betterLee Clagett2019-04-191-7/+13
|
* wallet2: "output lineup" fake out selectionmoneromooo-monero2019-04-181-0/+117
| | | | | Based on python code by sarang: https://github.com/SarangNoether/skunkworks/blob/outputs/outputs/simulate.py
* Merge pull request #5413Riccardo Spagni2019-04-171-6/+6
|\ | | | | | | 5fafb90e testdb: add override keyword where missing (stoffu)
| * testdb: add override keyword where missingstoffu2019-04-171-6/+6
| | | | | | | | and delete obsolete BlockchainBDB::get_tx_output_indices along the way
* | unit_tests: undo is_blocked implementation factoringmoneromooo-monero2019-04-161-1/+12
|/ | | | The is_host_blocked method is not on master yet
* Merge pull request #5425Riccardo Spagni2019-04-161-12/+17
|\ | | | | | | 58585986 p2p: fix integer overflow in host bans (moneromooo-monero)
| * p2p: fix integer overflow in host bansmoneromooo-monero2019-04-111-12/+17
| |
* | Merge pull request #5424Riccardo Spagni2019-04-162-142/+57
|\ \ | | | | | | | | | 93bb2f48 ringct: prevent use of full ringct signatures for more than one input (moneromooo-monero)
| * | ringct: prevent use of full ringct signatures for more than one inputmoneromooo-monero2019-04-112-142/+57
| |/
* | Merge pull request #5414Riccardo Spagni2019-04-161-8/+9
|\ \ | | | | | | | | | | | | | | | | | | e9fac29a unit_tests/long_term_block_weight: some tweaks that seem to make more sense (stoffu) 467f4c7e tests/block_weight: use integer division when computing median (stoffu) 815d08dc tests/block_weight: remove unused MULTIPLIER_SMALL (stoffu) 661f1fb8 blockchain: remove unused calc of short_term_constraint (stoffu)
| * | unit_tests/long_term_block_weight: some tweaks that seem to make more sensestoffu2019-04-091-8/+9
| |/
* / blockchain_db: fix db txn ending too earlymoneromooo-monero2019-04-141-0/+4
|/ | | | | | | | | | The db txn in add_block ending caused the entire overarching batch txn to stop. Also add a new guard class so a db txn can be stopped in the face of exceptions. Also use a read only db txn in init when the db itself is read only, and do not save the max tx size in that case.
* Merge pull request #5391Riccardo Spagni2019-04-061-0/+5
|\ | | | | | | 71907980 unit_tests: fix long term block weight test after cache change (moneromooo-monero)
| * unit_tests: fix long term block weight test after cache changemoneromooo-monero2019-04-031-0/+5
| |
* | Merge pull request #5341Riccardo Spagni2019-04-061-6/+7
|\ \ | |/ |/| | | 0218bc49 test: hmac_keccak - fix number of chunks counting (Dusan Klinec)
| * test: hmac_keccak - fix number of chunks countingDusan Klinec2019-03-241-6/+7
| |
* | Merge pull request #5239Riccardo Spagni2019-04-013-0/+92
|\ \ | | | | | | | | | 91f4c7f4 Make difficulty 128 bit instead of 64 bit (moneromooo-monero)
| * | Make difficulty 128 bit instead of 64 bitmoneromooo-monero2019-03-243-0/+92
| |/ | | | | | | | | | | Based on Boolberry work by: jahrsg <jahr@jahr.me> cr.zoidberg <crypto.zoidberg@gmail.com>
* / Added socks proxy (tor/i2pd/kovri) support to walletLee Clagett2019-03-252-1/+91
|/
* Merge pull request #5274Riccardo Spagni2019-03-241-1/+1
|\ | | | | | | dc0c0c91 tests: disable wallet SSL init for tests involving wallet2 (moneromooo-monero)
| * tests: disable wallet SSL init for tests involving wallet2moneromooo-monero2019-03-121-1/+1
| |
* | Merge pull request #5256Riccardo Spagni2019-03-211-0/+12
|\ \ | | | | | | | | | 4b21d38d blockchain: speed up getting N blocks weights/long term weights (moneromooo-monero)
| * | blockchain: speed up getting N blocks weights/long term weightsmoneromooo-monero2019-03-081-0/+12
| |/
* | Merge pull request #5211Riccardo Spagni2019-03-212-0/+153
|\ \ | | | | | | | | | | | | | | | c9b13fbb tests/trezor: HF9 and HF10 tests (Dusan Klinec) a1fd1d49 device/trezor: HF10 support added, wallet::API (Dusan Klinec) d74d26f2 crypto: hmac_keccak added (Dusan Klinec)
| * | crypto: hmac_keccak addedDusan Klinec2019-03-202-0/+153
| |/
* | Adding classes, functions, and utilities for common LMDB operations.Lee Clagett2019-03-192-0/+406
| |
* | Update 2019 copyrightbinaryFate2019-03-0546-46/+46
|/
* Merge pull request #4852Riccardo Spagni2019-03-051-0/+19
|\ | | | | | | 057c279c epee: add SSL support (Martijn Otto)
| * epee: add SSL supportMartijn Otto2019-03-051-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPC connections now have optional tranparent SSL. An optional private key and certificate file can be passed, using the --{rpc,daemon}-ssl-private-key and --{rpc,daemon}-ssl-certificate options. Those have as argument a path to a PEM format private private key and certificate, respectively. If not given, a temporary self signed certificate will be used. SSL can be enabled or disabled using --{rpc}-ssl, which accepts autodetect (default), disabled or enabled. Access can be restricted to particular certificates using the --rpc-ssl-allowed-certificates, which takes a list of paths to PEM encoded certificates. This can allow a wallet to connect to only the daemon they think they're connected to, by forcing SSL and listing the paths to the known good certificates. To generate long term certificates: openssl genrsa -out /tmp/KEY 4096 openssl req -new -key /tmp/KEY -out /tmp/REQ openssl x509 -req -days 999999 -sha256 -in /tmp/REQ -signkey /tmp/KEY -out /tmp/CERT /tmp/KEY is the private key, and /tmp/CERT is the certificate, both in PEM format. /tmp/REQ can be removed. Adjust the last command to set expiration date, etc, as needed. It doesn't make a whole lot of sense for monero anyway, since most servers will run with one time temporary self signed certificates anyway. SSL support is transparent, so all communication is done on the existing ports, with SSL autodetection. This means you can start using an SSL daemon now, but you should not enforce SSL yet or nothing will talk to you.