aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge pull request #2582Riccardo Spagni2017-10-152-0/+46
|\ \ \ | | | | | | | | | | | | 240f769d tests: add sha256sum unit test (moneromooo-monero)
| * | | tests: add sha256sum unit testmoneromooo-monero2017-10-052-0/+46
| | | |
* | | | Merge pull request #2565Riccardo Spagni2017-10-151-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | 452d4fae tests: fix hashchain unit tests (moneromooo-monero)
| * | | | tests: fix hashchain unit testsmoneromooo-monero2017-10-031-1/+1
| |/ / / | | | | | | | | | | | | and relax the not-empty safety check to stay more intuitiuve
* | | | Merge pull request #2555Riccardo Spagni2017-10-151-0/+14
|\ \ \ \ | | | | | | | | | | | | | | | a4b4651c dns_utils: allow an optional DNS server IP in DNS_PUBLIC (moneromooo-monero)
| * | | | dns_utils: allow an optional DNS server IP in DNS_PUBLICmoneromooo-monero2017-10-101-0/+14
| | |/ / | |/| | | | | | | | | | tcp://a.b.c.d
* | | | Merge pull request #2528Riccardo Spagni2017-10-151-1/+3
|\ \ \ \ | | | | | | | | | | | | | | | 551a8ea6 mnemonics: new Lojban word list (Wei Tang)
| * | | | mnemonics: new Lojban word listWei Tang2017-09-261-1/+3
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Word list authored by: sorpaas Sources: lo gimste jo'u lo ma'oste (http://guskant.github.io/lojbo/gismu-cmavo.html) N-grams of Lojban corpus (https://mw.lojban.org/papri/N-grams_of_Lojban_corpus)
* | | | Merge pull request #2469Riccardo Spagni2017-10-151-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | 7adceee6 precomputed block hashes are now in blocks of N (currently 256) (moneromooo-monero)
| * | | | precomputed block hashes are now in blocks of N (currently 256)moneromooo-monero2017-09-181-0/+1
| | |_|/ | |/| | | | | | | | | | This shaves a lot of space off binaries
* | | | Subaddresseskenshi842017-10-072-26/+26
| |_|/ |/| |
* | | Merge pull request #2523Riccardo Spagni2017-10-064-10/+32
|\ \ \ | | | | | | | | | | | | 540d6fa3 tests: pass data dir as arg (redfish)
| * | | tests: pass data dir as argredfish2017-09-284-10/+32
| |/ / | | | | | | | | | | | | | | | | | | 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
* | 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-254-4/+4
| |
* | 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-251-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | get_blockchain_top now returns voidmoneromooo-monero2017-09-251-1/+1
| | |/ | |/| | | | | | | | | | | | | 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-251-0/+1
|\ \ \ | | | | | | | | | | | | e29282d2 build: auto update version info without manually deleting version.h (stoffu)
| * | | build: auto update version info without manually deleting version.hstoffu2017-09-211-0/+1
| |/ /
* | | 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-031-0/+1
|/ | | | Defaults to off, but fluffy blocks are forced enabled on testnet
* Cleanup test impact of adding safesyncmode() methodHoward Chu2017-08-221-0/+1
|
* 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.
* 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-171-1/+1
|\ | | | | | | | | 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-171-1/+1
| |
* | Merge pull request #2287Riccardo Spagni2017-08-171-0/+1
|\ \ | |/ |/| | | 827afcb7 protocol: pass blockchain cumulative difficulty when syncing (moneromooo-monero)
| * protocol: pass blockchain cumulative difficulty when syncingmoneromooo-monero2017-08-151-0/+1
| | | | | | | | 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-151-0/+2
|\ \ | |/ |/| | | a1891ebe tests: fix tests build (moneromooo-monero)
| * tests: fix tests buildmoneromooo-monero2017-08-101-0/+2
| | | | | | | | | | | | | | 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-072-0/+277
| | | | | | | | 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.
* unit_tests: fix build failures after network_address changesmoneromooo-monero2017-06-192-64/+68
|
* blockchain_db: add a txpool tx getter which returns existencemoneromooo-monero2017-06-111-0/+1
| | | | Avoids exception spam for the "nope, not found" case
* 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 #2016Riccardo Spagni2017-05-301-2/+2
|\ | | | | | | d1db3251 Fix overlooked renaming of Português in the unit tests (Nano Akron)
| * Fix overlooked renaming of Português in the unit testsNano Akron2017-05-071-2/+2
| |
* | Merge pull request #1982Riccardo Spagni2017-05-302-1/+11
|\ \ | |/ |/| | | b52abd13 Move txpool to the database (moneromooo-monero)
| * Move txpool to the databasemoneromooo-monero2017-05-252-1/+11
| | | | | | | | | | | | | | Integration could go further (ie, return_tx_to_pool calls should not be needed anymore, possibly other things). poolstate.bin is now obsolete.
* | Change Old_English to English_Old - 'Old English' is actually a languageNano Akron2017-04-241-1/+1
| |
* | Merge pull request #1983Riccardo Spagni2017-04-241-1/+3
|\ \ | | | | | | | | | | | | 72d113dd Amended software licenses for Portuguese and Spanish (Nano Akron) 54bcd260 Added Simplified Chinese electrum word list (Nano Akron)