aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
Commit message (Collapse)AuthorAgeFilesLines
...
* ringct: switch to Borromean signaturesShen Noether2016-12-042-35/+18
|
* Merge pull request #1385Riccardo Spagni2016-12-042-0/+218
|\ | | | | | | | | | | 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)
| * tests: add unit tests for uri parsingmoneromooo-monero2016-11-282-0/+218
| |
* | Added command_line::is_yesLee Clagett2016-11-252-0/+51
|/
* Merge pull request #1371Riccardo Spagni2016-11-241-2/+2
|\ | | | | | | 8dadf02 Fixed undefined behavior in TestDB (Lee Clagett)
| * Fixed undefined behavior in TestDBLee Clagett2016-11-231-2/+2
| |
* | Merge pull request #1364Riccardo Spagni2016-11-242-0/+178
|\ \ | | | | | | | | | f025198 Added task_region - a fork/join task implementation (Lee Clagett)
| * | Added task_region - a fork/join task implementationLee Clagett2016-11-232-0/+178
| |/
* | tests: fix uninitialized data valgrind reports in levin testsmoneromooo-monero2016-11-201-0/+1
| |
* | tests: fix uninitialized data valgrind reports in serialization testsmoneromooo-monero2016-11-201-1/+4
|/
* tests: fix another fee test on 32 bitmoneromooo-monero2016-11-131-1/+1
|
* tests: fix tests builds after fluffy blocks mergemoneromooo-monero2016-11-111-0/+3
|
* tests: fix fee unit tests on 32 bitmoneromooo-monero2016-11-101-3/+5
|
* Merge pull request #1276Riccardo Spagni2016-11-082-0/+122
|\ | | | | | | | | | | 18f66f4 wallet: use the dynamic per kB fee (moneromooo-monero) e6deb8a rpc: add a dynamic fee estimation RPC call (moneromooo-monero) 82dbba1 core: dynamic fee algorithm from ArticMine (moneromooo-monero)
| * core: dynamic fee algorithm from ArticMinemoneromooo-monero2016-10-312-0/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | ringct: check the size of amount_keys is the same as destinationsmoneromooo-monero2016-10-292-2/+4
|/
* core: notify the txpool when transactions are relayedmoneromooo-monero2016-10-231-0/+1
|
* unit_tests: fix build after get_output_histogram signature changemoneromooo-monero2016-10-191-1/+1
|
* Merge pull request #1140Riccardo Spagni2016-10-041-4/+4
|\ | | | | | | | | | | | | bba6af9 wallet: cold wallet transaction signing (moneromooo-monero) 9872dcb wallet: fix log confusion between bytes and kilobytes (moneromooo-monero) d9b0bf9 cryptonote_core: make extra field removal more generic (moneromooo-monero) 98f19d4 serialization: add support for serializing std::pair and std::list (moneromooo-monero)
| * wallet: cold wallet transaction signingmoneromooo-monero2016-09-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds the ability to create a new unsigned transaction from a watch only wallet, and save it to a file. This file can then be moved to another computer/VM where a cold wallet may load it, sign it, and save it. That cold wallet does not need to have a blockchain nor daemon. The signed transaction file can then be moved back to the watch only wallet, which can load it and send it to the daemon. Two new simplewallet commands to use it: sign_transfer (on the cold wallet) submit_transfer (on the watch only wallet) The transfer command used on a watch only wallet now writes an unsigned transaction set in a file called 'unsigned_monero_tx' instead of submitting the tx to the daemon as a normal wallet does. The signed tx file is called 'signed_monero_tx'.
* | tests: fix build after addition of cryptonote_core::get_block_sync_sizemoneromooo-monero2016-10-011-0/+1
|/
* cmake: transitive deps and remove deprecated LINK_*redfish2016-09-181-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.
* rct: rework serialization to avoid storing vector sizesmoneromooo-monero2016-09-141-2/+5
|
* tests: block reward: disable 64-bit-only tests on 32-bit systemsredfish2016-09-041-0/+2
| | | | Issue #1008
* Merge pull request #1018Riccardo Spagni2016-09-011-1/+1
|\ | | | | | | 6cf8ca2 core: faster find_blockchain_supplement (moneromooo-monero)
| * core: faster find_blockchain_supplementmoneromooo-monero2016-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Since this queries block heights for blocks that may or may not exist, queries for non existing blocks would throw an exception, and that would slow down the loop a lot. 7 seconds to go through a 30 hash list. Fix this by adding an optional return block height to block_exists and using this instead. Actual errors will still throw an exception. This also cuts down on log exception spam.
* | tests: cmake: fix building with system gtestredfish2016-08-301-1/+1
|/ | | | Issues #980 #983
* rct amount key modified as per luigi1111's recommendationsmoneromooo-monero2016-08-281-8/+8
| | | | | | | | | This allows the key to be not the same for two outputs sent to the same address (eg, if you pay yourself, and also get change back). Also remove the key amounts lists and return parameters since we don't actually generate random ones, so we don't need to save them as we can recalculate them when needed if we have the correct keys.
* rct: rework v2 txes into prunable and non prunable datamoneromooo-monero2016-08-282-39/+41
| | | | Nothing is pruned, but this allows easier changes later.
* rct: rework the verification preparation processmoneromooo-monero2016-08-281-4/+4
| | | | | | | | | | The whole rct data apart from the MLSAGs is now included in the signed message, to avoid malleability issues. Instead of passing the data that's not serialized as extra parameters to the verification API, the transaction is modified to fill all that information. This means the transaction can not be const anymore, but it cleaner in other ways.
* rct: change the simple flag to a typemoneromooo-monero2016-08-281-1/+1
| | | | for future expansion
* rct: avoid the need for the last II elementShen Noether2016-08-281-4/+2
| | | | | | This element is used in the generation of the MLSAG, but isn't needed in verification. Also misc changes in the cryptonote code to match, by mooo.
* wallet: do not store signatures in the wallet cachemoneromooo-monero2016-08-281-0/+5
| | | | | Saves some substantial space. Also avoid calculating tx hashes we don't need.
* rct: do not serialize senderPk - it is not used anymoremoneromooo-monero2016-08-281-1/+3
|
* rct: make the amount key derivable by a third party with the tx keymoneromooo-monero2016-08-282-15/+32
| | | | Scheme design from luigi1114.
* rct: do not serialize public keys in outPkmoneromooo-monero2016-08-281-1/+2
| | | | They can be reconstructed from vout
* tests: add tests for wallet output selectionmoneromooo-monero2016-08-282-1/+100
|
* tests: add basic tests for simple rct apimoneromooo-monero2016-08-281-44/+378
|
* integrate simple rct apimoneromooo-monero2016-08-282-6/+61
|
* move the rct commitments to the output_amounts databasemoneromooo-monero2016-08-281-5/+1
| | | | | | | | | | | | | | | | | | | Since these are needed at the same time as the output pubkeys, this is a whole lot faster, and takes less space. Only outputs of 0 amount store the commitment. When reading other outputs, a fake commitment is regenerated on the fly. This avoids having to rewrite the database to add space for fake commitments for existing outputs. This code relies on two things: - LMDB must support fixed size records per key, rather than per database (ie, all records on key 0 are the same size, all records for non 0 keys are same size, but records from key 0 and non 0 keys do have different sizes). - the commitment must be directly after the rest of the data in outkey and output_data_t.
* rct: add the tx prefix hash into the MLSAGmoneromooo-monero2016-08-282-6/+6
| | | | to protect the non-signatures parts of the tx from tampering.
* ringct: do not serialize what can be reconstructedmoneromooo-monero2016-08-282-21/+13
| | | | | | The mixRing (output keys and commitments) and II fields (key images) can be reconstructed from vin data. This saves some modest amount of space in the tx.
* tests: test for ringct rctSig data sizesmoneromooo-monero2016-08-281-3/+44
| | | | ie, more data or less data than expected in various fields
* make rct tx serialization workmoneromooo-monero2016-08-281-0/+201
| | | | | | | It may be suboptimal, but it's a pain to have to rebuild everything when some of this changes. Also, no clue why there seems to be two different code paths for serializing a tx...
* ringct: allow no outputs, and add tests for this and feesmoneromooo-monero2016-08-281-31/+75
|
* ringct: txn fee stuffShen Noether2016-08-281-0/+61
|
* blockchain_db: add functions for adding/removing/getting rct commitmentsmoneromooo-monero2016-08-281-0/+4
|
* tests: new ringct test for checking H2 valuesShen Noether2016-08-281-0/+11
| | | | Ported from Shen's RingCT repo
* tests: zero inputs/outputs are in fact supposed to be acceptedmoneromooo-monero2016-08-281-14/+14
|
* ringct: add a test for prooveRange being non deterministicmoneromooo-monero2016-08-281-0/+9
|