aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-06-10Merge pull request #7661luigi11111-8/+4
08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
2021-05-11Warnings: unused var in core_tests:chaingen.hmj-xmr1-1/+1
2021-02-18Merge pull request #7355luigi11111-2/+2
bd12984 Remove copies from foreach loops (thanks to Clang) (Lee Clagett) 1572df9 Removing unused namespace alias (Lee Clagett)
2021-02-09Remove unused variables in monero codebaseKevin Barbour2-5/+0
There are quite a few variables in the code that are no longer (or perhaps never were) in use. These were discovered by enabling compiler warnings for unused variables and cleaning them up. In most cases where the unused variables were the result of a function call the call was left but the variable assignment removed, unless it was obvious that it was a simple getter with no side effects.
2021-01-28Remove copies from foreach loops (thanks to Clang)Lee Clagett1-2/+2
2021-01-23Improve cryptonote (block and tx) binary read performanceLee Clagett1-8/+4
2020-10-28Add RELINK_TARGETS, monero_add_target_no_relink and use ↵mj-xmr1-1/+1
monero_add_executable/monero_add_library where possible (mj-xmr) Add monero_add_minimal_executable and use in tests This is done in order not to have to relink targets, when just an .so changed, but not its interface.
2020-09-06Merge pull request #6111Riccardo Spagni1-3/+3
d20ff4f64 functional_tests: add a large (many randomx epochs) p2p reorg test (moneromooo-monero) 6a0b3b1f8 functional_tests: add randomx tests (moneromooo-monero) 9d42649d5 core: fix mining from a block that's not the current top (moneromooo-monero)
2020-08-28core_tests: fix failures after v13moneromooo-monero4-13/+21
v13 enforces claiming the full block reward, so we need to keep track of tx fees to add them to the coinbase
2020-08-28core_tests: remove hardcoded hf versionmoneromooo-monero1-1/+1
2020-08-27core: fix mining from a block that's not the current topmoneromooo-monero1-3/+3
2020-08-27Integrate CLSAGs into moneromoneromooo-monero10-79/+466
They are allowed from v12, and MLSAGs are rejected from v13.
2020-08-27Merge pull request #6760Alexander Blair3-0/+30
844fb4e94 enforce claiming maximum coinbase amount (moneromooo-monero)
2020-08-21enforce claiming maximum coinbase amountmoneromooo-monero3-0/+30
Claiming a slightly lesser amount does not yield the size gains that were seen pre rct, so this closes a fingerprinting vector
2020-08-17replace most boost serialization with existing monero serializationmoneromooo-monero1-2/+0
This reduces the attack surface for data that can come from malicious sources (exported output and key images, multisig transactions...) since the monero serialization is already exposed to the outside, and the boost lib we were using had a few known crashers. For interoperability, a new load-deprecated-formats wallet setting is added (off by default). This allows loading boost format data if there is no alternative. It will likely go at some point, along with the ability to load those. Notably, the peer lists file still uses the boost serialization code, as the data it stores is define in epee, while the new serialization code is in monero, and migrating it was fairly hairy. Since this file is local and not obtained from anyone else, the marginal risk is minimal, but it could be migrated later if needed. Some tests and tools also do, this will stay as is for now.
2020-07-19Merge pull request #6512Alexander Blair35-35/+35
5ef0607da Update copyright year to 2020 (SomaticFanatic)
2020-05-31Fix boost <1.60 compilation and fix boost 1.73+ warningsLee Clagett1-2/+3
2020-05-14build: fix boost 1.73 compatibilityselsta1-2/+2
2020-05-06Update copyright year to 2020SomaticFanatic35-35/+35
Update copyright year to 2020
2020-03-26Adding Dandelion++ support to public networks:Lee Clagett4-2/+44
- New flag in NOTIFY_NEW_TRANSACTION to indicate stem mode - Stem loops detected in tx_pool.cpp - Embargo timeout for a blackhole attack during stem phase
2020-03-14Correct key image check in tx_poolLee Clagett3-0/+64
2020-02-28Merge pull request #6061Alexander Blair4-5/+0
f1091c41 core_tests: remove some useless verbose logs (moneromooo-monero)
2020-01-24Merge pull request #6300Alexander Blair1-4/+10
6f330865 fix tests bug added in #6110 (Dusan Klinec)
2020-01-24Merge pull request #6146Alexander Blair1-2/+2
70c9cd3c Change to Tx diffusion (Dandelion++ fluff) instead of flooding (Lee Clagett)
2020-01-19fix tests bug added in #6110Dusan Klinec1-4/+10
- e.g., fixes gen_block_big_major_version test, error: generation failed: what=events not set, cannot compute valid RandomX PoW - ask for events only if difficulty > 1 (when it really matters) - throwing an exception changed to logging, so it is easy to spot a problem if tests start to fail.
2020-01-16Merge pull request #6115Alexander Blair1-0/+2
27522aaa core_tests: reset thread pool between tests (moneromooo-monero)
2020-01-11Merge pull request #6110Alexander Blair3-22/+180
da6c807f tests: fix HF12 chaingen - construct bc object from events (Dusan Klinec)
2019-11-13tests: fix HF12 chaingen - construct bc object from eventsDusan Klinec3-22/+180
2019-11-10core_tests: reset thread pool between testsmoneromooo-monero1-0/+2
Avoids a DB error (leading to an assert) where a thread uses a read txn previously created with an environment that was since closed and reopened. While this usually works since BlockchainLMDB renews txns if it detects the environment has changed, this will not work if objects end up being allocated at the same address as the previous instance, leading to stale data usage. Thanks hyc for the LMDB debugging.
2019-11-04Change to Tx diffusion (Dandelion++ fluff) instead of floodingLee Clagett1-2/+2
2019-11-02Adding support for hidden (anonymity) txpoolLee Clagett7-22/+723
2019-10-31cryptonote: untangle dependency from miner to blockchainmoneromooo-monero1-2/+6
It causes link errors at least on mac
2019-10-30core_tests: remove some useless verbose logsmoneromooo-monero4-5/+0
2019-10-08Merge pull request #5915luigi11111-5/+13
8330e77 monerod can now sync from pruned blocks (moneromooo-monero)
2019-09-27monerod can now sync from pruned blocksmoneromooo-monero1-5/+13
If the peer (whether pruned or not itself) supports sending pruned blocks to syncing nodes, the pruned version will be sent along with the hash of the pruned data and the block weight. The original tx hashes can be reconstructed from the pruned txes and theur prunable data hash. Those hashes and the block weights are hashes and checked against the set of precompiled hashes, ensuring the data we received is the original data. It is currently not possible to use this system when not using the set of precompiled hashes, since block weights can not otherwise be checked for validity. This is off by default for now, and is enabled by --sync-pruned-blocks
2019-09-25RandomX integrationHoward Chu1-2/+2
Support RandomX PoW algorithm
2019-09-24Merge pull request #5882luigi11113-6/+40
a444f06 blockchain: enforce 10 block age for spending outputs (moneromooo-monero)
2019-09-24Merge pull request #5877luigi11111-2/+2
2cd4fd8 Changed the use of boost:value_initialized for C++ list initializer (JesusRami) 4ad191f Removed unused boost/value_init header (whyamiroot) 928f4be Make null hash constants constexpr (whyamiroot)
2019-09-17blockchain: enforce 10 block age for spending outputsmoneromooo-monero3-6/+40
Some custom wallet code apparently ignores this, which causes users of that code to be fingerprinted
2019-09-02Changed the use of boost:value_initialized for C++ list initializerJesus Ramirez1-2/+2
2019-08-19blockchain: forbid v1 coinbase from v12moneromooo-monero3-0/+28
2019-04-29add a few checks where it seems appropriatemoneromooo-monero2-0/+2
2019-04-17Remove unneeded SFINAE on check_tx/block verification in core_testsDoyle3-77/+28
2019-04-16Merge pull request #5409Riccardo Spagni4-5/+5
ac874e2d tests: fix test_options initialization error (Dusan Klinec)
2019-04-16Merge pull request #5400Riccardo Spagni1-2/+17
5e673c03 blockchain_db: fix db txn ending too early (moneromooo-monero)
2019-04-14blockchain_db: fix db txn ending too earlymoneromooo-monero1-2/+17
The db txn in add_block ending caused the entire overarching batch txn to stop. Also add a new guard class so a db txn can be stopped in the face of exceptions. Also use a read only db txn in init when the db itself is read only, and do not save the max tx size in that case.
2019-04-10tests: trezor tests fixes and improvementsDusan Klinec1-1/+1
- configurable hardforks via env vars
2019-04-07tests: fix test_options initialization errorDusan Klinec4-5/+5
2019-03-21Merge pull request #5211Riccardo Spagni2-6/+4
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-20tests/trezor: HF9 and HF10 testsDusan Klinec2-6/+4
- tests fixes for HF10, builder change, rct_config; fix_chain - get_tx_key test - proper testing after live refresh added - live refresh synthetic test - log available funds for easier test construction - wallet::API tests with mocked daemon
2019-03-17Merge pull request #5061Riccardo Spagni33-33/+33
1f2930ce Update 2019 copyright (binaryFate)
2019-03-14Merge pull request #4977Riccardo Spagni5-110/+1353
5ea17909 device/trezor: debugging features, trezor tests (Dusan Klinec)
2019-03-05Update 2019 copyrightbinaryFate33-33/+33
2019-03-05device/trezor: debugging features, trezor testsDusan Klinec5-110/+1353
2019-03-05cryptonote: avoid double parsing blocks when syncingmoneromooo-monero1-2/+2
2019-03-04ArticMine's new block weight algorithmmoneromooo-monero1-1/+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-22ringct: encode 8 byte amount, saving 24 bytes per outputmoneromooo-monero1-1/+1
Found by knaccc
2019-01-22add a bulletproof version, new bulletproof type, and rct configmoneromooo-monero4-45/+45
This makes it easier to modify the bulletproof format
2019-01-18Merge pull request #5046Riccardo Spagni2-5/+13
524bf750 core_tests: add a --list_tests command line switch (moneromooo-monero)
2019-01-07core_tests: add a --list_tests command line switchmoneromooo-monero2-5/+13
2018-12-22core_tests: rename invalid multisig tests to read "invalid"moneromooo-monero3-16/+16
2018-11-23remove some unused codemoneromooo-monero2-4/+1
Found by codacy.com
2018-10-01Multisig M/N functionality core tests addednaughtyfox4-42/+223
2018-10-01Arbitrary M/N multisig schemes:naughtyfox1-1/+1
* support in wallet2 * support in monero-wallet-cli * support in monero-wallet-rpc * support in wallet api * support in monero-gen-trusted-multisig * unit tests for multisig wallets creation
2018-09-11core_tests: add a test for 4-aggregated BP verificationmoneromooo-monero3-0/+16
2018-09-11core_tests: add a test for a tx with empty bulletproofmoneromooo-monero3-0/+20
2018-09-11v8: per byte fee, pad bulletproofs, fixed 11 ring sizemoneromooo-monero7-163/+176
2018-09-11require canonical multi output bulletproof layoutmoneromooo-monero3-13/+13
2018-09-11Bulletproof aggregated verification and testsmoneromooo-monero7-4/+573
Also constrains bulletproofs to simple rct, for simplicity
2018-09-11bulletproofs: add multi output bulletproofs to rctmoneromooo-monero1-1/+1
2018-07-07core_tests: add --filter to select which tests to runmoneromooo-monero2-0/+7
2018-06-26replace std::list with std::vector on some hot pathsmoneromooo-monero7-18/+18
also use reserve where appropriate
2018-03-14keypair::generate: always require hw::device to avoid possible mistakestoffu2-3/+3
2018-03-05Stagenetstoffu1-2/+2
2018-03-04Code modifications to integrate Ledger HW device into monero-wallet-cli.cslashm5-7/+10
The basic approach it to delegate all sensitive data (master key, secret ephemeral key, key derivation, ....) and related operations to the device. As device has low memory, it does not keep itself the values (except for view/spend keys) but once computed there are encrypted (with AES are equivalent) and return back to monero-wallet-cli. When they need to be manipulated by the device, they are decrypted on receive. Moreover, using the client for storing the value in encrypted form limits the modification in the client code. Those values are transfered from one C-structure to another one as previously. The code modification has been done with the wishes to be open to any other hardware wallet. To achieve that a C++ class hw::Device has been introduced. Two initial implementations are provided: the "default", which remaps all calls to initial Monero code, and the "Ledger", which delegates all calls to Ledger device.
2018-02-02pass large parameters by const ref, not valuemoneromooo-monero1-1/+1
Coverity 136394 136397 136409 136526 136529 136533 175302
2018-01-26Readd copyright starting datexmr-eric2-2/+2
2018-01-26Update 2018 copyrightxmr-eric31-31/+31
2017-12-17core_tests: multisig test now tests multiple inputsmoneromooo-monero3-136/+209
2017-12-17Match surae's recommendation to derive multisig keysmoneromooo-monero1-4/+6
2017-12-17make multisig work with subaddressesmoneromooo-monero1-7/+11
Thanks to kenshi84 for help getting this work
2017-12-17add multisig core test and factor multisig building blocksmoneromooo-monero6-0/+716
2017-12-16cryptonote_core does not depend on p2p anymoremoneromooo-monero1-1/+1
As a followon side effect, this makes a lot of inline code included only in particular cpp files (and instanciated when necessary.
2017-12-08add bulletproofs from v7 on testnetmoneromooo-monero1-1/+1
2017-11-14remove "using namespace std" from headersmoneromooo-monero1-0/+1
It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
2017-11-14Merge pull request #2696Riccardo Spagni1-0/+1
937e7f8a Initialize openssl on startup (moneromooo-monero)
2017-11-14Merge pull request #2691Riccardo Spagni10-12/+8
f92f1606 core_tests: do not include chaingen_tests_list.h in all tests (moneromooo-monero)
2017-11-14Merge pull request #2686Riccardo Spagni1-5/+5
21b9f6f3 always use core_tests for consistency, not coretests (moneromooo-monero)
2017-10-21Initialize openssl on startupmoneromooo-monero1-0/+1
2017-10-20core_tests: do not include chaingen_tests_list.h in all testsmoneromooo-monero10-12/+8
This fixes all tests being annoyingly rebuilt when one changes
2017-10-19always use core_tests for consistency, not coretestsmoneromooo-monero1-5/+5
Other tests use unit_tests, performance_tests, etc. This fixes getting it wrong half the time when typing.
2017-10-17core_tests: fix for subaddress patchkenshi846-8/+9
2017-10-07Subaddresseskenshi847-15/+28
2017-09-25move checkpoints in a separate librarymoneromooo-monero1-2/+2
2017-09-25Merge pull request #2424Riccardo Spagni1-2/+4
28b72b6e tx_pool: pre-init tvc.m_verifivation_failed before processing (moneromooo-monero) 50a629b2 core_tests: catch (impossible in practice) tx extra api failure (moneromooo-monero) fee15ef1 wallet2: catch failure to parse address (moneromooo-monero) 1399e26d net_peerlist: remove dead code (moneromooo-monero) 50e09698 tx_pool: guard against failure getting tx hash (moneromooo-monero) 54cc209a wallet_rpc_server: catch failure to create directory (moneromooo-monero) 3e55099c wallet_rpc_server: init m_vm to NULL in ctor (moneromooo-monero) 7d0dde5e wallet_args: remove redundant default value for --log-file (moneromooo-monero) ed4a3350 wallet2: catch failure to save keys file (moneromooo-monero) 44434c8a wallet2_api: check whether dynamic_cast returns NULL (moneromooo-monero) 92f2f687 core: check return value from parse_hexstr_to_binbuff (moneromooo-monero) 5475692e wallet2_api: remove an unused, uninitialized, field (moneromooo-monero) a7ba3de1 libwallet_api_tests: initialize newblock_triggered on reset (moneromooo-monero) b2763ace wallet2_api: init error code to "no error" in the ctor (moneromooo-monero) b5faac53 get_blockchain_top now returns void (moneromooo-monero) 2e44d8f2 wallet_rpc_server: guard against exceptions (moneromooo-monero) 4230876b simplewallet: guard against I/O exceptions (moneromooo-monero) 06c1e057 daemon: initialize decode_as_json in RPC request (moneromooo-monero) 11f71af5 http_base: init size_t in http_request_info ctor (moneromooo-monero)
2017-09-25core_tests: catch (impossible in practice) tx extra api failuremoneromooo-monero1-2/+4
CID 175301
2017-09-21build: auto update version info without manually deleting version.hstoffu1-0/+1
2017-06-09core_tests: fix tests failing due to new txpool code requitring batch ↵moneromooo-monero1-0/+1
transactions
2017-05-30Merge pull request #2036Riccardo Spagni1-2/+10
89b2f306 tests: fix invalid key image test (moneromooo-monero) a374a522 wallet2: check key image validity domain in import_key_images (moneromooo-monero)
2017-05-25Move txpool to the databasemoneromooo-monero1-0/+10
Integration could go further (ie, return_tx_to_pool calls should not be needed anymore, possibly other things). poolstate.bin is now obsolete.
2017-05-18tests: fix invalid key image testmoneromooo-monero1-2/+10
It was using an invalid key image which wasn't in the key image domain, so the transaction was rejected earlier than the test was expecting
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni29-29/+29
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi844-14/+14
2017-01-28core_tests: decrease trace level from trace to debugmoneromooo-monero1-1/+1
It had become very, very spammy
2017-01-16Change logging to easylogging++moneromooo-monero4-67/+27
This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
2017-01-14fix do_not_relay not preventing relaying on a timermoneromooo-monero1-2/+2
Also print its value when printing pool
2016-09-18cmake: transitive deps and remove deprecated LINK_*redfish1-5/+1
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-28tests: hard fork list must end with a 0moneromooo-monero3-4/+4
2016-08-28New "Halfway RingCT" outputs for coinbase transactionsmoneromooo-monero8-11/+26
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.
2016-08-28rct amount key modified as per luigi1111's recommendationsmoneromooo-monero1-8/+9
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.
2016-08-28rct: change the simple flag to a typemoneromooo-monero1-1/+1
for future expansion
2016-08-28core_tests: fix a couple pre-rct tests using rctmoneromooo-monero1-2/+2
2016-08-28change fork settings to allow pre-rct txes for one more fork cyclemoneromooo-monero2-9/+9
2016-08-28rct: make the amount key derivable by a third party with the tx keymoneromooo-monero1-5/+3
Scheme design from luigi1114.
2016-08-28port get_tx_key/check_tx_key to rctmoneromooo-monero1-2/+4
2016-08-28integrate simple rct apimoneromooo-monero1-1/+4
2016-08-28rct: add the tx prefix hash into the MLSAGmoneromooo-monero3-0/+33
to protect the non-signatures parts of the tx from tampering.
2016-08-28Add rct core testsmoneromooo-monero7-10/+764
2016-08-28add rct to the protocolmoneromooo-monero7-34/+25
It is not yet constrained to a fork, so don't use on the real network or you'll be orphaned or rejected.
2016-05-01tests: fix tests broken by the removal of the block reward accumulation loopmoneromooo-monero5-23/+17
The tests for rejection of unmixable outputs in v2 are commented out, as there are no unmixable outputs created anymore. This should be restored at some point.
2016-04-02tests: fix build with older GCCJavier Smooth1-2/+4
2016-03-21core_tests: fix compile failure with GCC 4.8.4moneromooo-monero1-1/+1
Reported and tested by smooth
2016-03-21Revert "Print stack trace upon exceptions"moneromooo-monero3-10/+10
Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
2016-03-19Print stack trace upon exceptionsmoneromooo-monero3-10/+10
Useful for debugging users' logs
2016-02-22move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero1-2/+0
This avoids the need to define that variable in every program which uses epee.
2016-02-17Merge pull request #659Riccardo Spagni1-1/+1
d56b2e5 core_tests: fix a compile problem with CLANG (moneromooo-monero)
2016-02-13core_tests: fix a compile problem with CLANGmoneromooo-monero1-1/+1
It doesn't like const objects from classes that do not have a user defined ctor, apparently. Reported by othe.
2016-02-13Add the new test filesmoneromooo-monero2-0/+295
Forgot to add them before commit
2016-02-08core_tests: add tests for hard fork behaviors (MRL-0004)moneromooo-monero4-7/+22
We also replace the --fakechain option with an optional structure containing details about configuration for the core/blockchain, for test purposes. This seems more future friendly.
2016-02-08core_tests: allow setting miner tx max_outs when creating a blockmoneromooo-monero2-4/+6
2016-01-31tests: fix compilation failure after V1 define renamemoneromooo-monero1-1/+1
2015-12-31updated copyright yearRiccardo Spagni25-25/+25
2015-12-30core_tests: deinit core before destroying itmoneromooo-monero1-1/+3
This fixes a use after free by ioservice threads
2015-12-25tests: fix various tests by using parameters better suited to moneromoneromooo-monero3-8/+8
Either smaller coin values (as monero has smaller block rewards), or pre-hard fork values (full reward zone), or post-Bytecoin values (emission speed).
2015-12-25tests: fix some double spending testsmoneromooo-monero1-7/+8
Some tests assume the first output in a transaction goes to the recipient. However, it can be the change. When it is, the recipient's keys will not recognize this output. To fix this, we send all we have, to ensure there is no change, and the first output goes to the recipient. I'm not sure why this worked with Cryptonote. The tests sent 17 coins, which seems way smaller than the first Bytecoin block reward, so there would have been change too. Maybe outputs were not shuffled originally.
2015-12-25tests: use 255 as a "too high" block versionmoneromooo-monero1-2/+2
While the original cryptonote accepted only the current major version, we can accept higher ones.
2015-12-25blockchain: fix bitflipping test with quantized block rewardsmoneromooo-monero1-1/+2
Block reward may now be less than the full amount allowed. This was breaking the bitflipping test. We now keep track of whether a block which was accepted by the core has a lower than allowed block reward, and allow this in the test.
2015-12-13core_tests: fix ring_signature_1 testsmoneromooo-monero1-8/+8
They were trying to send too much monero, and thus failing. The parameters were set in such a way that the (simple) output gathering code could fulfill them for 4 block rewards for the original Bytecoin emission, but that does not work with monero so we need to use smaller values.
2015-12-13core_tests: bump default test fee to 0.02 moneromoneromooo-monero1-1/+1
The current monero consensus uses 0.01 per kB fees, so use enough for 2 kB transactions for now. It'll probably have to be either bumped further or changed to calculate the proper fee.
2015-12-13add a --fakechain argument for testsmoneromooo-monero1-0/+4
The core tests use the blockchain, and reset it to be able to add test data to it. This does not play nice with the databases, since those will save that data without an explicit save call. We add a fakechain flag that the tests will set, which tells the core and blockchain code to use a separate database, as well as skip a few things like checkpoints and fixup, which only make sense for real data.
2015-12-09tests: remove data-dir argument registrationmoneromooo-monero1-1/+0
It is already registered in cryptonote::core::init_options, which we now call
2015-11-21Relay transactions when they linger too long in the poolmoneromooo-monero1-2/+2
The last relayed time of a transaction is maintained, and transactions will be relayed again if they are still in the pool after a certain amount of time, which increases with the transaction's age. All such transactions are resent, whether or not they originated on the local node.
2015-11-13More changes for 2-min blocksJavier Smooth1-4/+4
Use the correct block time for realtime fuzz on locktime Use the correct block time to calculate next_difficulty on alt chains (will not work as-is with voting) Lock unit tests to original block time for now
2015-11-13Adjust difficulty target (2 min) and full reward zone (60 kbytes) for block ↵Javier Smooth1-2/+2
version 2
2015-04-01Merge remote-tracking branch 'monero-official/master' into network-1.6-work1rfree2monero1-1/+3
2015-03-01Fix tests building -- function signatures changedThomas Winget1-1/+3
2015-02-242014 network limit 1.3 fix log/path/data +utilsrfree2monero2-0/+4
+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).
2015-01-02year updated in licenseRiccardo Spagni25-25/+25
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-23cmake: put each test executable in its own directoryBen Boeckel1-0/+74
2014-09-15Separate testnet address prefixZachary Michaels1-2/+2
2014-09-15Add testnet flagZachary Michaels1-1/+1
Source: cryptonotefoundation
2014-07-23License updated to BSD 3-clausefluffypony24-70/+697
2014-05-250.8.8updatemydesktop1-6/+6
2014-05-03initial [broken] updatemydesktop5-14/+15
2014-04-02json rpc for wallet and bugfixAntonio Juarez3-18/+17
2014-03-03moved all stuff to githubAntonio Juarez24-0/+5318