summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3815Riccardo Spagni2018-05-211-0/+1
|\ | | | | | | ffe9d882 speed up get_output_distribution (and precalc common case) (moneromooo-monero)
| * speed up get_output_distribution (and precalc common case)moneromooo-monero2018-05-191-0/+1
| |
* | unit_tests: set default data dir to the source tree at build timemoneromooo-monero2018-05-152-8/+5
|/
* unit_tests: fix build after get_output_didstribution signature changemoneromooo-monero2018-04-281-1/+1
|
* Only log an error if fork version is higher AND is not known.Thaer Khawaja2018-04-222-0/+2
|
* Merge pull request #3336Riccardo Spagni2018-03-162-4/+4
|\ | | | | | | 57c0b1ed Fix typos in various files (Dimitris Apostolou)
| * Fix typos in various filesDimitris Apostolou2018-03-152-4/+4
| |
* | add RPC to get a histogram of outputs of a given amountmoneromooo-monero2018-03-161-1/+2
| |
* | tests/hash: correctly reference crypto HASH_SIZE for less confusionAnythingTechPro2018-03-141-1/+1
|/
* chacha: call prehashed version explicitly as generate_chacha_key_prehashedstoffu2018-03-141-2/+2
| | | | | | hash: add prehashed version cn_slow_hash_prehashed slow-hash: let cn_slow_hash take 4th parameter for deciding prehashed or not slow-hash: add support for prehashed version for the other 3 platforms
* crypto: revert odd namespace changes made in #3303stoffu2018-03-141-6/+6
|
* keypair::generate: always require hw::device to avoid possible mistakestoffu2018-03-143-4/+4
|
* device: untangle cyclic depenencystoffu2018-03-141-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | When #3303 was merged, a cyclic dependency chain was generated: libdevice <- libcncrypto <- libringct <- libdevice This was because libdevice needs access to a set of basic crypto operations implemented in libringct such as scalarmultBase(), while libringct also needs access to abstracted crypto operations implemented in libdevice such as ecdhEncode(). To untangle this cyclic dependency chain, this patch splits libringct into libringct_basic and libringct, where the basic crypto ops previously in libringct are moved into libringct_basic. The cyclic dependency is now resolved thanks to this separation: libcncrypto <- libringct_basic <- libdevice <- libcryptonote_basic <- libringct This eliminates the need for crypto_device.cpp and rctOps_device.cpp. Also, many abstracted interfaces of hw::device such as encrypt_payment_id() and get_subaddress_secret_key() were previously implemented in libcryptonote_basic (cryptonote_format_utils.cpp) and were then called from hw::core::device_default, which is odd because libdevice is supposed to be independent of libcryptonote_basic. Therefore, those functions were moved to device_default.cpp.
* Merge pull request #3360Riccardo Spagni2018-03-141-51/+51
|\ | | | | | | 1ff35fda Wallet API: make nettype non-defaulted to disambiguate from deprecated versions (and make libwallet_api_tests compilable) (stoffu)
| * Wallet API: make nettype non-defaulted to disambiguate from deprecated ↵stoffu2018-03-061-51/+51
| | | | | | | | versions (and make libwallet_api_tests compilable)
* | fuzz_tests: set small subaddress lookahead for speedmoneromooo-monero2018-03-143-0/+3
|/
* tweaks to the monerov1 cryptonight algorithmLee Clagett2018-03-051-5/+5
|
* Monero Cryptonight variants, and add one for v7moneromooo-monero2018-03-053-3/+15
| | | | | This is the first variant of many, with the intent to improve Monero's resistance to ASICs and encourage mining decentralization.
* Merge pull request #3277Riccardo Spagni2018-03-0511-38/+38
|\ | | | | | | | | | | | | | | | | 0e7ad2e2 Wallet API: generalize 'bool testnet' to 'NetworkType nettype' (stoffu) af773211 Stagenet (stoffu) cc9a0bee command_line: allow args to depend on more than one args (stoffu) 55f8d917 command_line::get_arg: remove 'required' for dependent args as they're always optional (stoffu) 450306a0 command line: allow has_arg to handle arg_descriptor<bool,false,true> #3318 (stoffu) 9f9e095a Use `genesis_tx` parameter in `generate_genesis_block`. #3261 (Jean Pierre Dudey)
| * Stagenetstoffu2018-03-0511-38/+38
| |
* | Correct spelling mistakes.Edward Betts2018-03-055-5/+5
|/
* Code modifications to integrate Ledger HW device into monero-wallet-cli.cslashm2018-03-0414-32/+48
| | | | | | | | | | | | | | | | | | | The basic approach it to delegate all sensitive data (master key, secret ephemeral key, key derivation, ....) and related operations to the device. As device has low memory, it does not keep itself the values (except for view/spend keys) but once computed there are encrypted (with AES are equivalent) and return back to monero-wallet-cli. When they need to be manipulated by the device, they are decrypted on receive. Moreover, using the client for storing the value in encrypted form limits the modification in the client code. Those values are transfered from one C-structure to another one as previously. The code modification has been done with the wishes to be open to any other hardware wallet. To achieve that a C++ class hw::Device has been introduced. Two initial implementations are provided: the "default", which remaps all calls to initial Monero code, and the "Ledger", which delegates all calls to Ledger device.
* Merge pull request #3245Riccardo Spagni2018-02-202-17/+28
|\ | | | | | | | | 54c256bc unit_tests.serialization: refactored with ASSERT_EQ_MAP (stoffu) e6a60938 unit_tests: added gtest utility ASSERT_EQ_MAP for easily testing key-value map (stoffu)
| * unit_tests.serialization: refactored with ASSERT_EQ_MAPstoffu2018-02-121-17/+21
| |
| * unit_tests: added gtest utility ASSERT_EQ_MAP for easily testing key-value mapstoffu2018-02-121-0/+7
| |
* | options: remove testnet-* optionswhythat2018-02-161-2/+1
| |
* | Merge pull request #3226Riccardo Spagni2018-02-163-4/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e4646379 keccak: fix mdlen bounds sanity checking (moneromooo-monero) 2e3e90ac pass large parameters by const ref, not value (moneromooo-monero) 61defd89 blockchain: sanity check number of precomputed hash of hash blocks (moneromooo-monero) 9af6b2d1 ringct: fix infinite loop in unused h2b function (moneromooo-monero) 8cea8d0c simplewallet: double check a new multisig wallet is multisig (moneromooo-monero) 9b98a6ac threadpool: catch exceptions in dtor, to avoid terminate (moneromooo-monero) 24803ed9 blockchain_export: fix buffer overflow in exporter (moneromooo-monero) f3f7da62 perf_timer: rewrite to make it clear there is no division by zero (moneromooo-monero) c6ea3df0 performance_tests: remove add_arg call stray extra param (moneromooo-monero) fa6b4566 fuzz_tests: fix an uninitialized var in setup (moneromooo-monero) 03887f11 keccak: fix sanity check bounds test (moneromooo-monero) ad11db91 blockchain_db: initialize m_open in base class ctor (moneromooo-monero) bece67f9 miner: restore std::cout precision after modification (moneromooo-monero) 1aabd14c db_lmdb: check hard fork info drop succeeded (moneromooo-monero)
| * | pass large parameters by const ref, not valuemoneromooo-monero2018-02-021-1/+1
| | | | | | | | | | | | Coverity 136394 136397 136409 136526 136529 136533 175302
| * | performance_tests: remove add_arg call stray extra parammoneromooo-monero2018-02-021-1/+1
| | | | | | | | | | | | Coverity 182572
| * | fuzz_tests: fix an uninitialized var in setupmoneromooo-monero2018-02-021-2/+3
| |/ | | | | | | | | | | and comment it out, it's only used to generate a starting test case Coverity 182506
* | Merge pull request #3225Riccardo Spagni2018-02-161-13/+15
|\ \ | | | | | | | | | 71806327 dns: change default DNS to a worldwide selection (moneromooo-monero)
| * | dns: change default DNS to a worldwide selectionmoneromooo-monero2018-02-081-13/+15
| |/ | | | | | | DNSSEC aware servers picked from https://wiki.ipfire.org/dns/public-servers
* / Fix coverity issues in performance_tests/main.cpph9087141242018-02-071-0/+2
|/
* Tests: Fix building of two fuzz tests on WindowsiDunk54002018-01-281-0/+2
|
* Merge pull request #3185Riccardo Spagni2018-01-271-8/+8
|\ | | | | | | fccd1df1 performance_tests: fix build after merging two conflicting patches (moneromooo-monero)
| * performance_tests: fix build after merging two conflicting patchesmoneromooo-monero2018-01-261-8/+8
| |
* | Merge pull request #3151Riccardo Spagni2018-01-271-5/+5
|\ \ | | | | | | | | | ab2e9953 unit_tests: do not ASSERT_TRUE(decodeRct(...)) (moneromooo-monero)
| * | unit_tests: do not ASSERT_TRUE(decodeRct(...))moneromooo-monero2018-01-181-5/+5
| | | | | | | | | | | | decodeRct returns the amount, which may be zero
* | | Readd copyright starting datexmr-eric2018-01-2627-27/+27
| | |
* | | Update 2018 copyrightxmr-eric2018-01-26144-144/+144
| |/ |/|
* | Merge pull request #3082Riccardo Spagni2018-01-251-1/+1
|\ \ | | | | | | | | | 8b50209c fix for warning (Onur Altun)
| * | fix for warningOnur Altun2018-01-081-1/+1
| | | | | | | | | | | | monero/tests/unit_tests/memwipe.cpp:50:8: Warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] if (wipe) ASSERT_TRUE(memcmp(quux, "bar", 3));
* | | Merge pull request #3064Riccardo Spagni2018-01-252-52/+97
|\ \ \ | | | | | | | | | | | | 62c45c0d performance_tests: add a --filter option to select what to run (moneromooo-monero)
| * | | performance_tests: add a --filter option to select what to runmoneromooo-monero2018-01-042-52/+97
| |/ / | | | | | | | | | Removes a good bit of annoyance running those
* | | Merge pull request #3057Riccardo Spagni2018-01-251-1/+2
|\ \ \ | | | | | | | | | | | | 9ffa97fe Factor the monero donation address (Maxithi)
| * | | Factor the monero donation addressMaxithi2018-01-051-1/+2
| |/ / | | | | | | | | | Signed-off-by: Maxithi <34792056+Maxithi@users.noreply.github.com>
* | | Merge pull request #3042Riccardo Spagni2018-01-252-0/+97
|\ \ \ | |_|/ |/| | | | | ed215d34 performance_tests: add RingCT MLSAG gen/ver tests (moneromooo-monero)
| * | performance_tests: add RingCT MLSAG gen/ver testsmoneromooo-monero2017-12-312-0/+97
| | |
* | | Merge pull request #2993Riccardo Spagni2018-01-101-1/+1
|\ \ \ | | | | | | | | | | | | 776b44f1 Add misc hardening flags to the cmake machinery (moneromooo-monero)
| * | | Add misc hardening flags to the cmake machinerymoneromooo-monero2017-12-311-1/+1
| |/ / | | | | | | | | | See https://wiki.debian.org/Hardening#User_Space