summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* cmake: transitive deps and remove deprecated LINK_*redfish2016-09-1812-44/+35
| | | | | | | | | | | | | | 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
* fix remaining bitmonero and simplewallet bitsRiccardo Spagni2016-09-0310-10/+10
|
* cmake: exclude tests from runningredfish2016-09-011-11/+3
| | | | Minimize special cases in cmake script, likely to be forgotten.
* 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-305-8/+9
| | | | | | | | Issues #980 #983
* | tests: cmake: use a list for enabled testsredfish2016-08-301-6/+12
| | | | | | | | Avoid replicating common logic.
* | cmake: tests: gtest target is not always defined #983redfish2016-08-301-2/+9
|/
* Prevent core_tests from building under TravisJacob Torrey2016-08-291-1/+3
|
* Merge pull request #992Riccardo Spagni2016-08-281-2/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f1ba51c remove -Wall from coverage arguments (Jacob Torrey) f017fec Build the core_tests under Travis (Jacob Torrey) e0bf02a Streamline release-test target (Jacob Torrey) baf4574 Update badge to point to monero's coveralls (Jacob Torrey) d1dc2c3 Re-enable Travis IRC notifications (Jacob Torrey) 9c71b9e Silence coveralls to prevent 4MB logs (Jacob Torrey) 65041fb Disabled libwallet_api_test until Issue #895 resolved (Jacob Torrey) a450138 Disable core_tests on Travis-CI (Jacob Torrey) 650afac Added -j2 to Makefile and clean up matrix (Jacob Torrey) 256dec0 Streamline test building target (Jacob Torrey) 14915c2 Ensure tests are built prior to testing (Jacob Torrey) fe4992b Added coverage g++ commands (Jacob Torrey) 497b24f Update .travis.yml (Jacob Torrey) 678467d Update for the current make environment (Jacob Torrey) abcac26 Fixed tab/space issue on YAML (Jacob Torrey) 7351a11 Converted to a build matrix for testing and release (Jacob Torrey) 342dbfb Prep for coveralls (Jacob Torrey)
| * Build the core_tests under TravisJacob Torrey2016-08-271-4/+1
| |
| * Disabled libwallet_api_test until Issue #895 resolvedJacob Torrey2016-08-261-1/+3
| | | | | | | | Signed-off-by: Jacob Torrey <discipleofranok@gmail.com>
| * Disable core_tests on Travis-CIJacob Torrey2016-08-261-2/+11
| | | | | | | | Signed-off-by: Jacob Torrey <discipleofranok@gmail.com>
* | tests: hard fork list must end with a 0moneromooo-monero2016-08-283-4/+4
| |
* | New "Halfway RingCT" outputs for coinbase transactionsmoneromooo-monero2016-08-2810-11/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When RingCT is enabled, outputs from coinbase transactions are created as a single output, and stored as RingCT output, with a fake mask. Their amount is not hidden on the blockchain itself, but they are then able to be used as fake inputs in a RingCT ring. Since the output amounts are hidden, their "dustiness" is not an obstacle anymore to mixing, and this makes the coinbase transactions a lot smaller, as well as helping the TXO set to grow more slowly. Also add a new "Null" type of rct signature, which decreases the size required when no signatures are to be stored, as in a coinbase tx.
* | rct amount key modified as per luigi1111's recommendationsmoneromooo-monero2016-08-282-16/+17
| | | | | | | | | | | | | | | | | | 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-282-2/+2
| | | | | | | | 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-282-1/+6
| | | | | | | | | | 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
| |
* | core_tests: fix a couple pre-rct tests using rctmoneromooo-monero2016-08-281-2/+2
| |
* | change fork settings to allow pre-rct txes for one more fork cyclemoneromooo-monero2016-08-282-9/+9
| |
* | rct: make the amount key derivable by a third party with the tx keymoneromooo-monero2016-08-283-20/+35
| | | | | | | | 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
| |
* | port get_tx_key/check_tx_key to rctmoneromooo-monero2016-08-281-2/+4
| |
* | tests: add basic tests for simple rct apimoneromooo-monero2016-08-281-44/+378
| |
* | integrate simple rct apimoneromooo-monero2016-08-283-7/+65
| |
* | 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-285-6/+39
| | | | | | | | 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.
* | Add rct core testsmoneromooo-monero2016-08-287-10/+764
| |
* | tests: test for ringct rctSig data sizesmoneromooo-monero2016-08-281-3/+44
| | | | | | | | ie, more data or less data than expected in various fields
* | add rct to the protocolmoneromooo-monero2016-08-288-35/+26
| | | | | | | | | | It is not yet constrained to a fork, so don't use on the real network or you'll be orphaned or rejected.
* | 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
| |
* | tests: more ringct range proof testsmoneromooo-monero2016-08-281-0/+245
| |
* | remove original Cryptonote blockchain_storage blockchain formatmoneromooo-monero2016-08-282-3/+1
| |
* | 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
|/
* libwallet_api: tests: checking for result while opening walletIlya Kitaev2016-08-231-4/+6
|