Commit Graph

69 Commits

Author SHA1 Message Date
530e7e8961 refactor(net): move node record constants to network-peers crate (#9161) 2024-06-28 09:45:23 +02:00
b9b61b377a chore: rename net-common to banlist (#9016) 2024-06-21 14:05:38 +00:00
2a5c93fab3 chore: use reth_chainspec where possible (#8891) 2024-06-17 16:09:09 +00:00
e02b935e94 add match_same_arms clippy lint (#8549) 2024-06-03 17:42:25 +00:00
de4e0ba041 chore: rm reth-interfaces from network (#8435) 2024-05-28 16:11:08 +00:00
8e65cb3aa5 Bump evm-inspectors and alloy (#8006) 2024-04-30 21:07:41 +00:00
9d2fdd5e3f chore: remove ethers deps (#7508) 2024-04-08 13:07:45 +00:00
d86d4d2380 fix: enforce max inbound == 0 (#7229) 2024-03-19 16:57:28 +00:00
9312424db0 Always accept incoming connections from trusted peers (#7140) 2024-03-15 11:16:17 +00:00
6204ec7298 test: fix connect many race condition (#6653) 2024-02-18 15:21:27 +00:00
208eb6d6a1 Make transaction manager param configurable from cli (#6594)
Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
Co-authored-by: Bjerg <onbjerg@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-02-16 22:25:55 +00:00
bf3264b257 feat: use alloy genesis now (#6135)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-01-20 10:08:32 +00:00
a075c31542 feat: test tracer (#6025)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-01-13 12:38:08 +00:00
0e2346597b feat: add for peers functions (#5351) 2023-11-08 14:46:07 +00:00
80be039c77 feat: add trait forNetworkEvents (#5354)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-11-08 13:24:03 +00:00
a60dbfdd56 test: remove flaky test (#5034) 2023-10-15 23:44:37 +02:00
d58e4a46f8 test: TransactionGenerator and p2p testing support (#5023) 2023-10-14 21:13:36 +00:00
f7c3bbcc99 test: replace unused_tcp_udp with port 0 (#4805) 2023-09-26 18:57:16 +02:00
e255dd8d49 test: flaky geth test (#4800) 2023-09-26 15:48:59 +02:00
995986e7c0 chore: fix flaky test (#4729) 2023-09-22 18:59:58 +00:00
cc576bc869 test: enable geth tests again (#4544) 2023-09-11 11:17:51 +00:00
8bfc3d093e test: ignore another flaky geth test (#3757) 2023-07-13 13:56:41 +00:00
526f624e1c test: tmp ignore another flaky geth test (#3663) 2023-07-07 17:50:15 +00:00
7850cc0b8d test: disable flakey test (#3486) 2023-06-29 22:58:15 +00:00
0ec32255e9 test: set --authrpc.port to 0 for Geth instance (#3476) 2023-06-29 19:30:15 +00:00
b0df0262e3 test: run geth blacklist test also serial (#3469) 2023-06-29 16:09:13 +00:00
d4b9ab0d05 test: fix flaky shutdown test with race condition (#3043) 2023-06-06 15:34:30 -07:00
9b79218c18 fix(p2p): network sync state (#2699) 2023-05-16 22:24:40 +02:00
93d3bd9dcd feat(net): fix peer backoffs to not interfere with reputation (#2422) 2023-04-27 15:53:12 +02:00
154ece7665 fix: simplify SyncState and fix wrong update (#2256) 2023-04-15 01:31:09 +02:00
f60b380a1e test: allow testing without --all-features (#1882) 2023-03-21 15:19:37 +01:00
7ac06cd29f feat: use chain specific bootnodes (#1826) 2023-03-17 19:28:00 -04:00
7c9b212b4a chore: relax Arc requirement for provider (#1429) 2023-02-17 14:40:20 +01:00
6a2c61f4d9 test(net): add tracing to shutdown test (#1310) 2023-02-13 05:34:18 -08:00
3a13a399da test(net): speedup network tests (#1269) 2023-02-10 12:54:09 +01:00
92ff3f961d add a test on incoming connections disconnect (#1233) 2023-02-09 10:54:56 +01:00
dab1f4f497 feat(net): add shutdown network signal (#1011)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-02-04 12:28:13 -08:00
5c32ad01c9 refactor: add Peers trait und decouple rpc from NetworkHandle (#1100) 2023-01-31 10:32:45 -08:00
115e623ae6 Ability to (de)serialize NetworkConfigBuilder (#897) 2023-01-18 11:17:43 +01:00
55d1db0c1d feat(network): move test helpers to test-utils mod (#901) 2023-01-17 11:18:53 +01:00
18dbcd4e6a fix: use correct boolean conversion for direction (#870) 2023-01-13 15:50:39 +01:00
3f9e7a080a feat(net): introduce PeersInfo trait (#860) 2023-01-13 12:04:39 +01:00
ba3048ceb0 refactor: add network-api crate (#838) 2023-01-12 19:39:44 -08:00
20ee1bb1c9 refactor: move cli trace helpers to reth-tracing (#820) 2023-01-11 10:20:37 -08:00
5a58554596 test: add debug test for getting headers (#713) 2023-01-04 16:07:23 +01:00
5933014fba test(net): more txpool testing support for network (#711) 2023-01-04 14:36:51 +02:00
de6630a121 feat(network): get peer info (#603)
* Create struct PeerInfo

* Add GetPeerInfo command

* Minor changes

* Use oneshot::sender

* Add GetPeerInfoById

* Use async/await

* Add client_id to establish connection

* Add method calls

* Add test_get_peer

* Add test_get_peer_by_id

* fmt changes

* clippy changes

* chore: rustfmt

* smol touch ups

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2022-12-29 14:20:17 +01:00
565a0aa90b feat(engine): new payload execution (#631)
* feat(engine): new payload execution

* address PR comments

* rm unused dev deps

* add comment about lru

* remove par_iter
2022-12-29 02:36:56 -08:00
dcd3923d19 Add serde support for NodeRecord primitive type (#617)
* Add serde support to NodeRecord

* Move NodeRecord to primitives

along with NodeKey and Octets

* Reexport NodeRecord from discv4

* Move NodeKey and kad_key back to discv4::node

Also, move NodeRecord::key functionality to a helper function: discv4::node::record_key.
This avoids the discv5 dependency in the primitives crate.

* Fix NodeRecord (de)serializing

The default derive macros work with a dictionary like display.
Changed that to serde_with macros, that use Display and FromStr traits.

* Add some tests for NodeRecord (de)serializing

* Hide NodeKey struct

* Move Octets after NodeRecord

* Replace record_key with From trait

* Fix clippy error

unnecessary into()
2022-12-27 18:03:54 +01:00
73e12341c4 feat(net): Make PeerManager emit peerevents for admin rpc (#602)
* Make PeerManager emit peerevents for admin rpc

* Fix tests to include new peer events
2022-12-25 10:00:10 +01:00