aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* hardfork: rescan speedupmoneromooo-monero2015-09-271-8/+8
| | | | | Add a block height before which version 1 is assumed Use DB transactions
* hardfork: change window semantics to not count the newly added blockmoneromooo-monero2015-09-271-10/+13
| | | | | | | | | This allows knowing the hard fork a block must obey in order to be added to the blockchain. The previous semantics would use that new block's version vote to determine this hard fork, which made it impossible to use the rules to validate transactions entering the tx pool (and made it impossible to validate a block before adding it to the blockchain).
* hardfork: most state now saved to the DBmoneromooo-monero2015-09-201-142/+200
| | | | | There will be a delay on first load of an existing blockchain as it gets reparsed for this state data.
* New hardfork classmoneromooo-monero2015-09-122-1/+396
| | | | | This keeps track of voting via block version, in order to decide when to enable a particular fork's code.
* dns: make ctor privatemoneromooo-monero2015-08-271-6/+6
| | | | | | | This ensures one can't instanciate a DNSResolver object by mistake, but uses the singleton. A separate create static function is added for cases where a new object is explicitely needed.
* Fix block_reward unit testsRostislav2015-07-261-10/+10
|
* Set dnssec_valid value correctly in dns_utils; fix address_from_url testRostislav2015-06-201-1/+2
|
* cleaning up, removing redundant files, renaming, fixing incorrect licensesRiccardo Spagni2015-05-312-2/+2
|
* Allow name@domain.tld for OpenAlias lookupswarptangent2015-05-192-0/+16
| | | | | | | | | | | | | | | | | | Based on tewinget's update. Make OpenAlias address format independent of existing DNS functions. Add tests. Test: make debug-test cd build/debug/tests/unit_tests # test that regular DNS functions work, including IPv4 lookups. # also test function that converts OpenAlias address format make && ./unit_tests --gtest_filter=DNSResolver* # test that OpenAlias addresses like donate@getmonero.org work from # wallet tools make && ./unit_tests --gtest_filter=AddressFromURL.Success
* [fix] log level change. compilation: dns, testsrfree2monero2015-04-101-1/+1
| | | | | old unbound #warning does not block compilation unit tests build fine. Even though the RPC/P2P network type is required again
* Merge BlockchainDB into upstreamThomas Winget2015-04-072-0/+327
|\
| * Merge upstream into blockchainThomas Winget2015-03-291-2/+34
| |\
| * \ update berkeleydb branch to blockchain branchThomas Winget2015-03-252-3/+3
| |\ \
| | * \ Merge upstream updates into blockchain branchThomas Winget2015-03-252-3/+3
| | |\ \
| * | | | BerkeleyDB Blockchain building, not working yetThomas Winget2015-03-161-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Everything except actually *using* BlockchainBDB is wired up, but the db itself is not yet working. Some error about user mem not large enough. I think I know what this error means, but I can't determine the cause. Notes: BerkeleyDB does not allow 0-indexing in its recno type databases, so block numbers *in the database* will be 1-indexed. Modifications to indexing have been made as needed.
| * | | | CMake wiring, minor cleanup, minor test additionThomas Winget2015-03-162-1/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | Make Cmake things aware of BerkeleyDB and BlockchainBDB Make the BlockchainDB unit tests aware of BlockchainBDB
| * | | Fixed includes in BlockchainDB unit testsThomas Winget2015-03-101-2/+2
| | | |
| * | | add BlockchainDB tests to new cmakeThomas Winget2015-01-071-0/+1
| | | |
| * | | BlockchainDB unit tests, lmdb linker flagThomas Winget2015-01-041-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some BlockchainDB unit testing fleshed out (and working), rudimentary linker flag for lmdb in CMakeLists, but should probably be done "correctly" at some point (find it on whatever system you're building on and all that jazz). update for rebase (warptangent 2015-01-04) fix conflicts with upstream CMakeLists.txt files tests/CMakeLists.txt (remove edits from original commit)
| * | | Initial commit of BlockchainDB tests, other miscThomas Winget2015-01-041-0/+290
| | | | | | | | | | | | | | | | | | | | miscellaneous changes to BlockchainDB/blockchain as well, namely replacing instances of std::list with std::vector
* | | | Merge remote-tracking branch 'monero-official/master' into network-1.6-work1rfree2monero2015-04-012-5/+37
|\ \ \ \ | | |_|/ | |/| |
| * | | DNSSEC added (hardcoded key)Thomas Winget2015-03-241-2/+34
| | |/ | |/| | | | | | | | | | | | | | | | | | | DNSSEC is now implemented with the hardcoded key from unbound. This will need to be not hardcoded in the future, but is okay for now. Unit tests updated for DNSSEC (as well as for the fact that, contrary to previous assumption, example.com does not have a static IP address).
| * | move website and DNS unit tests from monero.cc to getmonero.orgRiccardo Spagni2015-02-282-3/+3
| |/
* | 2014 network limit 1.3 fix log/path/data +utilsrfree2monero2015-02-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | +toc -doc -drmonero Fixed the windows path, and improved logging and data (for graph) logging, fixed some locks and added more checks. Still there is a locking error, not added by my patches, but present in master version (locking of map/list of peers).
* | 2014 network limit 1.0a +utils +toc -doc -drmonerorfree2monero2015-02-201-0/+1
|/ | | | | | | | | | commands and options for network limiting works very well e.g. for 50 KiB/sec up and down ToS (QoS) flag peer number limit TODO some spikes in ingress/download TODO problems when other up and down limit added "otshell utils" - simple logging (with colors, text files channels)
* year updated in licenseRiccardo Spagni2015-01-0221-21/+21
|
* cmake: support 2.8.7Ben Boeckel2014-10-241-1/+1
| | | | | | Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer versions prefer PUBLIC and PRIVATE instead, but still support the LINK_ prefix.
* gtest: support an external gtestBen Boeckel2014-10-231-1/+1
|
* cmake: put each test executable in its own directoryBen Boeckel2014-10-231-0/+80
|
* Merge pull request #182Riccardo Spagni2014-10-235-34/+42
|\ | | | | | | | | 1795c38 fixed unit tests (Riccardo Spagni) bc537ac miniupnpc static define change (Riccardo Spagni)
| * fixed unit testsRiccardo Spagni2014-10-085-34/+42
| |
* | Apple and BSD don't need malloc.hRiccardo Spagni2014-10-201-1/+5
| |