aboutsummaryrefslogtreecommitdiff
path: root/tests (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-08-17Merge pull request #5504luigi11112-2/+20
eeca5ca epee: support unicode in parsed strings (moneromooo-monero) 3e11bb5 functional_tests: test creating wallets with local language names (moneromooo-monero)
2019-08-17Merge pull request #5490luigi11111-0/+12
1a93aa4 functional_tests: add get_fee_estimate to blockchain test (moneromooo-monero)
2019-08-16functional_tests: test creating wallets with local language namesmoneromooo-monero1-2/+3
2019-08-16epee: support unicode in parsed stringsmoneromooo-monero1-0/+17
2019-08-15Merge pull request #5677luigi11111-1/+1
a5127cc tests: functional: fix python syntax (radfish)
2019-08-15Merge pull request #5652luigi11111-2/+2
f81cb4f unit_tests: add more leeway to the 'same distribution' check (moneromooo-monero)
2019-08-14Merge pull request #5498luigi11111-0/+7
6eb2638 functional_tests: add a 3/3 multisig test (moneromooo-monero)
2019-08-14Merge pull request #5487luigi11111-0/+1
df83ed7 consensus: from v12, enforce >= 2 outputs (moneromooo-monero)
2019-07-29functional_tests: add validate_address testsmoneromooo-monero1-0/+111
2019-07-24Merge pull request #5621luigi11111-0/+0
c88d6a9 tests: fixed file exec permissions (ston1th)
2019-07-24Merge pull request #5529luigi11113-8/+8
de27651 use crypto::rand instead of libc rand in a few tests (moneromooo-monero)
2019-07-24Merge pull request #5507luigi11111-1/+1
2b198a6 difficulty-tests: remove spurious dependency on cryptonote_core (moneromooo-monero)
2019-07-24Merge pull request #5502luigi11114-1/+3
25a7cfd add a few checks where it seems appropriate (moneromooo-monero) 1a66a86 remove unused code (moneromooo-monero)
2019-07-24Merge pull request #5473luigi11111-4/+4
ddf7890 python-rpc: add missing getblock RPC parameters (moneromooo-monero)
2019-07-16allow blocking whole subnetsmoneromooo-monero2-3/+53
2019-07-12Merge pull request #5746luigi11111-0/+3
3140a37 wallet_rpc_server: fix get_bulk_payments with short payment ids (moneromooo-monero)
2019-07-09wallet_rpc_server: fix get_bulk_payments with short payment idsmoneromooo-monero1-0/+3
2019-07-04keccak: guard against misaligned memory accesses on ARMmoneromooo-monero1-0/+17
The code generated is exactly the same as the direct access one on x86_64
2019-06-19tests: functional: fix python syntaxredfish1-1/+1
2019-06-16unit_tests: add more leeway to the "same distribution" checkmoneromooo-monero1-2/+2
This is an inherently probabilistic check, which occasionally fails for a matching distribution
2019-06-09tests: fixed file exec permissionsston1th1-0/+0
2019-06-01Merge pull request #5583Riccardo Spagni15-59/+60
77594c4f functional_tests: fix python3 compatibility (moneromooo-monero)
2019-06-01Merge pull request #5558Riccardo Spagni1-1/+10
4ac52e52 functional_tests: fix rare get_output_distribution failure (moneromooo-monero)
2019-05-29functional_tests: fix python3 compatibilitymoneromooo-monero15-59/+60
Also add missing bans test to the default tests
2019-05-20functional_tests: fix rare get_output_distribution failuremoneromooo-monero1-1/+10
When the wallet auto refreshes after mining the last two blocks but before popping them, it will then try to use outputs which are not unlocked yet. This is really a wallet problem, which will be fixed later.
2019-05-20unit_tests: make the density test a bit less stringentmoneromooo-monero1-1/+1
It's an inherently random test
2019-05-12Made code block usage consistent across all .md filesRohaq2-37/+77
2019-05-10use crypto::rand instead of libc rand in a few testsmoneromooo-monero3-8/+8
We don't need secure randomness here, but it should shut coverity up
2019-05-09python-rpc: add missing getblock RPC parametersmoneromooo-monero1-4/+4
2019-05-07Merge pull request #5510Riccardo Spagni4-10/+10
e9809382 fix wide difficulty conversion with some versions of boost (moneromooo-monero)
2019-05-07Merge pull request #5508Riccardo Spagni1-3/+1
1c44e658 wallet2: reject standalone short payment IDs in monero: URI API (moneromooo-monero)
2019-05-07Merge pull request #5499Riccardo Spagni2-0/+203
a4c4a2d8 blockchain: keep a rolling long term block weight median (moneromooo-monero)
2019-05-07Merge pull request #5496Riccardo Spagni3-12/+236
0eb0d6b8 rpc: improve get_output_distribution (moneromooo-monero)
2019-05-07Merge pull request #5419Riccardo Spagni1-0/+1
f29fecd5 build: debug and test builds via contrib (Dusan Klinec)
2019-05-02blockchain: keep a rolling long term block weight medianmoneromooo-monero2-0/+203
2019-05-02Merge pull request #5497Riccardo Spagni1-0/+7
a59c2746 unit_tests: fix crash in debug in output_distribution test (moneromooo-monero)
2019-05-02Merge pull request #5484Riccardo Spagni1-0/+1
36ced067 functional_tests: flush stdout before popening new process (moneromooo-monero)
2019-05-01fix wide difficulty conversion with some versions of boostmoneromooo-monero4-10/+10
2019-05-01wallet2: reject standalone short payment IDs in monero: URI APImoneromooo-monero1-3/+1
2019-05-01difficulty-tests: remove spurious dependency on cryptonote_coremoneromooo-monero1-1/+1
2019-04-29remove unused codemoneromooo-monero1-1/+0
2019-04-29add a few checks where it seems appropriatemoneromooo-monero3-0/+3
2019-04-26functional_tests: add a 3/3 multisig testmoneromooo-monero1-0/+7
2019-04-25unit_tests: fix crash in debug in output_distribution testmoneromooo-monero1-0/+7
updating the block size limit needs recent block sizes, so we feed it dummy ones
2019-04-25rpc: improve get_output_distributionmoneromooo-monero3-12/+236
It can now handle small reorgs without having to rescan the whole blockchain. Also add a test for it.
2019-04-24Merge pull request #5483Riccardo Spagni1-0/+3
c0736643 unit_tests: don't delete log file on windows, it will fail (moneromooo-monero)
2019-04-24Merge pull request #5467Riccardo Spagni8-0/+57
aba2b2e7 functional_tests: reset blockchain on test start (moneromooo-monero) 375fde94 hardfork: fix off by one updating fork index after popping (moneromooo-monero)
2019-04-24functional_tests: add get_fee_estimate to blockchain testmoneromooo-monero1-0/+12
2019-04-23consensus: from v12, enforce >= 2 outputsmoneromooo-monero1-0/+1
2019-04-23functional_tests: flush stdout before popening new processmoneromooo-monero1-0/+1
2019-04-23unit_tests: don't delete log file on windows, it will failmoneromooo-monero1-0/+3
2019-04-20functional_tests: reset blockchain on test startmoneromooo-monero8-0/+57
2019-04-19Fix socks tests in windows and handle errors betterLee Clagett1-7/+13
2019-04-18Merge pull request #5465Riccardo Spagni1-3/+9
3e50a9e8 functional_tests: detect requests python module (moneromooo-monero)
2019-04-18functional_tests: detect requests python modulemoneromooo-monero1-3/+9
2019-04-18wallet2: "output lineup" fake out selectionmoneromooo-monero1-0/+117
Based on python code by sarang: https://github.com/SarangNoether/skunkworks/blob/outputs/outputs/simulate.py
2019-04-17Merge pull request #5415Riccardo Spagni3-77/+28
299052bc Remove unneeded SFINAE on check_tx/block verification in core_tests (Doyle)
2019-04-17Merge pull request #5413Riccardo Spagni1-6/+6
5fafb90e testdb: add override keyword where missing (stoffu)
2019-04-17testdb: add override keyword where missingstoffu1-6/+6
and delete obsolete BlockchainBDB::get_tx_output_indices along the way
2019-04-17Remove unneeded SFINAE on check_tx/block verification in core_testsDoyle3-77/+28
2019-04-16unit_tests: undo is_blocked implementation factoringmoneromooo-monero1-1/+12
The is_host_blocked method is not on master yet
2019-04-16Merge pull request #5446Riccardo Spagni1-0/+50
7d79222f daemon: remove debug info (moneromooo-monero) 8fec0f98 functional_tests: add sweep_single test (moneromooo-monero) 9880d61b wallet_rpc_server: remove unused code (moneromooo-monero) 8a61b33d rpc: omit irrelevant fields for pool txes in gettransactions (moneromooo-monero) 56508524 rpc: add relayed in get_transaction output (moneromooo-monero) 82e510f1 rpc: set default log category in core_rpc_server.h (moneromooo-monero)
2019-04-16Merge pull request #5425Riccardo Spagni1-12/+17
58585986 p2p: fix integer overflow in host bans (moneromooo-monero)
2019-04-16Merge pull request #5424Riccardo Spagni2-142/+57
93bb2f48 ringct: prevent use of full ringct signatures for more than one input (moneromooo-monero)
2019-04-16Merge pull request #5414Riccardo Spagni2-11/+11
e9fac29a unit_tests/long_term_block_weight: some tweaks that seem to make more sense (stoffu) 467f4c7e tests/block_weight: use integer division when computing median (stoffu) 815d08dc tests/block_weight: remove unused MULTIPLIER_SMALL (stoffu) 661f1fb8 blockchain: remove unused calc of short_term_constraint (stoffu)
2019-04-16Merge pull request #5409Riccardo Spagni5-6/+6
ac874e2d tests: fix test_options initialization error (Dusan Klinec)
2019-04-16Merge pull request #5400Riccardo Spagni2-2/+21
5e673c03 blockchain_db: fix db txn ending too early (moneromooo-monero)
2019-04-15functional_tests: add sweep_single testmoneromooo-monero1-0/+50
2019-04-15Merge pull request #5402Riccardo Spagni1-7/+7
cbf32241 rpc: make wide_difficulty hexadecimal (moneromooo-monero)
2019-04-15Merge pull request #5398Riccardo Spagni4-24/+75
41901b8d device/trezor: env-configurable ports (Dusan Klinec) c97a1f79 tests: trezor tests fixes and improvements (Dusan Klinec)
2019-04-15Merge pull request #5393Riccardo Spagni4-0/+15
c5d3ea2f tests: add a few try/catch in main to shut coverity up (moneromooo-monero)
2019-04-14blockchain_db: fix db txn ending too earlymoneromooo-monero2-2/+21
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-11p2p: fix integer overflow in host bansmoneromooo-monero1-12/+17
2019-04-11ringct: prevent use of full ringct signatures for more than one inputmoneromooo-monero2-142/+57
2019-04-11Merge pull request #5384Riccardo Spagni1-0/+2
0eee6cd7 block_weight: catch exceptions in main for clean exit on error (moneromooo-monero) 4b3bb829 epee: init a new ssl related variable in ctor (moneromooo-monero)
2019-04-11block_weight: catch exceptions in main for clean exit on errormoneromooo-monero1-0/+2
2019-04-11functional_tests: exit with 1 if any test failsmoneromooo-monero1-0/+2
2019-04-11functional_tests: cold signing key images/outputs import/exportmoneromooo-monero1-0/+6
2019-04-11functional_tests: add double spend detection testsmoneromooo-monero1-0/+61
2019-04-11functional_tests: add alt chains testsmoneromooo-monero1-1/+34
2019-04-11functional_tests: add wallet creation language testsmoneromooo-monero1-0/+21
2019-04-11functional_tests: add more wallet testsmoneromooo-monero2-0/+55
get_transfer_by_txid, get_height, open/close
2019-04-11functional_tests: add describe_transfer testsmoneromooo-monero2-0/+33
2019-04-11functional_tests: add more blockchain related testsmoneromooo-monero1-0/+125
Related to emission, reorgs, getting tx data back, output distribution and histogram
2019-04-11functional_tests: add bans testsmoneromooo-monero1-0/+117
2019-04-10device/trezor: env-configurable portsDusan Klinec1-1/+1
2019-04-10tests: trezor tests fixes and improvementsDusan Klinec4-25/+76
- configurable hardforks via env vars
2019-04-10build: debug and test builds via contribDusan Klinec1-0/+1
2019-04-09unit_tests/long_term_block_weight: some tweaks that seem to make more sensestoffu1-8/+9
2019-04-09tests/block_weight: use integer division when computing medianstoffu1-2/+2
2019-04-09tests/block_weight: remove unused MULTIPLIER_SMALLstoffu1-1/+0
2019-04-07tests: fix test_options initialization errorDusan Klinec5-6/+6
2019-04-06Merge pull request #5391Riccardo Spagni1-0/+5
71907980 unit_tests: fix long term block weight test after cache change (moneromooo-monero)
2019-04-06Merge pull request #5353Riccardo Spagni1-1/+1
1bc78cc2 tests: trezor_test fix (Dusan Klinec)
2019-04-06Merge pull request #5341Riccardo Spagni1-6/+7
0218bc49 test: hmac_keccak - fix number of chunks counting (Dusan Klinec)
2019-04-05rpc: make wide_difficulty hexadecimalmoneromooo-monero1-7/+7
This should be friendlier for clients which don't have bignum support
2019-04-03tests: add a few try/catch in main to shut coverity upmoneromooo-monero4-0/+15
2019-04-03unit_tests: fix long term block weight test after cache changemoneromooo-monero1-0/+5
2019-04-01Merge pull request #5318Riccardo Spagni2-5/+7
1a91385e block_weight: fix python 2/3 compatibility (moneromooo-monero)
2019-04-01Merge pull request #5352Riccardo Spagni1-0/+5
ae6885f6 blockchain: incremental long term block weight cache (moneromooo-monero) 9b687c78 blockchain: simple cache for the long term block weights (moneromooo-monero)
2019-04-01Merge pull request #5331Riccardo Spagni17-297/+2061
32973434 python-rpc: add getblockheadersrange daemon RPC (moneromooo-monero) c7bfdc35 python-rpc: add console.py (moneromooo-monero) 22b644f4 functional_tests: move RPC API to utils, it is not test specific (moneromooo-monero) 30c865f0 functional_tests: add balance tests (moneromooo-monero) fdfa832f functional_tests: add missing parameters to get_balance (moneromooo-monero) cf6d7759 functional_tests: add proofs tests (tx key, in/out tx, reserve) (moneromooo-monero) a3144bd7 functional_tests: add more transfer tests (moneromooo-monero) 5d580bfa functional_tests: add get_bulk_transfer tests (moneromooo-monero) 0becbd16 functional_tests: add message signing/verification tests (moneromooo-monero) a5dbf7f5 functional_tests: add multisig and cold signing tests (moneromooo-monero) b2fc5719 functional_tests: support several daemons/wallets (moneromooo-monero) 9e979ffa functional_tests: add txpool RPC tests (moneromooo-monero) 3e93c157 functional_tests: add integrated address tests (moneromooo-monero) b384309e functional_tests: add basic transfer tests (moneromooo-monero) ef7681b6 functional_tests: plug RPC tests into the cmake machinery (moneromooo-monero) 18a2ed45 functional_tests: add basic mining tests (moneromooo-monero) 98e280fc functional_tests: add wallet address/subaddress RPC tests (moneromooo-monero) 8dcd4d3d functional_tests: improve RPC blockchain tests (moneromooo-monero)
2019-04-01block_weight: fix python 2/3 compatibilitymoneromooo-monero2-5/+7
2019-04-01Merge pull request #5289Riccardo Spagni1-1/+3
ab6c3b1d tests: fix path in instructions (moneromooo-monero)
2019-04-01Merge pull request #5239Riccardo Spagni11-10/+306
91f4c7f4 Make difficulty 128 bit instead of 64 bit (moneromooo-monero)
2019-03-28blockchain: simple cache for the long term block weightsmoneromooo-monero1-0/+5
2019-03-26tests: trezor_test fixDusan Klinec1-1/+1
2019-03-25Added socks proxy (tor/i2pd/kovri) support to walletLee Clagett5-4/+94
2019-03-24Make difficulty 128 bit instead of 64 bitmoneromooo-monero11-10/+306
Based on Boolberry work by: jahrsg <jahr@jahr.me> cr.zoidberg <crypto.zoidberg@gmail.com>
2019-03-24test: hmac_keccak - fix number of chunks countingDusan Klinec1-6/+7
2019-03-24Merge pull request #5274Riccardo Spagni4-4/+4
dc0c0c91 tests: disable wallet SSL init for tests involving wallet2 (moneromooo-monero)
2019-03-23python-rpc: add console.pymoneromooo-monero1-1/+1
It allows one to connect to a running daemon or wallet, and use its RPC API from python. Usage: python -i console.py <port> It will detect whether it's talking to a daemon or wallet and initialize itself accordingly.
2019-03-22functional_tests: move RPC API to utils, it is not test specificmoneromooo-monero17-892/+25
2019-03-22functional_tests: add balance testsmoneromooo-monero1-59/+171
2019-03-22functional_tests: add missing parameters to get_balancemoneromooo-monero1-1/+6
2019-03-21functional_tests: add proofs tests (tx key, in/out tx, reserve)moneromooo-monero3-1/+350
2019-03-21functional_tests: add more transfer testsmoneromooo-monero2-6/+60
manual relay, transfer to integrated address, and a few negative transfer tests
2019-03-21functional_tests: add get_bulk_transfer testsmoneromooo-monero2-0/+49
2019-03-21functional_tests: add message signing/verification testsmoneromooo-monero3-1/+110
2019-03-21functional_tests: add multisig and cold signing testsmoneromooo-monero4-2/+544
2019-03-21functional_tests: support several daemons/walletsmoneromooo-monero3-29/+42
2019-03-21functional_tests: add txpool RPC testsmoneromooo-monero3-1/+178
2019-03-21functional_tests: add integrated address testsmoneromooo-monero3-1/+125
2019-03-21functional_tests: add basic transfer testsmoneromooo-monero3-14/+360
2019-03-21functional_tests: plug RPC tests into the cmake machinerymoneromooo-monero2-3/+120
2019-03-21functional_tests: add basic mining testsmoneromooo-monero3-0/+152
2019-03-21functional_tests: add wallet address/subaddress RPC testsmoneromooo-monero2-0/+259
2019-03-21functional_tests: improve RPC blockchain testsmoneromooo-monero6-72/+295
2019-03-21Merge pull request #5256Riccardo Spagni2-0/+24
4b21d38d blockchain: speed up getting N blocks weights/long term weights (moneromooo-monero)
2019-03-21Merge pull request #5251Riccardo Spagni5-7/+17
7632dede crypto: fix PaX issue on NetBSD with CNv4 JIT (moneromooo-monero) 89b1630e gtest: build fix for NetBSD (moneromooo-monero) fa43b547 tests: handle any cmake detected python interpreter (moneromooo-monero)
2019-03-21Merge pull request #5211Riccardo Spagni11-83/+1394
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 Klinec9-83/+1241
- 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-20crypto: hmac_keccak addedDusan Klinec2-0/+153
2019-03-19Adding classes, functions, and utilities for common LMDB operations.Lee Clagett2-0/+406
2019-03-19Merge pull request #5240Riccardo Spagni1-1/+0
c8c154a2 tests: fix cnv4-jit-test link on mac (moneromooo-monero)
2019-03-17Merge pull request #5192Riccardo Spagni1-2/+2
d0e07b3d performance_tests: fix NetBSD build (moneromooo-monero) 7d88d8f2 discontinue use of alloca (moneromooo-monero)
2019-03-17Merge pull request #5061Riccardo Spagni156-156/+156
1f2930ce Update 2019 copyright (binaryFate)
2019-03-14tests: fix path in instructionsmoneromooo-monero1-1/+3
Reported by notmike
2019-03-14Merge pull request #4977Riccardo Spagni9-110/+3077
5ea17909 device/trezor: debugging features, trezor tests (Dusan Klinec)
2019-03-12tests: disable wallet SSL init for tests involving wallet2moneromooo-monero4-4/+4
2019-03-08blockchain: speed up getting N blocks weights/long term weightsmoneromooo-monero2-0/+24
2019-03-07gtest: build fix for NetBSDmoneromooo-monero2-1/+4
2019-03-07tests: handle any cmake detected python interpretermoneromooo-monero3-6/+13
2019-03-06tests: fix cnv4-jit-test link on macmoneromooo-monero1-1/+0
2019-03-05Update 2019 copyrightbinaryFate156-156/+156
2019-03-05Merge pull request #4852Riccardo Spagni1-0/+19
057c279c epee: add SSL support (Martijn Otto)
2019-03-05epee: add SSL supportMartijn Otto1-0/+19
RPC connections now have optional tranparent SSL. An optional private key and certificate file can be passed, using the --{rpc,daemon}-ssl-private-key and --{rpc,daemon}-ssl-certificate options. Those have as argument a path to a PEM format private private key and certificate, respectively. If not given, a temporary self signed certificate will be used. SSL can be enabled or disabled using --{rpc}-ssl, which accepts autodetect (default), disabled or enabled. Access can be restricted to particular certificates using the --rpc-ssl-allowed-certificates, which takes a list of paths to PEM encoded certificates. This can allow a wallet to connect to only the daemon they think they're connected to, by forcing SSL and listing the paths to the known good certificates. To generate long term certificates: openssl genrsa -out /tmp/KEY 4096 openssl req -new -key /tmp/KEY -out /tmp/REQ openssl x509 -req -days 999999 -sha256 -in /tmp/REQ -signkey /tmp/KEY -out /tmp/CERT /tmp/KEY is the private key, and /tmp/CERT is the certificate, both in PEM format. /tmp/REQ can be removed. Adjust the last command to set expiration date, etc, as needed. It doesn't make a whole lot of sense for monero anyway, since most servers will run with one time temporary self signed certificates anyway. SSL support is transparent, so all communication is done on the existing ports, with SSL autodetection. This means you can start using an SSL daemon now, but you should not enforce SSL yet or nothing will talk to you.
2019-03-05device/trezor: debugging features, trezor testsDusan Klinec9-110/+3077
2019-03-05cryptonote: avoid double parsing blocks when syncingmoneromooo-monero4-7/+7
2019-03-05save some database calls when getting top block hash and heightmoneromooo-monero2-2/+6
2019-03-05Avoid repeated (de)serialization when syncingmoneromooo-monero3-31/+31
2019-03-04Merge pull request #5117Riccardo Spagni1-1/+0
fcd00079 unit_tests: remove leftover debug print (moneromooo-monero)
2019-03-04Merge pull request #5102Riccardo Spagni2-62/+59
1eef0565 performance_tests: better stats, and keep track of timing history (moneromooo-monero)
2019-03-04tests: add a CNv4 JIT testmoneromooo-monero2-0/+133
2019-03-04performance_tests: add tests for new Cryptonight variantsmoneromooo-monero2-10/+10
2019-03-04Merge pull request #5126Riccardo Spagni3-6/+35
f1fb06b1 Fixed path to int-util.h (SChernykh) 9da0892b Adding cnv4-2 tweaks (SChernykh) f51397b3 Cryptonight variant 4 aka CryptonightR (SChernykh)
2019-03-04ArticMine's new block weight algorithmmoneromooo-monero12-176/+732
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-02-25performance_tests: fix NetBSD buildmoneromooo-monero1-2/+2
2019-02-14Adding cnv4-2 tweaksSChernykh1-10/+10
Co-Authored-By: Lee Clagett <vtnerd@users.noreply.github.com>
2019-02-14Cryptonight variant 4 aka CryptonightRSChernykh3-6/+35
It introduces random integer math into the main loop.
2019-02-01unit_tests: remove leftover debug printmoneromooo-monero1-1/+0
2019-01-28Adding initial support for broadcasting transactions over TorLee Clagett4-8/+936
- 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-28notify: handle arbitrary tagsmoneromooo-monero1-1/+1
2019-01-28Merge pull request #5064Riccardo Spagni1-0/+36
5ecc5cc7 added two tests for partial word and case tolerance in mnemonics (Paul Shapiro)
2019-01-28Merge pull request #5052Riccardo Spagni12-107/+94
b6534c40 ringct: remove unused senderPk from ecdhTuple (moneromooo-monero) 7d375981 ringct: the commitment mask is now deterministic (moneromooo-monero) 99d946e6 ringct: encode 8 byte amount, saving 24 bytes per output (moneromooo-monero) cdc3ccec ringct: save 3 bytes on bulletproof size (moneromooo-monero) f931e16c add a bulletproof version, new bulletproof type, and rct config (moneromooo-monero)
2019-01-28performance_tests: better stats, and keep track of timing historymoneromooo-monero2-62/+59
2019-01-22ringct: remove unused senderPk from ecdhTuplemoneromooo-monero2-4/+0
This was an early ringct field, which was never used in production
2019-01-22ringct: the commitment mask is now deterministicmoneromooo-monero2-36/+0
saves space in the tx and is safe Found by knaccc
2019-01-22ringct: encode 8 byte amount, saving 24 bytes per outputmoneromooo-monero3-6/+22
Found by knaccc
2019-01-22add a bulletproof version, new bulletproof type, and rct configmoneromooo-monero11-78/+89
This makes it easier to modify the bulletproof format
2019-01-22Pruningmoneromooo-monero4-0/+245
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.
2019-01-18Merge pull request #5046Riccardo Spagni2-5/+13
524bf750 core_tests: add a --list_tests command line switch (moneromooo-monero)
2019-01-18Merge pull request #5028Riccardo Spagni1-1/+1
464097e5 blockchain_ancestry: allow getting ancestry of a single output (moneromooo-monero) a6216d1a blockchain_db: allow getting output keys without commitment (moneromooo-monero)
2019-01-16blockchain_db: allow getting output keys without commitmentmoneromooo-monero1-1/+1
Since the commitment has to be calculated for non rct outputs, it slows down a lot unnecessarily if we don't need it
2019-01-16epee: speedup word/number matchingmoneromooo-monero1-0/+84
Number matching semantics are slightly changed: since this is used as a filter to check whether a number is signed and/or floating point, we can speed this up further. strto* functions are called afterwards and will error out where necessary. We now also accept numbers like .4 which were not accepted before. The strto* calls on a boost::string_ref will not access unallocated memory since the parsers always stop at the first bad character, and the original string is zero terminated. in arbitrary time measurement units for some arbitrary test case: match_number2: 235 -> 70 match_word2: 330 -> 108
2019-01-16Merge pull request #5036Riccardo Spagni1-2/+2
d6dde478 remove trailing whitespace in README.md (David Meister)
2019-01-16Merge pull request #5005Riccardo Spagni3-16/+16
306a1244 core_tests: rename invalid multisig tests to read "invalid" (moneromooo-monero)
2019-01-16Merge pull request #5001Riccardo Spagni2-0/+2
a5ffc2d5 Remove boost::lexical_cast for uuid and unused uuid function (Lee Clagett)
2019-01-16Merge pull request #4984Riccardo Spagni1-1/+1
008647d7 blockchain_db: speedup tx output gathering (moneromooo-monero)
2019-01-16Merge pull request #4976Riccardo Spagni4-10/+79
85665003 epee: better network buffer data structure (moneromooo-monero)
2019-01-11added two tests for partial word and case tolerance in mnemonicsPaul Shapiro1-1/+36
2019-01-07core_tests: add a --list_tests command line switchmoneromooo-monero2-5/+13
2019-01-07Make get_output_key method constmoneroexamples1-2/+2
get_output_key method is commonly used when working with txs and their key images. Because the method is not const, passing blockchain object though const& or pointers to const is not possible in this context. This is especially problematic in external projects (e.g., projects in moneroexamples) that use monero C++ api to operate on the blockchain and txs. Thus, having get_output_key method will simplify moving blockchain object around through const references and pointers to const objects.
2019-01-06Merge pull request #4952Riccardo Spagni1-3/+3
570dd369 p2p: use vector instead of list for peer lists (moneromooo-monero)
2019-01-02remove trailing whitespace in README.mdDavid Meister1-2/+2
2018-12-31Merge pull request #4941luigi11111-5/+16
1cfd6f1 unit_tests: strengthen notify test against OS scheduling (moneromooo-monero)
2018-12-23epee: better network buffer data structuremoneromooo-monero4-10/+79
avoids pointless allocs and memcpy
2018-12-23Remove boost::lexical_cast for uuid and unused uuid functionLee Clagett2-0/+2
2018-12-22core_tests: rename invalid multisig tests to read "invalid"moneromooo-monero3-16/+16
2018-12-18blockchain_db: speedup tx output gatheringmoneromooo-monero1-1/+1
We know all the data we'll want for getblocks.bin is contiguous
2018-12-12Merge pull request #4901Riccardo Spagni1-0/+1
a48f2dab blockchain_prune_known_spent_data: blackball file is now optional (moneromooo-monero) 17b45725 Outputs where all amounts are known spent can now be pruned (moneromooo-monero)
2018-12-12Merge pull request #4787Riccardo Spagni2-0/+2
3dba7f25 protocol: option to pad transaction relay to the next kB (moneromooo-monero)
2018-12-07p2p: use vector instead of list for peer listsmoneromooo-monero1-3/+3
2018-12-05unit_tests: strengthen notify test against OS schedulingmoneromooo-monero1-5/+16
2018-12-04Merge pull request #4895Riccardo Spagni1-1/+1
3de7d52f unit_tests: fix malloc/delete mismatch (moneromooo-monero)
2018-12-04Merge pull request #4894Riccardo Spagni7-13/+7
aee7a4e3 wallet_rpc_server: do not use RPC data if the call failed (moneromooo-monero) 1a0733e5 windows_service: fix memory leak (moneromooo-monero) 0dac3c64 unit_tests: do not rethrow a copy of an exception (moneromooo-monero) 5d9915ab cryptonote: fix get_unit for non default settings (moneromooo-monero) d4f50cb1 remove some unused code (moneromooo-monero) 61163971 a few minor (but easy) performance tweaks (moneromooo-monero) 30023074 tests: slow_memmem now returns size_t (moneromooo-monero)
2018-12-04move int-util.h to epeemoneromooo-monero1-1/+1
2018-12-04Merge pull request #4854Riccardo Spagni2-3/+1
bd98e99c Removed a lot of unnecessary includes (Martijn Otto)
2018-12-04Merge pull request #4850Riccardo Spagni1-0/+29
b36353e2 unit_tests: add some hex parsing test for non hex input (xiphon) 6671110c unit_tests: add a test for parse_hexstr_to_binbuff (moneromooo-monero) f6187cd8 epee: speed up parse_hexstr_to_binbuff a little (Howard Chu)
2018-12-04Merge pull request #4848Riccardo Spagni1-1/+4
80be2dca unit_tests: don't take the address of an unwrapped secret key (moneromooo-monero)
2018-11-27Outputs where all amounts are known spent can now be prunedmoneromooo-monero1-0/+1
Only for pre rct for obvious reasons. Note: DO NOT use a known spent list which includes outputs which are not known spent. If the list includes any output that's just strongly thought to be spent, but not provably so, you risk finding yourself unable to sync past the point where that output is spent. I estimate only 200 MB saved on current mainnet though, unless the new blackballing rule unearths a good amount of large-amount-set extra spent outs.