summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* blockchain: remove buggy long term block weight cachemoneromooo-monero2019-02-191-3/+3
| | | | | | It seems to be buggy on reorgs, and prevents the use of a blockchain with two nodes. We'll speed this up again if/when the need arises.
* Merge pull request #5159Riccardo Spagni2019-02-181-8/+1
|\ | | | | | | 1d628550 blockchain: fix long term weight addition on pop/init (moneromooo-monero)
| * blockchain: fix long term weight addition on pop/initmoneromooo-monero2019-02-181-8/+1
| |
* | tests: add a CNv4 JIT testmoneromooo-monero2019-02-182-0/+133
| |
* | performance_tests: add tests for new Cryptonight variantsmoneromooo-monero2019-02-182-10/+10
|/
* Build fixes for some platformsmoneromooo-monero2019-02-141-1/+1
|
* Adding cnv4-2 tweaksLee Clagett2019-02-141-10/+10
|
* Cryptonight variant 4 aka CryptonightRSChernykh2019-02-143-6/+35
| | | | It introduces random integer math into the main loop.
* ringct: the commitment mask is now deterministicmoneromooo-monero2019-02-122-36/+0
| | | | | | saves space in the tx and is safe Found by knaccc
* ringct: encode 8 byte amount, saving 24 bytes per outputmoneromooo-monero2019-02-123-6/+22
| | | | Found by knaccc
* add a bulletproof version, new bulletproof type, and rct configmoneromooo-monero2019-02-1211-78/+89
| | | | This makes it easier to modify the bulletproof format
* notify: handle arbitrary tagsmoneromooo-monero2019-02-122-0/+91
|
* ArticMine's new block weight algorithmmoneromooo-monero2019-02-129-25/+738
| | | | | | | | | | | | | | | | | | | | | | | | | | This curbs runaway growth while still allowing substantial spikes in block weight Original specification from ArticMine: here is the scaling proposal Define: LongTermBlockWeight Before fork: LongTermBlockWeight = BlockWeight At or after fork: LongTermBlockWeight = min(BlockWeight, 1.4*LongTermEffectiveMedianBlockWeight) Note: To avoid possible consensus issues over rounding the LongTermBlockWeight for a given block should be calculated to the nearest byte, and stored as a integer in the block itself. The stored LongTermBlockWeight is then used for future calculations of the LongTermEffectiveMedianBlockWeight and not recalculated each time. Define: LongTermEffectiveMedianBlockWeight LongTermEffectiveMedianBlockWeight = max(300000, MedianOverPrevious100000Blocks(LongTermBlockWeight)) Change Definition of EffectiveMedianBlockWeight From (current definition) EffectiveMedianBlockWeight = max(300000, MedianOverPrevious100Blocks(BlockWeight)) To (proposed definition) EffectiveMedianBlockWeight = min(max(300000, MedianOverPrevious100Blocks(BlockWeight)), 50*LongTermEffectiveMedianBlockWeight) Notes: 1) There are no other changes to the existing penalty formula, median calculation, fees etc. 2) There is the requirement to store the LongTermBlockWeight of a block unencrypted in the block itself. This is to avoid possible consensus issues over rounding and also to prevent the calculations from becoming unwieldy as we move away from the fork. 3) When the EffectiveMedianBlockWeight cap is reached it is still possible to mine blocks up to 2x the EffectiveMedianBlockWeight by paying the corresponding penalty.
* Rename "blackball" for claritymoneromooo-monero2018-10-181-5/+5
| | | | Apparently some people seem to think it's a censorship list...
* Merge pull request #4036Riccardo Spagni2018-10-075-138/+290
| | | | | 9acf42d3 Multisig M/N functionality core tests added (naughtyfox) 9f3963e8 Arbitrary M/N multisig schemes: * support in wallet2 * support in monero-wallet-cli * support in monero-wallet-rpc * support in wallet api * support in monero-gen-trusted-multisig * unit tests for multisig wallets creation (naughtyfox)
* Merge pull request #4511Riccardo Spagni2018-10-071-562/+562
| | | | f9485a36 tests: update crypto tests data file after PRNG changes (moneromooo-monero)
* Merge pull request #4492Riccardo Spagni2018-10-061-0/+4
| | | | 7f2ad1a7 functional_tests: fix linking on Windows (iDunk5400)
* Merge pull request #4464Riccardo Spagni2018-10-021-1/+1
| | | | bef1750f unit_tests: fix longstanding DNS related unit test (moneromooo-monero)
* Merge pull request #4459Riccardo Spagni2018-09-294-38/+47
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bcf3f6af fuzz_tests: catch unhandled exceptions (moneromooo-monero) 3ebd05d4 miner: restore stream flags after changing them (moneromooo-monero) a093092e levin_protocol_handler_async: do not propagate exception through dtor (moneromooo-monero) 1eebb82b net_helper: do not propagate exceptions through dtor (moneromooo-monero) fb6a3630 miner: do not propagate exceptions through dtor (moneromooo-monero) 2e2139ff epee: do not propagate exception through dtor (moneromooo-monero) 0749a8bd db_lmdb: do not propagate exceptions in dtor (moneromooo-monero) 1b0afeeb wallet_rpc_server: exit cleanly on unhandled exceptions (moneromooo-monero) 418a9936 unit_tests: catch unhandled exceptions (moneromooo-monero) ea7f9543 threadpool: do not propagate exceptions through the dtor (moneromooo-monero) 6e855422 gen_multisig: nice exit on unhandled exception (moneromooo-monero) 53df2deb db_lmdb: catch error in mdb_stat calls during migration (moneromooo-monero) e67016dd blockchain_blackball: catch failure to commit db transaction (moneromooo-monero) 661439f4 mlog: don't remove old logs if we failed to rename the current file (moneromooo-monero) 5fdcda50 easylogging++: test for NULL before dereference (moneromooo-monero) 7ece1550 performance_test: fix bad last argument calling add_arg (moneromooo-monero) a085da32 unit_tests: add check for page size > 0 before dividing (moneromooo-monero) d8b1ec8b unit_tests: use std::shared_ptr to shut coverity up about leaks (moneromooo-monero) 02563bf4 simplewallet: top level exception catcher to print nicer messages (moneromooo-monero) c57a65b2 blockchain_blackball: fix shift range for 32 bit archs (moneromooo-monero)
| * fuzz_tests: catch unhandled exceptionsmoneromooo-monero2018-09-271-0/+4
| | | | | | | | Coverity 175293, 175312, 175266
| * unit_tests: catch unhandled exceptionsmoneromooo-monero2018-09-271-0/+4
| | | | | | | | Coverity 182560
| * performance_test: fix bad last argument calling add_argmoneromooo-monero2018-09-271-4/+4
| | | | | | | | Coverity 182572
| * unit_tests: add check for page size > 0 before dividingmoneromooo-monero2018-09-271-0/+1
| | | | | | | | Coverity 188426
| * unit_tests: use std::shared_ptr to shut coverity up about leaksmoneromooo-monero2018-09-271-34/+34
| | | | | | | | | | | | Coverity 188436, 188433, 188428, 188415, 188416, 188410, 188400, 188298, 188299, 188321, 188342, 188343, 188355, 188357, 188361, 188366, 188374
* | Merge pull request #4424Riccardo Spagni2018-09-292-6/+6
|\ \ | | | | | | | | | 92d1da28 unit_tests: fix build with GCC 5.4.0 on ubuntu (moneromooo-monero)
| * | unit_tests: fix build with GCC 5.4.0 on ubuntumoneromooo-monero2018-09-232-6/+6
| |/
* | Merge pull request #4407Riccardo Spagni2018-09-291-0/+24
|\ \ | |/ |/| | | 43a06350 ringdb: use cursors to be a bit faster (moneromooo-monero)
| * ringdb: use cursors to be a bit fastermoneromooo-monero2018-09-201-0/+24
| |
* | Merge pull request #4404Riccardo Spagni2018-09-221-10/+10
|\ \ | | | | | | | | | f3cd51a1 cryptonote tweak v2.2 (Lee Clagett)
| * | cryptonote tweak v2.2Lee Clagett2018-09-221-10/+10
| | |
* | | Merge pull request #4385Riccardo Spagni2018-09-211-0/+32
|\ \ \ | | | | | | | | | | | | 6dbbc690 unit_tests: sanity check on transaction weight (moneromooo-monero)
| * | | unit_tests: sanity check on transaction weightmoneromooo-monero2018-09-151-0/+32
| |/ /
* | | Merge pull request #4384Riccardo Spagni2018-09-211-0/+0
|\ \ \ | | | | | | | | | | | | 27af46c9 tests: update test wallet keys file for encrypted keys (moneromooo-monero)
| * | | tests: update test wallet keys file for encrypted keysmoneromooo-monero2018-09-151-0/+0
| |/ /
* | | Merge pull request #4371Riccardo Spagni2018-09-212-0/+916
|\ \ \ | | | | | | | | | | | | 55c7cd14 Adding expect<T> - a value-or-error implementation (Lee Clagett)
| * | | Adding expect<T> - a value-or-error implementationLee Clagett2018-09-122-0/+916
| | | |
* | | | Merge pull request #4209Riccardo Spagni2018-09-211-1/+56
|\ \ \ \ | |_|_|/ |/| | | | | | | 26a42fe5 Added features to epee::span<T> : - Support for classes - Added `remove_prefix` function - Added `to_mut_span` and `as_mut_byte_span` (Lee Clagett)
| * | | Added features to epee::span<T> :Lee Clagett2018-08-031-1/+56
| | | | | | | | | | | | | | | | | | | | | | | | - Support for classes - Added `remove_prefix` function - Added `to_mut_span` and `as_mut_byte_span`
* | | | Merge pull request #4391Riccardo Spagni2018-09-181-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | e9bce045 Fix missing std::runtime_error def in difficulty.cpp (Howard Chu)
| * | | | Fix missing std::runtime_error def in difficulty.cppHoward Chu2018-09-161-0/+1
| | |_|/ | |/| |
* | | | Merge pull request #4306Riccardo Spagni2018-09-181-0/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 56b50faa wallet: use wipeable_string in more places where a secret is used (moneromooo-monero) 07ec748c wipeable_string: add hex_to_pod function (moneromooo-monero)
| * | | | wipeable_string: add hex_to_pod functionmoneromooo-monero2018-09-121-0/+7
| | | | |
* | | | | api/wallet: properly disable key encryptionstoffu2018-09-172-3/+3
| |/ / / |/| | |
* | | | Merge pull request #4253Riccardo Spagni2018-09-141-6/+6
|\ \ \ \ | | | | | | | | | | | | | | | be001326 remove obsolete daemon selection of fake outs and old tx construction (moneromooo-monero)
| * | | | remove obsolete daemon selection of fake outs and old tx constructionmoneromooo-monero2018-09-141-6/+6
| | | | |
* | | | | Merge pull request #4260Riccardo Spagni2018-09-141-4/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a54dbaee blockchain_blackball: add --force-chain-reaction-pass flag (moneromooo-monero) 44439c32 record blackballs as amount/offset, and add export ability (moneromooo-monero) 4bce935b blockchain_blackball: more optimizations (moneromooo-monero) b66ba783 blockchain_blackball: do not process duplicate blockchains parts (moneromooo-monero) 639a3c01 blockchain_blackball: make it clear secondary passes are not incremental (moneromooo-monero) eb8a51be blockchain_blackball: detect spent outputs by partial ring reuse (moneromooo-monero) d6d276c6 blockchain_blackball: fix chain reaction phase in incremental mode (moneromooo-monero) 2b2a681b blockchain_blackball: avoid false positives for different amounts (moneromooo-monero) 80e4fef3 blockchain_blackball: set transaction looping txn to read only (moneromooo-monero) 4801d6b5 blockchain_blackball: add stats (moneromooo-monero) 846190fd blockchain_blackball: support pre-v2 databases (moneromooo-monero) daa6cc7d blockchain_blackball: use LMDB for the cache (moneromooo-monero) 50cb370d ringdb: allow blackballing many outputs at once (moneromooo-monero)
| * | | | | record blackballs as amount/offset, and add export abilitymoneromooo-monero2018-09-101-4/+4
| | |_|_|/ | |/| | |
* | | | | Merge pull request #4254Riccardo Spagni2018-09-141-0/+4
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | de905d4b fuzz_tests: use __AFL_INIT when available (moneromooo-monero)
| * | | | fuzz_tests: use __AFL_INIT when availablemoneromooo-monero2018-08-131-0/+4
| | | | | | | | | | | | | | | | | | | | alleged to speed things up
* | | | | Merge pull request #4219Riccardo Spagni2018-09-1134-235/+2494
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9137ad2c blockchain: add a testnet v9 a day after v8 (moneromooo-monero) ac4f71c2 wallet2: bump testnet rollback to account for coming reorg (moneromooo-monero) 8f418a6d bulletproofs: #include <openssl/bn.h> (moneromooo-monero) 2bf63650 bulletproofs: speed up the latest changes a bit (moneromooo-monero) 044dff5a bulletproofs: scale points by 8 to ensure subgroup validity (moneromooo-monero) c83012c4 bulletproofs: match aggregated verification to sarang's latest prototype (moneromooo-monero) ce0c7432 performance_tests: add padded bulletproof construction (moneromooo-monero) 1224e53b core_tests: add a test for 4-aggregated BP verification (moneromooo-monero) 0e6ed559 fuzz_tests: add a bulletproof fuzz test (moneromooo-monero) 463434d1 more comprehensive test for ge_p3 comparison to identity/point at infinity (moneromooo-monero) d0a0565f unit_tests: add a few more multiexp unit tests (moneromooo-monero) 6526d87f core_tests: add a test for a tx with empty bulletproof (moneromooo-monero) a129bbd9 multiexp: fix maxscalar off by one (moneromooo-monero) 7ed496cc ringct: error out when hashToPoint* returns the point at infinity (moneromooo-monero) d1591853 cryptonote_basic: check output type before using it (moneromooo-monero) 61632dc1 ringct: prevent a potential very large allocation (moneromooo-monero) a4317e61 crypto: some paranoid checks in generate_signature/check_signature (moneromooo-monero) 7434df1c crypto: never return zero in random32_unbiased (moneromooo-monero) 0825e974 multiexp: fix wrong Bos-Coster result for 1 non trivial input (moneromooo-monero) a1359ad4 Check inputs to addKeys are in range (moneromooo-monero) fe0fa3b9 bulletproofs: reject x, y, z, or w[i] being zero (moneromooo-monero) 5ffb2ff9 v8: per byte fee, pad bulletproofs, fixed 11 ring size (moneromooo-monero) 869b3bf8 bulletproofs: a few fixes from the Kudelski review (moneromooo-monero) c4291762 bulletproofs: reject points not in the main subgroup (moneromooo-monero) 15697177 bulletproofs: speed up a few multiplies using existing Hi cache (moneromooo-monero) 0b05a0fa Add Pippenger cache and limit Straus cache size (moneromooo-monero) 51eb3bdc add pippenger unit tests (moneromooo-monero) b17b8db3 performance_tests: add stats and loop count multiplier options (moneromooo-monero) 7314d919 perf_timer: split timer class into a base one and a logging one (moneromooo-monero) d126a02b performance_tests: add aggregated bulletproof tx verification (moneromooo-monero) 263431c4 Pippenger multiexp (moneromooo-monero) 1ed0ed4d multiexp: cut down on memory allocations (moneromooo-monero) 1b867e7f precalc the ge_p3 representation of H (moneromooo-monero) ef56529f performance_tests: document the tested bulletproof layouts (moneromooo-monero) 30111780 unit_tests: a couple more bulletproof unit tests for gamma (moneromooo-monero) c444b1b2 require canonical multi output bulletproof layout (moneromooo-monero) 7e67c52f Add a define for the max number of bulletproof multi-outputs (moneromooo-monero) 2a8fcb42 Bulletproof aggregated verification and tests (moneromooo-monero) 126196b0 multiexp: some speedups (moneromooo-monero) 71d67bda aligned: aligned memory alloc/realloc/free (moneromooo-monero) cb9ecab1 performance_tests: add signature generation/verification (moneromooo-monero) bacf0a1e bulletproofs: add aggregated verification (moneromooo-monero) e895c3de make straus cached mode thread safe, and add tests for it (moneromooo-monero) 7f48bf05 multiexp: bos coster now works for just one point (moneromooo-monero) 9ce9f8ca bulletproofs: add multi output bulletproofs to rct (moneromooo-monero) f34e2e20 performance_tests: add tx checking tests with more than 2 outputs (moneromooo-monero) 0793184b performance_tests: add a --verbose flag, and default to terse (moneromooo-monero) 939bc223 add Straus multiexp (moneromooo-monero) 9ff6e6a0 ringct: add bos coster multiexp (moneromooo-monero) e9164bb3 bulletproofs: misc optimizations (moneromooo-monero) 112f32f0 performance_tests: add crypto ops (moneromooo-monero) f5d7b993 performance_tests: add bulletproofs (moneromooo-monero) 8f4ce989 performance_tests: add RingCT MLSAG gen/ver tests (moneromooo-monero) 1aa10c43 performance_tests: add (Borromean) range proofs (moneromooo-monero) aacfd6e3 bulletproofs: multi-output bulletproofs (moneromooo-monero) cb1cc757 performance_tests: don't override log level to 0 (moneromooo-monero)