Alexander Blair
01b512f3a9
Merge pull request #6716
...
76c16822d
wallet2_api: implement runtime proxy configuration (xiphon)
4 years ago
Alexander Blair
a08df6eb1b
Merge pull request #6603
...
4e2377995
Change ZMQ-JSON txextra to hex and remove unnecessary base fields (Lee Clagett)
4 years ago
Alexander Blair
009ca6fcd3
Merge pull request #6601
...
98c151ecb
Optimize ZMQ-JSON vector reading; GetBlocksFast reads 24%+ faster (Lee Clagett)
60627c9f2
Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ faster (Lee Clagett)
fe96e66eb
Fix pruned tx for ZMQ's GetBlocksFast (Lee Clagett)
4 years ago
Alexander Blair
6d29ee6c52
Merge pull request #6493
...
921dd8dde
Use domain-separated ChaCha20 for in-memory key encryption (Sarang Noether)
4 years ago
Alexander Blair
13549d590e
Merge pull request #6329
...
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)
4 years ago
Lee Clagett
4e2377995d
Change ZMQ-JSON txextra to hex and remove unnecessary base fields
4 years ago
Lee Clagett
fe96e66ebe
Fix pruned tx for ZMQ's GetBlocksFast
4 years ago
Sarang Noether
921dd8dde5
Use domain-separated ChaCha20 for in-memory key encryption
4 years ago
Sarang Noether
6bfcd31015
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.
4 years ago
Alexander Blair
c108c5e2f0
Merge pull request #6354
...
67ade8005
Add randomized delay when forwarding txes from i2p/tor -> ipv4/6 (Lee Clagett)
4 years ago
koe
85efc88c1e
Fix overflow issue in epee:misc_utils::rolling_median_t and median(), with unit test
4 years ago
xiphon
76c16822d0
wallet2_api: implement runtime proxy configuration
4 years ago
Alexander Blair
3ba6c7fd30
Merge pull request #6516
...
8656a8c9f
remove double includes (sumogr)
4 years ago
Alexander Blair
a0d179e528
Merge pull request #6512
...
5ef0607da
Update copyright year to 2020 (SomaticFanatic)
4 years ago
luigi1111
35e2520115
Merge pull request #6559
...
15538f7
ByteSlice: Fix persisting ptr to std::moved SSO buffer (Doy-lee)
4 years ago
Doyle
15538f7e3f
ByteSlice: Fix persisting ptr to std::moved SSO buffer
...
The Bug:
1. Construct `byte_slice.portion_` with `epee::span(buffer)` which copies a pointer to the SSO buffer to `byte_slice.portion_`
2. It constructs `byte_slice.storage_` with `std::move(buffer)` (normally this swap pointers, but SSO means a memcpy and clear on the original SSO buffer)
3. `slice.data()` returns a pointer from `slice.portion_` that points to the original SSO cleared buffer, `slice.storage_` has the actual string.
4 years ago
Lee Clagett
67ade80055
Add randomized delay when forwarding txes from i2p/tor -> ipv4/6
4 years ago
Lee Clagett
29e563bb1e
Fixed bugs for take_slice and byte_stream->byte_slice
4 years ago
sumogr
8656a8c9ff
remove double includes
4 years ago
SomaticFanatic
5ef0607da6
Update copyright year to 2020
...
Update copyright year to 2020
4 years ago
Lee Clagett
e5214a2ca2
Adding ZMQ/Pub support for txpool_add and chain_main events
4 years ago
luigi1111
06c81b6527
Merge pull request #6359
...
f9441c5
Fixed string_ref usage bug in epee::from_hex::vector (vtnerd)
4 years ago
Lee Clagett
c26c93019a
Add byte_stream for zero-copy serialization, and add support in ZMQ-JSON.
4 years ago
luigi1111
8185054db7
Merge pull request #6451
...
4ed60b6
Bulletproofs: verification speedup (SarangNoether)
4 years ago
luigi1111
a5cc613a68
Merge pull request #6460
...
f8b1480
unit_tests: fix gcc+ warning (sumogr)
4 years ago
Sumo Gr
f8b1480f95
unit_tests: fix gcc+ warning
4 years ago
Sarang Noether
4ed60b626a
Bulletproofs: verification speedup
4 years ago
luigi1111
d1f3d3376d
Merge pull request #6381
...
e719760
Fix receive order leakage with tx fluffing (vtnerd)
4 years ago
luigi1111
5757d99208
Merge pull request #6361
...
68a6507
Fixed bug in ZMQ JSON-RPC method field (vtnerd)
4 years ago
luigi1111
0150a480fd
Merge pull request #6357
...
42a7a4d
daemon: auto public nodes - cache and prioritize most stable nodes (xiphon)
4 years ago
luigi1111
cfc0f4a7fa
Merge pull request #6351
...
81c5943
Remove temporary std::string creation in some hex->bin calls (vtnerd)
5fcc23a
Move hex->bin conversion to monero copyright files and with less includes (vtnerd)
3387f0e
Reduce template bloat in hex->bin for ZMQ json (vtnerd)
4 years ago
luigi1111
bf70696a85
Merge pull request #6346
...
dbfa4f8
unit_tests: fix missing test names (xiphon)
4 years ago
luigi1111
c4f75fe898
Merge pull request #6339
...
c61abf8
remove empty statements (shopglobal)
4 years ago
luigi1111
292e2d8f28
Merge pull request #6335
...
0078ce7
wipeable_string: split - treat CR, LF and Tabs as separators (xiphon)
4 years ago
Lee Clagett
da99157462
Use byte_slice for sending zmq messages - removes data copy within zmq
4 years ago
luigi1111
096e2135dd
Merge pull request #6214
...
054b4c7
protocol: request txpool contents when synced (moneromooo-monero)
4 years ago
Lee Clagett
f9441c5759
Fixed string_ref usage bug in epee::from_hex::vector
4 years ago
Lee Clagett
0c29e17581
Fix network unit tests after epee changes
4 years ago
Alexander Blair
7d4a93fab3
Merge pull request #6285
...
d0641b42
net: fix incorrect less operator for top/i2p addresses (Aaron Hook)
4 years ago
Lee Clagett
02d887c2e5
Adding Dandelion++ support to public networks:
...
- 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
4 years ago
moneromooo-monero
054b4c7f41
protocol: request txpool contents when synced
...
A newly synced Alice sends a (typically quite small) list of
txids in the local tpxool to a random peer Bob, who then uses
the existing tx relay system to send Alice any tx in his txpool
which is not in the list Alice sent
4 years ago
Aaron Hook
aa93e38862
p2p: remove old debug commands
4 years ago
Alexander Blair
820ab9fdea
Merge pull request #6273
...
0f78b06e
Various improvements to the ZMQ JSON-RPC handling: (Lee Clagett)
4 years ago
Lee Clagett
e719760253
Fix receive order leakage with tx fluffing
4 years ago
Lee Clagett
5fcc23ae0a
Move hex->bin conversion to monero copyright files and with less includes
4 years ago
Lee Clagett
0f78b06e8c
Various improvements to the ZMQ JSON-RPC handling:
...
- Finding handling function in ZMQ JSON-RPC now uses binary search
- Temporary `std::vector`s in JSON output now use `epee::span` to
prevent allocations.
- Binary -> hex in JSON output no longer allocates temporary buffer
- C++ structs -> JSON skips intermediate DOM creation, and instead
write directly to an output stream.
4 years ago
Alexander Blair
944e8a4542
Merge pull request #6220
...
a9bdc6e4
Improved performance for epee serialization: (Lee Clagett)
4 years ago
Alexander Blair
e7997cd62a
Merge pull request #6202
...
02b80513
unit_tests: remove invalid bulletproofs unit test (moneromooo-monero)
4 years ago
xiphon
42a7a4dd32
daemon: auto public nodes - cache and prioritize most stable nodes
4 years ago
xiphon
dbfa4f84ee
unit_tests: fix missing test names
4 years ago
Interchained
c61abf87c0
remove empty statements
...
Cleaning up a little around the code base.
4 years ago
xiphon
0078ce7fac
wipeable_string: split - treat CR, LF and Tabs as separators
4 years ago
moneromooo-monero
dd8c6b1703
wallet: do not split integrated addresses in address book api
4 years ago
Aaron Hook
d0641b42fe
net: fix incorrect less operator for top/i2p addresses
4 years ago
luigi1111
dad4cf121e
Merge pull request #6018
...
dce6f05
rpc: Only show version string if it matches expected pattern (ndorf)
3293780
daemon: Use rpc for 'version' command (ndorf)
5 years ago
moneromooo-monero
02b8051339
unit_tests: remove invalid bulletproofs unit test
...
It was intended to check a case which is actually valid (0 gamma),
but was actually duplicating the bad amount test.
Reported by WhatDo_ on IRC.
5 years ago
Lee Clagett
68a6507c3f
Fixed bug in ZMQ JSON-RPC method field
5 years ago
Nathan Dorfman
dce6f055f9
rpc: Only show version string if it matches expected pattern
5 years ago
Lee Clagett
70c9cd3c9c
Change to Tx diffusion (Dandelion++ fluff) instead of flooding
5 years ago
Lee Clagett
a9bdc6e4c4
Improved performance for epee serialization:
...
- Removed copy of field names in binary deserialization
- Removed copy of array values in binary deserialization
- Removed copy of string values in json deserialization
- Removed unhelpful allocation in json string value parsing
- Removed copy of blob data on binary and json serialization
5 years ago
Lee Clagett
5d7ae2d279
Adding support for hidden (anonymity) txpool
5 years ago
moneromooo-monero
1554a7768b
unit_tests: fix use after free
5 years ago
luigi1111
bb2bcf3521
Merge pull request #5972
...
9447e72
cryptonote: add function to get weight from a pruned tx (moneromooo-monero)
5 years ago
luigi1111
84ce43a239
Merge pull request #5966
...
be82c40
Support median block size > 4 GB (moneromooo-monero)
5 years ago
moneromooo-monero
be82c40703
Support median block size > 4 GB
...
add a 128/64 division routine so we can use a > 32 bit median block
size in calculations
5 years ago
moneromooo-monero
c65a221549
unit_tests: fix build after rename
5 years ago
xiphon
d4d2b5c79a
p2p+rpc: don't skip p2p or rpc port bind failure by default
5 years ago
moneromooo-monero
9447e7276d
cryptonote: add function to get weight from a pruned tx
...
The weight of the prunable data is deterministic from the
unpruned data, so it can be determined from a pruned tx
5 years ago
moneromooo-monero
77afe91db6
unit_tests: fix build with boost 1.69
5 years ago
luigi1111
bf525793c7
Merge pull request #5915
...
8330e77
monerod can now sync from pruned blocks (moneromooo-monero)
5 years ago
luigi1111
0e4ab6091c
Merge pull request #5960
...
ae34e1b
unit_tests: fix ringdb unit tests (moneromooo-monero)
5 years ago
luigi1111
342e7f844f
Merge pull request #5921
...
2a7d915
Fixed i2p/tor tx flooding bug (white noise disabled) (vtnerd)
5 years ago
moneromooo-monero
ae34e1ba1c
unit_tests: fix ringdb unit tests
5 years ago
luigi1111
40501cc131
Merge pull request #5895
...
fdc00d0
unit tests: replace global var with lambda returning static local var (stoffu)
5 years ago
moneromooo-monero
8330e772f1
monerod can now sync from pruned blocks
...
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
5 years ago
luigi1111
3f6096867d
Merge pull request #5916
...
7b076d5
p2p: fix bans taking port into account (moneromooo-monero)
5 years ago
luigi1111
06bee964a8
Merge pull request #5878
...
f9b3f6e
Removed Berkeley DB and db switching logic (JesusRami)
5 years ago
luigi1111
ee6e849627
Merge pull request #5877
...
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)
5 years ago
moneromooo-monero
7b076d5170
p2p: fix bans taking port into account
5 years ago
moneromooo-monero
32f725d32f
Properly format multiline logs
...
As a side effect, colouring on Windows should now work
regardless of version
5 years ago
Jesus Ramirez
f9b3f6ef3b
Removed Berkeley DB and db switching logic
5 years ago
luigi1111
d663e1e3db
Merge pull request #5818
...
f91a06c
Dropping cppzmq dependency; adding some zmq utils (vtnerd)
5 years ago
stoffu
fdc00d0906
unit tests: replace global var with lambda returning static local var
...
Fixes assertion failure (curstate == 1) in random.c in debug mode
5 years ago
luigi1111
d0d76f771a
Merge pull request #5876
...
a5c7eeb
unit_tests: fix build with CLANG 8 and boost 1.69 (moneromooo-monero)
5 years ago
luigi1111
d91393daaf
Merge pull request #5856
...
f56e160
unit_tests: Fix uninitialized values (liptakmatyas)
5 years ago
moneromooo-monero
0e2fda5bf0
unit_tests: fix levin unit test on big endian
5 years ago
moneromooo-monero
d046ca1db0
difficulty: fix check_hash on big endian
5 years ago
Jesus Ramirez
2cd4fd8972
Changed the use of boost:value_initialized for C++ list initializer
5 years ago
moneromooo-monero
a5c7eebaea
unit_tests: fix build with CLANG 8 and boost 1.69
5 years ago
luigi1111
98af2e954b
Merge pull request #5793
...
bdfc63a
Add ref-counted buffer byte_slice. Currently used for sending TCP data. (vtnerd)
3b24b1d
Added support for 'noise' over I1P/Tor to mask Tx transmission. (vtnerd)
5 years ago
luigi1111
85014813cf
Merge pull request #5707
...
3a0451a
MLSAG speedup and additional checks (SarangNoether)
5 years ago
Sarang Noether
3a0451a8be
MLSAG speedup and additional checks
5 years ago
Matyas Liptak
f56e160217
unit_tests: Fix uninitialized values
...
- Initialize the `hash` in the `get_block_hash()` function of the
`output_distribution` unit test explicitly, to silence `valgrind`
warnings.
5 years ago
luigi1111
a8e99198bf
Merge pull request #5748
...
b350726
boost: update obsolete usage of endian API (moneromooo-monero)
5 years ago
luigi1111
f205d28e96
Merge pull request #5727
...
7b9a420
Replace std::random_shuffle with std::shuffle (tomsmeding)
5 years ago
luigi1111
2da11baecc
Merge pull request #5718
...
c8709fe
wallet: do not print log settings when unset (moneromooo-monero)
7b18e83
unit_tests: check return values on test data parsing (moneromooo-monero)
5 years ago
moneromooo-monero
eeca5ca0c8
epee: support unicode in parsed strings
5 years ago
luigi1111
86ee631212
Merge pull request #5652
...
f81cb4f
unit_tests: add more leeway to the 'same distribution' check (moneromooo-monero)
5 years ago
Tom Smeding
7b9a420787
Replace std::random_shuffle with std::shuffle
...
According to [1], std::random_shuffle is deprecated in C++14 and removed
in C++17. Since std::shuffle is available since C++11 as a replacement
and monero already requires C++11, this is a good replacement.
A cryptographically secure random number generator is used in all cases
to prevent people from perhaps copying an insecure std::shuffle call
over to a place where a secure one would be warranted. A form of
defense-in-depth.
[1]: https://en.cppreference.com/w/cpp/algorithm/random_shuffle
5 years ago
Lee Clagett
2a7d91523b
Fixed i2p/tor tx flooding bug (white noise disabled)
5 years ago
luigi1111
7fc76451a5
Merge pull request #5529
...
de27651
use crypto::rand instead of libc rand in a few tests (moneromooo-monero)
5 years ago
luigi1111
e3de4aa68b
Merge pull request #5502
...
25a7cfd
add a few checks where it seems appropriate (moneromooo-monero)
1a66a86
remove unused code (moneromooo-monero)
5 years ago
Lee Clagett
f91a06c6d7
Dropping cppzmq dependency; adding some zmq utils
5 years ago
Lee Clagett
3b24b1d082
Added support for "noise" over I1P/Tor to mask Tx transmission.
5 years ago
Lee Clagett
bdfc63ae4d
Add ref-counted buffer byte_slice. Currently used for sending TCP data.
5 years ago
moneromooo-monero
65c4004963
allow blocking whole subnets
5 years ago
moneromooo-monero
b350726a5a
boost: update obsolete usage of endian API
5 years ago
moneromooo-monero
c2238327d0
keccak: guard against misaligned memory accesses on ARM
...
The code generated is exactly the same as the direct access
one on x86_64
5 years ago
moneromooo-monero
7b18e838ea
unit_tests: check return values on test data parsing
...
Won't trigger in practice, but you never know when that code changes
Coverity 199723, 199685
5 years ago
moneromooo-monero
f81cb4f24b
unit_tests: add more leeway to the "same distribution" check
...
This is an inherently probabilistic check, which occasionally fails
for a matching distribution
5 years ago
moneromooo-monero
dbecfe7d5d
unit_tests: make the density test a bit less stringent
...
It's an inherently random test
5 years ago
moneromooo-monero
de27651f80
use crypto::rand instead of libc rand in a few tests
...
We don't need secure randomness here, but it should shut coverity up
5 years ago
Riccardo Spagni
f64f59627d
Merge pull request #5510
...
e9809382
fix wide difficulty conversion with some versions of boost (moneromooo-monero)
5 years ago
Riccardo Spagni
97cb1c9436
Merge pull request #5508
...
1c44e658
wallet2: reject standalone short payment IDs in monero: URI API (moneromooo-monero)
5 years ago
Riccardo Spagni
2d04b0e500
Merge pull request #5499
...
a4c4a2d8
blockchain: keep a rolling long term block weight median (moneromooo-monero)
5 years ago
Riccardo Spagni
9d91301faa
Merge pull request #5496
...
0eb0d6b8
rpc: improve get_output_distribution (moneromooo-monero)
5 years ago
moneromooo-monero
a4c4a2d8aa
blockchain: keep a rolling long term block weight median
5 years ago
moneromooo-monero
e980938210
fix wide difficulty conversion with some versions of boost
5 years ago
moneromooo-monero
1c44e65863
wallet2: reject standalone short payment IDs in monero: URI API
5 years ago
moneromooo-monero
1a66a86f94
remove unused code
5 years ago
moneromooo-monero
25a7cfdb4a
add a few checks where it seems appropriate
5 years ago
moneromooo-monero
a59c27465b
unit_tests: fix crash in debug in output_distribution test
...
updating the block size limit needs recent block sizes,
so we feed it dummy ones
5 years ago
moneromooo-monero
0eb0d6b802
rpc: improve get_output_distribution
...
It can now handle small reorgs without having to rescan the
whole blockchain.
Also add a test for it.
5 years ago
moneromooo-monero
c07366430a
unit_tests: don't delete log file on windows, it will fail
5 years ago
Lee Clagett
55aae6a9a3
Fix socks tests in windows and handle errors better
5 years ago
moneromooo-monero
35e0a968bd
wallet2: "output lineup" fake out selection
...
Based on python code by sarang:
https://github.com/SarangNoether/skunkworks/blob/outputs/outputs/simulate.py
5 years ago
Riccardo Spagni
e9464eb5e3
Merge pull request #5413
...
5fafb90e
testdb: add override keyword where missing (stoffu)
5 years ago
stoffu
5fafb90e91
testdb: add override keyword where missing
...
and delete obsolete BlockchainBDB::get_tx_output_indices along the way
5 years ago
moneromooo-monero
e3dea47859
unit_tests: undo is_blocked implementation factoring
...
The is_host_blocked method is not on master yet
5 years ago
Riccardo Spagni
8d16e92dcb
Merge pull request #5425
...
58585986
p2p: fix integer overflow in host bans (moneromooo-monero)
5 years ago
Riccardo Spagni
a1ea611e24
Merge pull request #5424
...
93bb2f48
ringct: prevent use of full ringct signatures for more than one input (moneromooo-monero)
5 years ago
Riccardo Spagni
0d2aaac15b
Merge pull request #5414
...
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)
5 years ago
moneromooo-monero
5e673c03fe
blockchain_db: fix db txn ending too early
...
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.
5 years ago
moneromooo-monero
5858598604
p2p: fix integer overflow in host bans
5 years ago
moneromooo-monero
93bb2f48f7
ringct: prevent use of full ringct signatures for more than one input
5 years ago
stoffu
e9fac29a4b
unit_tests/long_term_block_weight: some tweaks that seem to make more sense
5 years ago
Riccardo Spagni
c34930c207
Merge pull request #5391
...
71907980
unit_tests: fix long term block weight test after cache change (moneromooo-monero)
5 years ago
Riccardo Spagni
c96fc4bf59
Merge pull request #5341
...
0218bc49
test: hmac_keccak - fix number of chunks counting (Dusan Klinec)
5 years ago
moneromooo-monero
7190798049
unit_tests: fix long term block weight test after cache change
5 years ago
Riccardo Spagni
e55b3f9dda
Merge pull request #5239
...
91f4c7f4
Make difficulty 128 bit instead of 64 bit (moneromooo-monero)
5 years ago
Lee Clagett
7acfa9f3cc
Added socks proxy (tor/i2pd/kovri) support to wallet
5 years ago
moneromooo-monero
91f4c7f45f
Make difficulty 128 bit instead of 64 bit
...
Based on Boolberry work by:
jahrsg <jahr@jahr.me>
cr.zoidberg <crypto.zoidberg@gmail.com>
5 years ago
Dusan Klinec
0218bc497d
test: hmac_keccak - fix number of chunks counting
5 years ago
Riccardo Spagni
37ee4acf48
Merge pull request #5274
...
dc0c0c91
tests: disable wallet SSL init for tests involving wallet2 (moneromooo-monero)
5 years ago
Riccardo Spagni
5ac46c5310
Merge pull request #5256
...
4b21d38d
blockchain: speed up getting N blocks weights/long term weights (moneromooo-monero)
5 years ago
Riccardo Spagni
48e3a341f8
Merge pull request #5211
...
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)
5 years ago
Dusan Klinec
d74d26f2c9
crypto: hmac_keccak added
5 years ago
Lee Clagett
0c7e7bce18
Adding classes, functions, and utilities for common LMDB operations.
5 years ago
moneromooo-monero
dc0c0c91c5
tests: disable wallet SSL init for tests involving wallet2
5 years ago
moneromooo-monero
4b21d38dfd
blockchain: speed up getting N blocks weights/long term weights
5 years ago