aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
Commit message (Collapse)AuthorAgeFilesLines
...
* tests: more ringct range proof testsmoneromooo-monero2016-08-281-0/+245
|
* tests: add some more ringct building block testsmoneromooo-monero2016-08-281-1/+50
|
* tests: add Shen Noether's basic ringct testsmoneromooo-monero2016-08-282-1/+209
|
* Fake outs set is now decided by the walletmoneromooo-monero2016-08-111-3/+3
| | | | | | | | | | | | | | | | | | This plugs a privacy leak from the wallet to the daemon, as the daemon could previously see what input is included as a transaction input, which the daemon hadn't previously supplied. Now, the wallet requests a particular set of outputs, including the real one. This can result in transactions that can't be accepted if the wallet happens to select too many outputs with non standard unlock times. The daemon could know this and select another output, but the wallet is blind to it. It's currently very unlikely since I don't think anything uses non default unlock times. The wallet requests more outputs than necessary so it can use spares if any of the returns outputs are still locked. If there are not enough spares to reach the desired mixin, the transaction will fail.
* tests: fix a bitflag test typomoneromooo-monero2016-07-261-1/+1
|
* unit_tests: check adding checkpoints succeededmoneromooo-monero2016-07-261-3/+3
|
* remove hf_starting_height dbmoneromooo-monero2016-07-131-31/+1
| | | | | | It's not really needed, it used to be an optimization for when that code was not using the db and needed to recalculate things fast on startup.
* fix: error: -Werror=misleading-indentationmoneroexample2016-05-181-1/+3
| | | | | | | | | | | Compilation of bitmonero on Arch with gcc 6.1 results in the following error: /home/mwo/bitmonero/tests/unit_tests/hardfork.cpp: In member function ‘virtual void TestDB::set_hard_fork_version(uint64_t, uint8_t)’: /home/mwo/bitmonero/tests/unit_tests/hardfork.cpp:132:5: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if (versions.size() <= height) versions.resize(height+1); versions[height] = version; This can be fixed by simply unfolding this line into three lines.
* Merge pull request #831Riccardo Spagni2016-05-172-2/+69
|\ | | | | | | | | | | | | | | 9ef8c7b tests: fix tests broken by the removal of the block reward accumulation loop (moneromooo-monero) a6e717e cn_deserialize: deserialize tx_extra too (moneromooo-monero) 3eff37f unit_tests: add a write_varint/read_varint test (moneromooo-monero) 7a66387 unit_tests: fix UNBOUND_LIBRARIES/UNBOUND_LIBRARY typo (moneromooo-monero) d6bce4b core: move tx_extra parsing errors to log level 1 (moneromooo-monero)
| * unit_tests: add a write_varint/read_varint testmoneromooo-monero2016-05-012-1/+68
| |
| * unit_tests: fix UNBOUND_LIBRARIES/UNBOUND_LIBRARY typomoneromooo-monero2016-05-011-1/+1
| |
* | Merge branch 'performance' of https://github.com/LMDB/bitmoneroRiccardo Spagni2016-04-291-4/+5
|\ \ | |/ |/|
| * Merge branch 'performance' into masterHoward Chu2016-04-051-4/+5
| |\
| | * CleanupHoward Chu2016-04-051-4/+5
| | | | | | | | | | | | | | | drop obsolete remove_output() fix get_output_key(global), fix crash in blockchain_dump
* | | tests: unbound API is only accessible in static buildsmoneromooo-monero2016-04-021-0/+4
|/ /
* | tests: add test for needed OpenSSL algorithms in unboundmoneromooo-monero2016-03-292-1/+52
| | | | | | | | | | These can be compiled out of libunbound, leading to failure to check DNSSEC validity.
* | tests: obligatory hardfork unit build fix after interface changemoneromooo-monero2016-03-261-1/+1
| |
* | New RPC and daemon command to get output histogrammoneromooo-monero2016-03-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a list of existing output amounts along with the number of outputs of that amount in the blockchain. The daemon command takes: - no parameters: all outputs with at least 3 instances - one parameter: all outputs with at least that many instances - two parameters: all outputs within that many instances The default starts at 3 to avoid massive spamming of all dust outputs in the blockchain, and is the current minimum mixin requirement. An optional vector of amounts may be passed, to request histogram only for those outputs.
* | Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-214-4/+2
| | | | | | | | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
* | Print stack trace upon exceptionsmoneromooo-monero2016-03-194-2/+4
|/ | | | Useful for debugging users' logs
* unit_tests: fix hard fork unit test compilationwarptangent2016-03-051-1/+1
| | | | Match changed BlockchainDB function declaration.
* Merge pull request #689Riccardo Spagni2016-02-291-1/+1
|\ | | | | | | 5ab33ca unit_tests: update test openalias address (moneromooo-monero)
| * unit_tests: update test openalias addressmoneromooo-monero2016-02-231-1/+1
| | | | | | | | It was recently changed
* | move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero2016-02-221-2/+0
|/ | | | | This avoids the need to define that variable in every program which uses epee.
* unit_tests: fix blockchain unit test after hard fork import fixmoneromooo-monero2016-02-081-1/+10
|
* unit_tests: fix hard fork unit test compilationmoneromooo-monero2016-02-081-0/+4
|
* Merge pull request #641Riccardo Spagni2016-02-081-13/+9
|\ | | | | | | | | | | | | 7658ac0 blockchain: revert handle_get_objects adding block id on tx not found (moneromooo-monero) 3a0f4d8 berkeleydb: fix delete/free mismatch (moneromooo-monero) 1642be2 minor bugfixes and refactoring (Thomas Winget) 098dcf2 unit_tests: fix mnemonics unit test testing invalid seeds (moneromooo-monero)
| * unit_tests: fix mnemonics unit test testing invalid seedsmoneromooo-monero2016-02-011-13/+9
| | | | | | | | | | | | | | | | | | Some word triplets, such as "mugged names nail", are not valid results from any 32 bit value. If used to decode a 32 bit value, the result will therefore encode to a different word triplet. Fix this by using random words converted from an actual random bitstring, ensuring we always get valid triplets.
* | unit_tests: fix hard fork unit tests and add a test for major toomoneromooo-monero2016-02-011-30/+68
|/
* OpenBSD support for Monero.me0wmix2016-01-211-2/+2
|
* Fix 30f92f5630bbc7507708275a29a9ae7acf633a5bHoward Chu2016-01-161-0/+1
| | | | Needed to add the corresponding (dummy) method to unit test hardfork
* unit_tests: initialize db object in ctor, not openmoneromooo-monero2016-01-021-1/+2
| | | | open isn't actually called in those tests
* updated copyright yearRiccardo Spagni2015-12-3125-25/+25
|
* unit_tests: remove an unused variablemoneromooo-monero2015-12-301-1/+0
|
* unit_tests: fix hardfork test buildmoneromooo-monero2015-12-301-0/+1
| | | | | The dummy blockchain class needed to have the newly added is_read_only virtual function.
* tests: add a unit test for canonical decomposed amountsmoneromooo-monero2015-12-262-0/+84
|
* unit_tests: fix hard fork testsmoneromooo-monero2015-12-241-1/+2
| | | | | A couple stopped passing when the hard fork code was made to reject incoming hard fork versions it did not know about.
* unit_tests: new test for IP blockingmoneromooo-monero2015-12-242-0/+169
|
* unit_tests: fix block reward test using post hard fork settingsmoneromooo-monero2015-12-131-15/+15
| | | | | This would fail, as the post hard fork settings would yield different data, and the test expects pre hard fork data.
* tests: fix a typo in test namemoneromooo-monero2015-12-131-1/+1
|
* blockchain_db: make the indexing base a BlockchainDB virtual functionmoneromooo-monero2015-12-051-0/+1
|
* hardfork: fix more major/minor issuesmoneromooo-monero2015-11-241-44/+57
| | | | | | | | | | | Also add some more tests, and rename some instances of "version" and "add" for clarity. NOTE: the starting height values are sometimes wrong. I suspect this is due to the hard fork reorg code being buggy, since they're good when syncing after the fact. However, they're not actually used by the consensus code, so I'm ignoring this for now, but this needs debugging.
* Adjust difficulty target (2 min) and full reward zone (60 kbytes) for block ↵Javier Smooth2015-11-131-7/+7
| | | | version 2
* hardfork: add a get_ideal_version(uint64_t) functionmoneromooo-monero2015-11-101-0/+22
| | | | | It returns the ideal version for a given height, which is based on the minimum height for a fork, disregarding votes
* hardfork: allow per-fork voting thresholdsmoneromooo-monero2015-11-081-0/+28
| | | | And setup the first fork to not vote
* unit_tests: fix build without berkeleydbmoneromooo-monero2015-11-031-1/+7
|
* Remove some old/obsolete/unused codemoneromooo-monero2015-10-271-1/+0
| | | | git history's here if needed to get any of this back
* Build fixes for the old blockchain_storage versionmoneromooo-monero2015-10-261-0/+5
|
* hardfork: switch voting to block minor versionmoneromooo-monero2015-10-211-4/+1
| | | | | | | | | | | | Using major version would cause older daemons to reject those blocks as they fail to deserialize blocks with a major version which is not 1. There is no such restriction on the minor version, so switching allows older daemons to coexist with newer ones till the actual fork date, when most will hopefully have updated already. Also, for the same reason, we consider a vote for 0 to be a vote for 1, since older daemons set minor version to 0.
* unit_tests: remove leftover debug traces in hardfork testmoneromooo-monero2015-10-211-2/+0
|