aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | precomputed block hashes are now in blocks of N (currently 256)moneromooo-monero2017-09-182-0/+2
| | |_|_|/ | |/| | | | | | | | | | | | | This shaves a lot of space off binaries
* | | | | Subaddresseskenshi842017-10-0719-115/+138
| |_|/ / |/| | |
* | | | Merge pull request #2523Riccardo Spagni2017-10-065-10/+33
|\ \ \ \ | | | | | | | | | | | | | | | 540d6fa3 tests: pass data dir as arg (redfish)
| * | | | tests: pass data dir as argredfish2017-09-285-10/+33
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | This fixes test failure on builds that happen to be built in 'build/' instead of 'build/release'. Use boost filesystem path type.
* | | / Upgrades to epee::net_utils::network_addressLee Clagett2017-10-053-2/+233
| |_|/ |/| | | | | | | | | | | | | | | | | | | | - internal nullptr checks - prevent modifications to network_address (shallow copy issues) - automagically works with any type containing interface functions - removed fnv1a hashing - ipv4_network_address now flattened with no base class
* | | Merge pull request #2518Riccardo Spagni2017-10-022-2/+2
|\ \ \ | |_|/ |/| | | | | 6a0fb301 performance_tests: adjust some iterations down a bit (moneromooo-monero)
| * | performance_tests: adjust some iterations down a bitmoneromooo-monero2017-09-242-2/+2
| |/
* | wallet2: do not keep block hashes below last checkpointmoneromooo-monero2017-09-252-0/+130
| | | | | | | | This saves a lot of space and load/save time for wallet caches
* | move checkpoints in a separate librarymoneromooo-monero2017-09-257-9/+9
| |
* | performance_tests: add a test for is_out_to_acc_precompmoneromooo-monero2017-09-252-0/+23
| |
* | Merge pull request #2457Riccardo Spagni2017-09-251-1/+1
|\ \ | | | | | | | | | d2d8a41c Use actual batch size for resize estimates (Howard Chu)
| * | Use actual batch size for resize estimatesHoward Chu2017-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | And optimize import startup: Remember start_height position during initial count_blocks pass to avoid having to reread entire file again to arrive at start_height
* | | Merge pull request #2424Riccardo Spagni2017-09-255-7/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 28b72b6e tx_pool: pre-init tvc.m_verifivation_failed before processing (moneromooo-monero) 50a629b2 core_tests: catch (impossible in practice) tx extra api failure (moneromooo-monero) fee15ef1 wallet2: catch failure to parse address (moneromooo-monero) 1399e26d net_peerlist: remove dead code (moneromooo-monero) 50e09698 tx_pool: guard against failure getting tx hash (moneromooo-monero) 54cc209a wallet_rpc_server: catch failure to create directory (moneromooo-monero) 3e55099c wallet_rpc_server: init m_vm to NULL in ctor (moneromooo-monero) 7d0dde5e wallet_args: remove redundant default value for --log-file (moneromooo-monero) ed4a3350 wallet2: catch failure to save keys file (moneromooo-monero) 44434c8a wallet2_api: check whether dynamic_cast returns NULL (moneromooo-monero) 92f2f687 core: check return value from parse_hexstr_to_binbuff (moneromooo-monero) 5475692e wallet2_api: remove an unused, uninitialized, field (moneromooo-monero) a7ba3de1 libwallet_api_tests: initialize newblock_triggered on reset (moneromooo-monero) b2763ace wallet2_api: init error code to "no error" in the ctor (moneromooo-monero) b5faac53 get_blockchain_top now returns void (moneromooo-monero) 2e44d8f2 wallet_rpc_server: guard against exceptions (moneromooo-monero) 4230876b simplewallet: guard against I/O exceptions (moneromooo-monero) 06c1e057 daemon: initialize decode_as_json in RPC request (moneromooo-monero) 11f71af5 http_base: init size_t in http_request_info ctor (moneromooo-monero)
| * | | core_tests: catch (impossible in practice) tx extra api failuremoneromooo-monero2017-09-251-2/+4
| | | | | | | | | | | | | | | | CID 175301
| * | | libwallet_api_tests: initialize newblock_triggered on resetmoneromooo-monero2017-09-251-1/+1
| | | | | | | | | | | | | | | | CID 161873
| * | | get_blockchain_top now returns voidmoneromooo-monero2017-09-253-4/+3
| | |/ | |/| | | | | | | | | | | | | It was always returning true, and could not be foreseen to usefully return errors in the future. This silences CID 162652 as well as saves some checking code in a few places.
* | | Merge pull request #2442Riccardo Spagni2017-09-254-0/+4
|\ \ \ | | | | | | | | | | | | e29282d2 build: auto update version info without manually deleting version.h (stoffu)
| * | | build: auto update version info without manually deleting version.hstoffu2017-09-214-0/+4
| |/ /
* | | Merge pull request #2440Riccardo Spagni2017-09-252-0/+75
|\ \ \ | |/ / |/| | | | | | | | | | | 6137a0b9 blockchain: reject unsorted ins and outs from v7 (moneromooo-monero) 16afab90 core: sort ins and outs key key image and public key, respectively (moneromooo-monero) 0c36b9f9 common: add apply_permutation file and function (moneromooo-monero)
| * | blockchain: reject unsorted ins and outs from v7moneromooo-monero2017-09-181-0/+29
| | | | | | | | | | | | This ensures no information is leaked by the ordering
| * | common: add apply_permutation file and functionmoneromooo-monero2017-09-132-0/+46
| | | | | | | | | | | | | | | This algorithm is adapted from Raymond Chen's code: https://blogs.msdn.microsoft.com/oldnewthing/20170109-00/?p=95145
* | | Use a threadpoolHoward Chu2017-09-142-178/+0
| |/ |/| | | | | Instead of constantly creating and destroying threads
* | Add a --fluffy-blocks option to relay blocks as fluffy blocksmoneromooo-monero2017-09-032-0/+2
|/ | | | Defaults to off, but fluffy blocks are forced enabled on testnet
* Revert "Cleanup test impact of moving blockchain_db_types()"Howard Chu2017-08-292-12/+0
| | | | This reverts commit 3dd34a49efd2954b0a5eb020abd168d9379b98c4.
* Merge pull request #2314Riccardo Spagni2017-08-263-0/+3
|\ | | | | | | | | c22d22e2 Cleanup test impact of adding safesyncmode() method (Howard Chu) 9a859844 Toggle SAFE syncmode on and off automatically (Howard Chu)
| * Cleanup test impact of adding safesyncmode() methodHoward Chu2017-08-222-0/+2
| |
| * Toggle SAFE syncmode on and off automaticallyHoward Chu2017-08-201-0/+1
| | | | | | | | | | | | | | | | | | If monerod is started with default sync mode, set it to SAFE after synchronization completes. Set it back to FAST if synchronization restarts (e.g. because another peer has a longer blockchain). If monerod is started with an explicit sync mode, none of this automation takes effect.
* | Cleanup test impact of moving blockchain_db_types()Howard Chu2017-08-222-0/+12
|/
* DB cleanupHoward Chu2017-08-191-1/+1
| | | | | Hide LMDB-specific stuff behind blockchain_db.h. Nobody besides blockchain_db.cpp should ever be including DB-specific headers any more.
* Merge pull request #2303Riccardo Spagni2017-08-172-2/+2
|\ | | | | | | | | 5a283078 cryptonote_protocol: large block sync size before v4 (moneromooo-monero) 7b747607 cryptonote_protocol: kick idle synchronizing peers (moneromooo-monero)
| * cryptonote_protocol: large block sync size before v4moneromooo-monero2017-08-172-2/+2
| |
* | Merge pull request #2287Riccardo Spagni2017-08-172-0/+2
|\ \ | |/ |/| | | 827afcb7 protocol: pass blockchain cumulative difficulty when syncing (moneromooo-monero)
| * protocol: pass blockchain cumulative difficulty when syncingmoneromooo-monero2017-08-152-0/+2
| | | | | | | | Not used yet.
* | Merge pull request #2292Riccardo Spagni2017-08-151-1/+3
|\ \ | |/ |/| | | cb2d5ac7 mnemonics: new Esperanto word list (moneromooo-monero)
| * mnemonics: new Esperanto word listmoneromooo-monero2017-08-141-1/+3
| | | | | | | | | | | | | | | | | | Word list authored by: Engelberg, ProkhorZ Sources: Baza Radikaro Oficiala Reta Vortaro (http://www.reta-vortaro.de/revo/) Esperanto Panorama - Esperanto-English Dictionary (http://www.esperanto-panorama.net/vortaro/eoen.htm) ESPDIC - Paul Denisowski (http://www.denisowski.org/Esperanto/ESPDIC/espdic.txt)
* | Merge pull request #2276Riccardo Spagni2017-08-152-0/+4
|\ \ | |/ |/| | | a1891ebe tests: fix tests build (moneromooo-monero)
| * tests: fix tests buildmoneromooo-monero2017-08-102-0/+4
| | | | | | | | | | | | | | Add get_fork_version and add_ideal_fork_version to core so cryptonote_protocol does not have to need the Blockchain class directly, as it's not in its dependencies, and add those to the fake core classes in tests too.
* | protocol: fix reorgs while syncingmoneromooo-monero2017-08-121-188/+0
|/
* core: thread most of handle_incoming_txmoneromooo-monero2017-08-071-0/+1
|
* cryptonote_protocol_handler: sync speedupmoneromooo-monero2017-08-074-0/+291
| | | | | | | | A block queue is now placed between block download and block processing. Blocks are now requested only from one peer (unless starved). Includes a new sync_info coommand.
* Merge pull request #2116Riccardo Spagni2017-07-0318-0/+685
|\ | | | | | | 841231e5 Add fuzz testing using american fuzzy lop (moneromooo-monero)
| * Add fuzz testing using american fuzzy lopmoneromooo-monero2017-06-2418-0/+685
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Existing tests: block, transaction, signature, cold outputs, cold transaction. Data for these is in tests/data/fuzz. A convenience shell script is in contrib/fuzz_testing/fuzz.sh, eg: contrib/fuzz_testing/fuzz.sh signature The fuzzer will run indefinitely, ^C to stop. Fuzzing is currently supported for GCC only. I can't get CLANG to build Monero here as it dies on some system headers, so if someone wants to make it work on both, that'd be great. In particular, the __AFL_LOOP construct should be made to work so that a given run can fuzz multiple inputs, as the C++ load time is substantial.
* | unit_tests: fix build failures after network_address changesmoneromooo-monero2017-06-192-64/+68
|/
* Merge pull request #2082Riccardo Spagni2017-06-181-0/+1
|\ | | | | | | 235df7f4 blockchain_db: add a txpool tx getter which returns existence (moneromooo-monero)
| * blockchain_db: add a txpool tx getter which returns existencemoneromooo-monero2017-06-111-0/+1
| | | | | | | | Avoids exception spam for the "nope, not found" case
* | core_tests: fix tests failing due to new txpool code requitring batch ↵moneromooo-monero2017-06-091-0/+1
|/ | | | transactions
* Don't copy blockchain for coinbase_tx_sumHoward Chu2017-06-011-1/+1
| | | | | Changed Blockchain::for_all_blocks() to for_blocks_range() Operate on blockchain in-place instead of building a copy first.
* Merge pull request #2039Riccardo Spagni2017-05-305-9/+9
|\ | | | | | | 4b932ff3 changed crypto to cncrypto so it generated libcncrypto (Gentian)
| * changed crypto to cncrypto so it generated libcncryptoGentian2017-05-235-9/+9
| | | | | | | | fix a cmakelist
* | Merge pull request #2036Riccardo Spagni2017-05-301-2/+10
|\ \ | | | | | | | | | | | | 89b2f306 tests: fix invalid key image test (moneromooo-monero) a374a522 wallet2: check key image validity domain in import_key_images (moneromooo-monero)