aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/CMakeLists.txt (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-08-16Merge pull request #6329Alexander Blair1-0/+1
6bfcd3101 Updates InProofV1, OutProofV1, and ReserveProofV1 to new V2 variants that include all public proof parameters in Schnorr challenges, along with hash function domain separators. Includes new randomized unit tests. (Sarang Noether)
2020-08-09Updates InProofV1, OutProofV1, and ReserveProofV1 to new V2 variants that ↵Sarang Noether1-0/+1
include all public proof parameters in Schnorr challenges, along with hash function domain separators. Includes new randomized unit tests.
2020-05-06Update copyright year to 2020SomaticFanatic1-1/+1
Update copyright year to 2020
2020-05-04Adding ZMQ/Pub support for txpool_add and chain_main eventsLee Clagett1-0/+1
2020-04-04Merge pull request #6361luigi11111-1/+3
68a6507 Fixed bug in ZMQ JSON-RPC method field (vtnerd)
2020-02-28daemon: auto public nodes - cache and prioritize most stable nodesxiphon1-0/+1
2019-11-18Fixed bug in ZMQ JSON-RPC method fieldLee Clagett1-1/+3
2019-11-12rpc: Only show version string if it matches expected patternNathan Dorfman1-1/+2
2019-10-13p2p+rpc: don't skip p2p or rpc port bind failure by defaultxiphon1-1/+1
2019-07-22Dropping cppzmq dependency; adding some zmq utilsLee Clagett1-1/+2
2019-07-17Added support for "noise" over I1P/Tor to mask Tx transmission.Lee Clagett1-0/+1
2019-05-02blockchain: keep a rolling long term block weight medianmoneromooo-monero1-0/+1
2019-03-24Make difficulty 128 bit instead of 64 bitmoneromooo-monero1-0/+1
Based on Boolberry work by: jahrsg <jahr@jahr.me> cr.zoidberg <crypto.zoidberg@gmail.com>
2019-03-21Merge pull request #5211Riccardo Spagni1-0/+1
c9b13fbb tests/trezor: HF9 and HF10 tests (Dusan Klinec) a1fd1d49 device/trezor: HF10 support added, wallet::API (Dusan Klinec) d74d26f2 crypto: hmac_keccak added (Dusan Klinec)
2019-03-20crypto: hmac_keccak addedDusan Klinec1-0/+1
2019-03-19Adding classes, functions, and utilities for common LMDB operations.Lee Clagett1-0/+2
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2019-03-04ArticMine's new block weight algorithmmoneromooo-monero1-0/+1
This curbs runaway growth while still allowing substantial spikes in block weight Original specification from ArticMine: here is the scaling proposal Define: LongTermBlockWeight Before fork: LongTermBlockWeight = BlockWeight At or after fork: LongTermBlockWeight = min(BlockWeight, 1.4*LongTermEffectiveMedianBlockWeight) Note: To avoid possible consensus issues over rounding the LongTermBlockWeight for a given block should be calculated to the nearest byte, and stored as a integer in the block itself. The stored LongTermBlockWeight is then used for future calculations of the LongTermEffectiveMedianBlockWeight and not recalculated each time. Define: LongTermEffectiveMedianBlockWeight LongTermEffectiveMedianBlockWeight = max(300000, MedianOverPrevious100000Blocks(LongTermBlockWeight)) Change Definition of EffectiveMedianBlockWeight From (current definition) EffectiveMedianBlockWeight = max(300000, MedianOverPrevious100Blocks(BlockWeight)) To (proposed definition) EffectiveMedianBlockWeight = min(max(300000, MedianOverPrevious100Blocks(BlockWeight)), 50*LongTermEffectiveMedianBlockWeight) Notes: 1) There are no other changes to the existing penalty formula, median calculation, fees etc. 2) There is the requirement to store the LongTermBlockWeight of a block unencrypted in the block itself. This is to avoid possible consensus issues over rounding and also to prevent the calculations from becoming unwieldy as we move away from the fork. 3) When the EffectiveMedianBlockWeight cap is reached it is still possible to mine blocks up to 2x the EffectiveMedianBlockWeight by paying the corresponding penalty. Note: the long term block weight is stored in the database, but not in the actual block itself, since it requires recalculating anyway for verification.
2019-01-28Adding initial support for broadcasting transactions over TorLee Clagett1-0/+2
- Support for ".onion" in --add-exclusive-node and --add-peer - Add --anonymizing-proxy for outbound Tor connections - Add --anonymous-inbounds for inbound Tor connections - Support for sharing ".onion" addresses over Tor connections - Support for broadcasting transactions received over RPC exclusively over Tor (else broadcast over public IP when Tor not enabled).
2019-01-22Pruningmoneromooo-monero1-0/+1
The blockchain prunes seven eighths of prunable tx data. This saves about two thirds of the blockchain size, while keeping the node useful as a sync source for an eighth of the blockchain. No other data is currently pruned. There are three ways to prune a blockchain: - run monerod with --prune-blockchain - run "prune_blockchain" in the monerod console - run the monero-blockchain-prune utility The first two will prune in place. Due to how LMDB works, this will not reduce the blockchain size on disk. Instead, it will mark parts of the file as free, so that future data will use that free space, causing the file to not grow until free space grows scarce. The third way will create a second database, a pruned copy of the original one. Since this is a new file, this one will be smaller than the original one. Once the database is pruned, it will stay pruned as it syncs. That is, there is no need to use --prune-blockchain again, etc.
2018-11-26Merge pull request #4832Riccardo Spagni1-0/+1
9da6c52b unit_tests: add logging unit test (moneromooo-monero)
2018-11-16tests: add unit tests for get_output_distributionmoneromooo-monero1-0/+1
2018-11-09unit_tests: add logging unit testmoneromooo-monero1-0/+1
2018-10-17unit_tests: fix notify test when run from make *testmoneromooo-monero1-1/+1
2018-10-01unit_tests: add a notifier testmoneromooo-monero1-1/+6
2018-09-21Merge pull request #4371Riccardo Spagni1-0/+1
55c7cd14 Adding expect<T> - a value-or-error implementation (Lee Clagett)
2018-09-12Adding expect<T> - a value-or-error implementationLee Clagett1-0/+1
2018-09-11aligned: aligned memory alloc/realloc/freemoneromooo-monero1-1/+2
2018-09-11make straus cached mode thread safe, and add tests for itmoneromooo-monero1-0/+1
2018-09-10Merge pull request #4293luigi11111-1/+2
9d65399 is_hdd update (p8p)
2018-09-04Merge pull request #4275luigi11111-0/+1
2a100fd unit_tests: add tests for incremental keccak (moneromooo-monero)
2018-08-25is_hdd updatep8p1-1/+2
2018-08-22Merge pull request #4210luigi11111-0/+2
4616cf2 Fixed ZMQ-RPC for transactions and GET_BLOCKS_FAST (vtnerd)
2018-08-20unit_tests: add tests for incremental keccakmoneromooo-monero1-0/+1
2018-08-16common: add a class to safely wrap mlock/munlockmoneromooo-monero1-0/+1
This class will allow mlocking small objects, of which there may be several per page. It adds refcounting so pages are only munlocked when the last object on that page munlocks.
2018-08-16store secret keys encrypted where possiblemoneromooo-monero1-0/+1
The secret spend key is kept encrypted in memory, and decrypted on the fly when needed. Both spend and view secret keys are kept encrypted in a JSON field in the keys file. This avoids leaving the keys in memory due to being manipulated by the JSON I/O API.
2018-08-16wallet: wipe seed from memory where appropriatemoneromooo-monero1-1/+2
2018-08-02Fixed ZMQ-RPC for transactions and GET_BLOCKS_FASTLee Clagett1-0/+2
2018-07-27Merge pull request #4097luigi11111-0/+1
61caab8 crypto: remove slight bias in key generation due to modulo (moneromooo-monero)
2018-07-19Merge pull request #4075luigi11111-1/+0
438d52d remove epee from link lines where it's redundant (moneromooo-monero)
2018-07-19Merge pull request #3617luigi11111-0/+1
4c00a4d unit_tests: add device unit tests (moneromooo-monero)
2018-07-05crypto: remove slight bias in key generation due to modulomoneromooo-monero1-0/+1
2018-06-28remove epee from link lines where it's redundantmoneromooo-monero1-1/+0
For some reason, this confuses and kills ASAN on startup as it thinks const uint8_t ipv4_network_address::ID is defined multiple times.
2018-06-17Merge pull request #3691luigi11111-0/+1
db55263 threadpool: allow constructing an object, and misc tweaks (moneromooo-monero) ce173cb core: remove threadpool dependency from header (moneromooo-monero) 3147468 unit_tests: add threadpool unit test (moneromooo-monero)
2018-05-31Merge pull request #3592luigi11111-1/+2
90a16b1 crypto: fix initialization order issue with random mutex (moneromooo-monero) 6a61f52 unit_tests: add ringdb unit tests (moneromooo-monero)
2018-05-20unit_tests: add threadpool unit testmoneromooo-monero1-0/+1
2018-05-15unit_tests: set default data dir to the source tree at build timemoneromooo-monero1-0/+2
2018-04-12unit_tests: add device unit testsmoneromooo-monero1-0/+1
Annoyingly, its locking semantics are borked since it does not do any locking
2018-04-11unit_tests: add ringdb unit testsmoneromooo-monero1-1/+2
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2017-12-25Add a chacha20 variant to go with chacha8moneromooo-monero1-1/+1
2017-12-17tests: add multisig unit testsmoneromooo-monero1-0/+1
2017-12-16Merge pull request #2860Riccardo Spagni1-0/+3
3dffe71b new wipeable_string class to replace std::string passphrases (moneromooo-monero) 7a2a5741 utils: initialize easylogging++ in on_startup (moneromooo-monero) 54950829 use memwipe in a few relevant places (moneromooo-monero) 000666ff add a memwipe function (moneromooo-monero)
2017-12-08add bulletproofs to the build, with basic unit testsmoneromooo-monero1-0/+1
Based on Java code from Sarang Noether
2017-11-27add a memwipe functionmoneromooo-monero1-0/+3
It's meant to avoid being optimized out memory_cleanse lifted from bitcoin
2017-10-17Subaddress unit testsCole Lightfighter1-0/+1
Basic unit test fixture, and initialization of a subaddress account. Signed-off-by: Cole Lightfighter <cole@onicsla.bz>
2017-10-15Merge pull request #2608Riccardo Spagni1-1/+1
fe484f30 unit_tests: data dir is now overridden with --data-dir (moneromooo-monero)
2017-10-15Merge pull request #2582Riccardo Spagni1-0/+1
240f769d tests: add sha256sum unit test (moneromooo-monero)
2017-10-08unit_tests: data dir is now overridden with --data-dirmoneromooo-monero1-1/+1
rather than a raw string without option
2017-10-06Merge pull request #2523Riccardo Spagni1-1/+1
540d6fa3 tests: pass data dir as arg (redfish)
2017-10-05tests: add sha256sum unit testmoneromooo-monero1-0/+1
2017-09-28tests: pass data dir as argredfish1-1/+1
This fixes test failure on builds that happen to be built in 'build/' instead of 'build/release'. Use boost filesystem path type.
2017-09-25wallet2: do not keep block hashes below last checkpointmoneromooo-monero1-0/+1
This saves a lot of space and load/save time for wallet caches
2017-09-25Merge pull request #2442Riccardo Spagni1-0/+1
e29282d2 build: auto update version info without manually deleting version.h (stoffu)
2017-09-25Merge pull request #2440Riccardo Spagni1-0/+1
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)
2017-09-21build: auto update version info without manually deleting version.hstoffu1-0/+1
2017-09-14Use a threadpoolHoward Chu1-1/+0
Instead of constantly creating and destroying threads
2017-09-13common: add apply_permutation file and functionmoneromooo-monero1-0/+1
This algorithm is adapted from Raymond Chen's code: https://blogs.msdn.microsoft.com/oldnewthing/20170109-00/?p=95145
2017-08-07cryptonote_protocol_handler: sync speedupmoneromooo-monero1-0/+2
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.
2017-04-11Improvements for epee binary to hex functions:Lee Clagett1-0/+1
- Performance improvements - Added `span` for zero-copy pointer+length arguments - Added `std::ostream` overload for direct writing to output buffers - Removal of unused `string_tools::buff_to_hex`
2017-03-18Removed boost/asio.hpp include from epee/string_tools.hLee Clagett1-0/+1
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2017-02-21Merge pull request #1721Riccardo Spagni1-0/+2
2cde2c02 switch to boost::thread for mingw build (Lee Clagett)
2017-02-20util: add a vercmp function to compare version numbersmoneromooo-monero1-1/+2
It is simple, supports simple x.y.z type numeric versions, and does not attempt any kind of validation
2017-02-16switch to boost::thread for mingw buildLee Clagett1-0/+2
2017-02-11Merge pull request #1689Riccardo Spagni1-1/+1
ce7fcbb4 Add server auth to monerod, and client auth to wallet-cli and wallet-rpc (Lee Clagett)
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi841-1/+1
2017-02-06Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett1-1/+1
2016-12-13Adding HTTP Digest Auth (but not yet enabled)Lee Clagett1-0/+2
2016-12-04Merge pull request #1385Riccardo Spagni1-0/+1
5783dd8c tests: add unit tests for uri parsing (moneromooo-monero) 82ba2108 wallet: add API and RPC to create/parse monero: URIs (moneromooo-monero) d9001b43 epee: add functions to convert from URL format (ie, %XX values) (moneromooo-monero)
2016-11-28tests: add unit tests for uri parsingmoneromooo-monero1-0/+1
2016-11-25Added command_line::is_yesLee Clagett1-0/+1
2016-11-23Added task_region - a fork/join task implementationLee Clagett1-0/+1
2016-10-31core: dynamic fee algorithm from ArticMinemoneromooo-monero1-0/+1
The fee will vary based on the base reward and the current block size limit: fee = (R/R0) * (M0/M) * F0 R: base reward R0: reference base reward (10 monero) M: block size limit M0: minimum block size limit (60000) F0: 0.002 monero Starts applying at v4
2016-09-18cmake: transitive deps and remove deprecated LINK_*redfish1-6/+2
Keep the immediate direct deps at the library that depends on them, declare deps as PUBLIC so that targets that link against that library get the library's deps as transitive deps. Break dep cycle between blockchain_db <-> crytonote_core. No code refactoring, just hide cycle from cmake so that it doesn't complain (cycles are allowed only between static libs, not shared libs). This is in preparation for supproting BUILD_SHARED_LIBS cmake built-in option for building internal libs as shared.
2016-08-30tests: cmake: fix building with system gtestredfish1-1/+1
Issues #980 #983
2016-08-28tests: add tests for wallet output selectionmoneromooo-monero1-1/+2
2016-08-28tests: add Shen Noether's basic ringct testsmoneromooo-monero1-1/+3
2016-05-01unit_tests: add a write_varint/read_varint testmoneromooo-monero1-1/+2
2016-05-01unit_tests: fix UNBOUND_LIBRARIES/UNBOUND_LIBRARY typomoneromooo-monero1-1/+1
2016-03-29tests: add test for needed OpenSSL algorithms in unboundmoneromooo-monero1-1/+3
These can be compiled out of libunbound, leading to failure to check DNSSEC validity.
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-12-26tests: add a unit test for canonical decomposed amountsmoneromooo-monero1-0/+1
2015-12-24unit_tests: new test for IP blockingmoneromooo-monero1-0/+1
2015-09-12New hardfork classmoneromooo-monero1-1/+2
This keeps track of voting via block version, in order to decide when to enable a particular fork's code.
2015-05-31cleaning up, removing redundant files, renaming, fixing incorrect licensesRiccardo Spagni1-1/+1
2015-04-07Merge BlockchainDB into upstreamThomas Winget1-0/+2
2015-03-16CMake wiring, minor cleanup, minor test additionThomas Winget1-0/+1
Make Cmake things aware of BerkeleyDB and BlockchainBDB Make the BlockchainDB unit tests aware of BlockchainBDB
2015-02-202014 network limit 1.0a +utils +toc -doc -drmonerorfree2monero1-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)
2015-01-07add BlockchainDB tests to new cmakeThomas Winget1-0/+1
2015-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-10-24cmake: support 2.8.7Ben Boeckel1-1/+1
Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer versions prefer PUBLIC and PRIVATE instead, but still support the LINK_ prefix.
2014-10-23gtest: support an external gtestBen Boeckel1-1/+1
2014-10-23cmake: put each test executable in its own directoryBen Boeckel1-0/+80