Nym Seddon
66f7ea2dbf
Split fuzz tests during fuzz build
...
Only build fuzz tests in a fuzz build, and don't build other tests.
Keeps fuzz compilers from instrumenting other tests, which are not fuzzed.
Resolves #7232
3 years ago
moneromooo-monero
de01cb77d5
fuzz_tests: add a test for utf8canonical
3 years ago
Lee Clagett
9fc1c6dec5
Command max_bytes moved from dynamic map to static switch
3 years ago
Lee Clagett
fcac2ad95d
Restrict duplicate keys in epee binary format
3 years ago
moneromooo-monero
f02e91ef83
add a max levin packet size by command type
3 years ago
moneromooo-monero
c44dbc582f
protocol: more sanity checks in new chain block hashes
3 years ago
Lee Clagett
b4206cea5a
Add aggressive restrictions to pre-handshake p2p buffer limit
3 years ago
moneromooo-monero
b56a9f5bad
protocol: fix false positives dropping peers
...
it'd trigger on reorgs
3 years ago
luigi1111
4efba60bc1
Revert "Reject existing claimed blocks in sync mode"
3 years ago
moneromooo-monero
b042506baa
protocol: reject claimed block hashes that already are in the chain
3 years ago
Lee Clagett
8088f8d894
Fix byte_stream::put_n
3 years ago
moneromooo-monero
a42b6750b1
protocol: drop origin IP if a block fails to verify in sync mode
...
It would otherwise be possible for a peer to send bad blocks,
then disconnect and reconnect again, escaping bans
3 years ago
Lee Clagett
0b8bf308ce
Change epee binary output from std::stringstream to byte_stream
3 years ago
Lee Clagett
a3033e741b
Change to more efficient allocation strategy in byte_stream
3 years ago
moneromooo-monero
5ac11bb4d6
crypto: fix non zero scalar being 0 after reducing
3 years ago
mj-xmr
5b43b61153
Add RELINK_TARGETS, monero_add_target_no_relink and use 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.
3 years ago
TheCharlatan
4a971e575f
Unit Tests: Remove block reward upper bound size checks
...
Tests running after being compiled with `make debug-test` failed with
```
[ FAILED ] block_reward_and_current_block_weight.fails_on_huge_median_size
[ FAILED ] block_reward_and_current_block_weight.fails_on_huge_block_weight
```
With the introduction of the patch in
be82c40703 (diff-1a57d4e6013984c420da98d1adde0eafL113)
the assertions checking the weight of the median and current block
against a size limit were removed. Since the limit is now enforced by a
long divisor and a uint64_t type, checking in a separate test makes
little sense, so they are removed here.
3 years ago
xiphon
6294fe26df
cryptonote_core: dandelion - use local height or median height if syncing
3 years ago
Howard Chu
41f5f36e16
Better log message for unusable anon networks
3 years ago
selsta
4053e2ae14
functional_tests: inrease mining timeout
4 years ago
Lee Clagett
df5779790c
Switch to Dandelion++ fluff mode if no out connections for stem mode
4 years ago
iamamyth
80a21da5ba
functional_tests: rewrite mining code, clearer timeout info
4 years ago
moneromooo-monero
94b5378a3b
fuzz_tests: fix build error in signature fuzz test
4 years ago
xiphon
b8396218a3
Dandelion++: skip desynced peers in stem phase
4 years ago
wowario
572d7ea5ef
initial commit
4 years ago
luigi1111
fd657c7706
Merge pull request #6798
...
4e44306
enable CLSAG support for Trezor client (ph4r05)
4 years ago
Riccardo Spagni
aefa7740c3
Merge pull request #6111
...
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)
4 years ago
Dusan Klinec
4e4430603f
enable CLSAG support for Trezor client
4 years ago
luigi1111
ee0b02d0db
Merge pull request #6757
...
6a37da8
threadpool: guard against exceptions in jobs, and armour plating (moneromooo-monero)
4 years ago
moneromooo-monero
6a37da837e
threadpool: guard against exceptions in jobs, and armour plating
...
Those would, if uncaught, exit run and leave the waiter to wait
indefinitely for the number of active jobs to reach 0
4 years ago
Sarang Noether
fa06c39d97
Bind signature to full address and signing mode
4 years ago
moneromooo-monero
743608ec16
wallet: allow signing a message with spend or view key
4 years ago
moneromooo-monero
1dc427def9
core_tests: fix failures after v13
...
v13 enforces claiming the full block reward, so we need to keep
track of tx fees to add them to the coinbase
4 years ago
moneromooo-monero
4a9bd8f70f
core_tests: remove hardcoded hf version
4 years ago
Alexander Blair
44cd8a13ec
Merge pull request #6769
...
b641e0a2c
Add clear method to byte_stream (Lee Clagett)
4 years ago
moneromooo-monero
d20ff4f648
functional_tests: add a large (many randomx epochs) p2p reorg test
4 years ago
moneromooo-monero
6a0b3b1f8a
functional_tests: add randomx tests
4 years ago
moneromooo-monero
9d42649d58
core: fix mining from a block that's not the current top
4 years ago
Sarang Noether
aff87b5f6a
Added balance check to MLSAG/CLSAG performance tests
4 years ago
Sarang Noether
f964a92c57
Updated MLSAG and CLSAG tests for consistency
4 years ago
Sarang Noether
5aa1575e91
CLSAG verification performance test
4 years ago
Sarang Noether
641b08c920
CLSAG optimizations
4 years ago
moneromooo-monero
82ee01699c
Integrate CLSAGs into monero
...
They are allowed from v12, and MLSAGs are rejected from v13.
4 years ago
moneromooo-monero
8cd1d6df8f
unit_tests: add ge_triple_scalarmult_base_vartime test
4 years ago
Sarang Noether
4b328c6616
CLSAG signatures
4 years ago
Alexander Blair
b04da25e4d
Merge pull request #6760
...
844fb4e94
enforce claiming maximum coinbase amount (moneromooo-monero)
4 years ago
Alexander Blair
bad5d8d6f0
Merge pull request #6690
...
7175dcb10
replace most boost serialization with existing monero serialization (moneromooo-monero)
4 years ago
Alexander Blair
3f392341e7
Merge pull request #6660
...
839e1f4ba
functional_tests: add p2p functional tests (moneromooo-monero)
4 years ago
moneromooo-monero
839e1f4bab
functional_tests: add p2p functional tests
...
Tests tx/block propagation and reorgs
4 years ago
moneromooo-monero
844fb4e940
enforce claiming maximum coinbase amount
...
Claiming a slightly lesser amount does not yield the size gains
that were seen pre rct, so this closes a fingerprinting vector
4 years ago