dhruv and Pieter Wuille
05d19fbcc1
test: Functional test for opportunistic encryption
...
Co-authored-by: Pieter Wuille <bitcoin-dev@wuille.net >
2023-10-02 18:11:11 -04:00
dhruv and Pieter Wuille
c73cd42363
rpc: addnode arg to use BIP324 v2 p2p
...
Co-authored-by: Pieter Wuille <bitcoin-dev@wuille.net >
2023-10-02 18:10:30 -04:00
dhruv and Pieter Wuille
42d759f239
Bench tests for CKey->EllSwift
...
Co-Authored-By: Pieter Wuille <bitcoin-dev@wuille.net >
2023-06-23 14:24:28 -04:00
dhruv and Pieter Wuille
2e5a8a437c
Fuzz test for Ellswift ECDH
...
Co-authored-by: Pieter Wuille <bitcoin-dev@wuille.net >
2023-06-23 14:22:39 -04:00
dhruv and Pieter Wuille
c3ac9f5cf4
Fuzz test for CKey->EllSwift->CPubKey creation/decoding
...
Co-authored-by: Pieter Wuille <bitcoin-dev@wuille.net >
2023-06-23 14:22:39 -04:00
dhruv and Pieter Wuille
aae432a764
Unit test for ellswift creation/decoding roundtrip
...
Co-authored-by: Pieter Wuille <bitcoin-dev@wuille.net >
2023-06-23 14:22:39 -04:00
dhruv
42239f8390
Enable ellswift module in libsecp256k1
2023-06-23 14:15:49 -04:00
Dhruv Mehta
2555a3950f
p2p: ProcessAddrFetch(-seednode) is unnecessary if -connect is specified
2022-10-18 09:51:36 -07:00
d960d4fd3a
build: fix MSVC build after subtree update
...
Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com >
Co-authored-by: Aaron Clauson <aaron@sipsorcery.com >
2022-04-07 22:24:43 +01:00
Dhruv Mehta
a806647d26
[validation] Always include merkle root in coinbase commitment
2021-07-07 22:13:01 -07:00
Dhruv Mehta
189128c220
[validation] Set witness script flag with p2sh for blocks
2021-07-07 22:13:01 -07:00
Dhruv Mehta
ac82b99db7
[p2p] remove redundant NODE_WITNESS checks
...
nLocalServices defaults to NODE_WITNESS and these checks are obsolete
2021-07-07 22:13:01 -07:00
Dhruv Mehta
6f8b198b82
[p2p] remove unused segwitheight=-1 option
...
This also lets us default to NODE_WITNESS in nLocalServices
2021-07-07 22:13:01 -07:00
Dhruv Mehta
eba5b1cd64
[test] remove or move tests using -segwitheight=-1
2021-07-07 22:12:04 -07:00
Dhruv Mehta
cd37356ff9
[crypto] Fix K1/K2 use in ChaCha20-Poly1305 AEAD
...
BIP324 mentions K1 is used for the associated data and K2 is used for
the payload. The code does the opposite. This is not a security problem
but will be a problem across implementations based on the HKDF key
derivations.
2021-06-23 09:46:38 -07:00
Dhruv Mehta
e337145577
[fuzz] Occasional valid magic bytes for transport serialization test
...
Before commit:
Unable to deserialize : 0%
Wrong message start : ~45.62%
Header too large : ~14.5%
Wrong checksum : ~38.13%
Invalid message type : ~1.78%
304820 NEW cov: 1440 ft: 4452 corp: 92/12551b lim: 2237 exec/s: 3386 rss: 486Mb L: 47/1111 MS: 1 ChangeByte-
1416181 REDUCE cov: 1442 ft: 5681 corp: 125/59Kb lim: 4096 exec/s: 3522 rss: 535Mb L: 2164/4049 MS: 1 EraseBytes-
After commit:
Unable to deserialize : 0%
Wrong message start : ~39.6%
Header too large : ~30.85%
Wrong checksum : ~25.54%
Invalid message type : ~4.01%
302684 NEW cov: 1454 ft: 3936 corp: 84/7056b lim: 2424 exec/s: 4146 rss: 477Mb L: 65/1108 MS: 3 CopyPart-CrossOver-CMP- DE: "\x0e\x00\x00\x00"-
1383925 REDUCE cov: 1454 ft: 4828 corp: 102/14573b lim: 4096 exec/s: 3954 rss: 534Mb L: 116/4050 MS: 2 EraseBytes-ChangeByte-
2021-05-25 08:20:43 -07:00
Dhruv Mehta
35571d8d9e
[fuzz] Occasional valid checksum for transport serialization fuzz test
...
Before commit:
Unable to deserialize: 0%
Wrong message start : ~1.27%
Header too large : ~0.5%
Wrong checksum : ~67.99%
Invalid message type : ~30.1%
303389 NEW cov: 1202 ft: 8382 corp: 157/382Kb lim: 68189 exec/s: 1451 rss: 447Mb L: 1386/65459 MS: 1 CopyPart-
1428759 REDUCE cov: 1202 ft: 8512 corp: 169/389Kb lim: 78749 exec/s: 1528 rss: 463Mb L: 1627/60488 MS: 1 EraseBytes-
After commit(new seeds; old seeds invalidated):
Unable to deserialize: 0%
Wrong message start : ~45.62%
Header too large : ~14.5%
Wrong checksum : ~38.13%
Invalid message type : ~1.78%
304820 NEW cov: 1440 ft: 4452 corp: 92/12551b lim: 2237 exec/s: 3386 rss: 486Mb L: 47/1111 MS: 1 ChangeByte-
1416181 REDUCE cov: 1442 ft: 5681 corp: 125/59Kb lim: 4096 exec/s: 3522 rss: 535Mb L: 2164/4049 MS: 1 EraseBytes-
2021-05-25 08:09:14 -07:00
Dhruv Mehta
654472a461
[fuzz] Add serialization to deserialization test
...
Before commit:
306853 REDUCE cov: 798 ft: 5820 corp: 150/375Kb lim: 68333 exec/s: 1382 rss: 461Mb L: 254/63171 MS: 1 EraseBytes-
1453105 REDUCE cov: 798 ft: 5820 corp: 150/369Kb lim: 79613 exec/s: 1467 rss: 461Mb L: 6027/60873 MS: 1 EraseBytes-
After commit:
303389 NEW cov: 1202 ft: 8382 corp: 157/382Kb lim: 68189 exec/s: 1451 rss: 447Mb L: 1386/65459 MS: 1 CopyPart-
1428759 REDUCE cov: 1202 ft: 8512 corp: 169/389Kb lim: 78749 exec/s: 1528 rss: 463Mb L: 1627/60488 MS: 1 EraseBytes-
2021-05-25 08:08:34 -07:00
Dhruv Mehta
d831e711ca
[validation] RewindBlockIndex no longer needed
...
Instead of rewinding blocks, we request that the user restarts with
-reindex
2021-04-21 16:09:14 -07:00
Dhruv Mehta
d4187e4619
[test] Use mocktime in test_seed_peers()
...
Test case now takes < 5 seconds instead of > 2 minutes
2021-02-12 09:35:18 -08:00
Dhruv Mehta
015637dd44
[refactor] Correct log message in net.cpp
2021-02-12 09:23:03 -08:00
Dhruv Mehta
fe3e993968
[p2p] No delay in adding fixed seeds if -dnsseed=0 and peers.dat is empty. Add -fixedseeds arg.
2021-02-11 16:10:40 -08:00
Dhruv Mehta
4045a6722c
ci: Use cpu=1 for linter
2020-12-16 17:34:25 -08:00
Dhruv Mehta
739d39022d
ci: Move linter task to cirrus
2020-12-15 10:13:55 -08:00
Dhruv Mehta
ed5cd12869
test: Distinguish between nodes(bitcoind) and peers(mininodes) in p2p_leak.py
...
Also, remove "C" prefix from class names to match new style
2020-08-18 13:13:19 -07:00
Dhruv Mehta
f6f082b934
test: remove CNodeNoVersionIdle from p2p_leak.py
2020-08-18 13:06:15 -07:00
Dhruv Mehta
45cf55ccac
test: remove CNodeNoVersionMisbehavior from p2p_leak.py
...
It's also clearer to have `no_version_disconnect_node` send a message
other than version or verack in order to reach the peer discouragement
threshold.
2020-08-18 13:06:09 -07:00