Commit Graph

66 Commits

Author SHA1 Message Date
Andrzej Sulkowski
cc4a418ddf refactor: extract peer types to net/types (#7912)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-04-27 04:18:59 +00:00
Matthias Seitz
4b84b99351 feat: add PeersInfo::local_enr (#7539) 2024-04-10 14:38:57 +00:00
Matthias Seitz
b89af430e2 feat: extract optimism sequencer client to node-optimism (#7482) 2024-04-05 21:35:02 +00:00
Abner Zheng
89b188e9ae fix bug: synchronized local node record with discv4 (#7181) 2024-03-18 22:13:44 +00:00
Matthias Seitz
11dc546d10 feat: support trusted peer ids without address (#7155) 2024-03-16 15:06:53 +00:00
Qiwei Yang
a27626cc22 feat: NetworkHandle get access to TransactionsHandle (#6780) 2024-02-27 10:31:54 +00:00
Abner Zheng
34402caeee Replace #[async_trait] with ->imp for traits in eth_wire (#6756) 2024-02-23 16:45:25 +00:00
Braqzen
805e18b33c Minor documentation updates to announce_block docs (#6630) 2024-02-16 20:28:05 +00:00
Luca Provini
3faf9d87a3 feat: NetworkManager hibernate command, NetworkHandle hibernate funct… (#6186)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-01-29 17:15:48 +00:00
Thomas Coratger
92f33b071c add missing documentation for various crates (#5950) 2024-01-05 13:10:37 +00:00
Matthias Seitz
a8e2518aa0 feat: add SecretKey to networkconfig (#5761) 2023-12-14 17:25:05 +00:00
Matthias Seitz
5a04931397 feat: add NetworkProtocols trait (#5543) 2023-11-23 14:51:40 +00:00
Matthias Seitz
0e2346597b feat: add for peers functions (#5351) 2023-11-08 14:46:07 +00:00
Panagiotis Ganelis
80be039c77 feat: add trait forNetworkEvents (#5354)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-11-08 13:24:03 +00:00
clabby
52670a8b24 feat: op-reth (#4377)
Co-authored-by: Roberto Bayardo <bayardo@alum.mit.edu>
Co-authored-by: refcell.eth <abigger87@gmail.com>
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
Co-authored-by: refcell <refcell@oplabs.co>
Co-authored-by: nicolas <48695862+merklefruit@users.noreply.github.com>
2023-11-05 17:33:42 +00:00
DaniPopes
5f9a917fb1 feat: Alloy migration (#4737)
Co-authored-by: Alessandro Mazza <121622391+alessandromazza98@users.noreply.github.com>
Co-authored-by: Supernovahs.eth <91280922+supernovahs@users.noreply.github.com>
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
2023-09-28 15:55:39 +00:00
DaniPopes
8f9d2908ca chore: add and fix more lints, improve docs (#4765) 2023-09-25 15:46:46 +00:00
niko-renko
e2270cd71c Update network.rs -- typo fix (#4545)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-09-12 17:09:46 +00:00
Matthias Seitz
a76da98316 feat: support admin_peers (#4435) 2023-08-31 20:36:50 +00:00
Matthias Seitz
849a47efb8 fix: prevent node info zero address (#4268) 2023-08-18 15:07:30 +00:00
prames
fd7e28e786 feat(txpool) modify txpool guard to be for pipeline syncs only (#4075)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-08-09 18:40:38 +00:00
Supernovahs.eth
6d1e8a2ecc feat:new discovered node record event stream (#3707)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-07-17 09:42:28 +00:00
Dan Cline
a40b79e193 fix: set sync state at startup to idle (#2722) 2023-05-17 22:32:56 +02:00
Roman Krasiuk
9b79218c18 fix(p2p): network sync state (#2699) 2023-05-16 22:24:40 +02:00
Matthias Seitz
c132c6681a fix(net): syncing should be true at startup (#2395) 2023-04-25 17:09:37 +02:00
mempirate
21ebfee461 feat(p2p): add reputation management features (#2389) 2023-04-25 14:18:53 +02:00
Aditya Pandey
6f15f844a5 Removing reth network api dependency from rpc types (#2281)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2023-04-17 14:03:06 +02:00
Matthias Seitz
47b9738ede chore: fix some typos (#2025) 2023-03-29 14:49:50 +02:00
Matthias Seitz
2a457c7023 feat(rpc): add eth_syncing implementation (#1859) 2023-03-20 04:22:17 -07:00
Matthias Seitz
f78da81e1e feat(net): support eth68 transactions (#1482) 2023-02-21 14:34:59 -05:00
Kim, JinSan
c9075920c1 feat(net): support eth/68 (#1361)
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-02-20 19:37:03 -08:00
Bjerg
02a6aec3fb feat: support time-based forking (#1128) 2023-02-06 12:55:41 -08:00
Mariano A. Nicolini
dab1f4f497 feat(net): add shutdown network signal (#1011)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-02-04 12:28:13 -08:00
Matthias Seitz
5c32ad01c9 refactor: add Peers trait und decouple rpc from NetworkHandle (#1100) 2023-01-31 10:32:45 -08:00
Bjerg
87306f2892 ci: ensure docs build (#1073)
Co-authored-by: xqft <estefano.bargas@fing.edu.uy>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
2023-01-27 18:49:22 +01:00
Aurélien
0666e29427 feat: move ReputationChangeKind to network-api (#1035) 2023-01-25 13:17:26 +01:00
Aurélien
e493720f64 feat: integrate chain_id and protocol_version in NetworkInfo (#1029) 2023-01-25 13:08:40 +01:00
Aurélien
1c93b2c528 feat: refactoring get_status() to return NetworkStatus (#997) 2023-01-24 14:38:21 +01:00
Aurélien
6f047a5de0 feat: add Web3 namespace RPC handler (#990) 2023-01-23 22:53:15 +01:00
Ikechukwu Ahiara Marvellous
a331b54bb0 Create Network variant in reth_interfaces::Error (#950) 2023-01-22 20:59:50 +01:00
Enrique Ortiz
cfef666886 Network: Extend NetworkInfo trait with NetworkStatus (#923) 2023-01-19 14:43:51 -05:00
Enrique Ortiz
0603f07c6c feat(net): add way to get the NodeRecord of the local node (#875)
Co-authored-by: Enrique Ortiz <evalir@users.noreply.github.com>
2023-01-13 15:57:29 +01:00
Matthias Seitz
3f9e7a080a feat(net): introduce PeersInfo trait (#860) 2023-01-13 12:04:39 +01:00
Matthias Seitz
ba3048ceb0 refactor: add network-api crate (#838) 2023-01-12 19:39:44 -08:00
Dimitris Apostolou
31cb66902e fix: Fix typos (#773) 2023-01-09 01:43:51 +01:00
Andrew Kirillov
2da828478c feat(net): Bandwidth monitoring (#707)
* WIP for draft PR

* added basic test

* using BandwidthMeterInner type & added TcpStream test

* formatted

* formatted w/ +nightly

* using  &  for  and

* formatted

* added default impl for BandwidthMeter

* using _bandwidth_meter bc unused

* removed redundant clone

* addressed nits, renamed file

* addressed nits, renamed file
2023-01-06 21:43:13 +01:00
Aurélien
65bc3cb7b8 RPC Admin namespace implementation (#685)
* AdminApi first draft

* Implement add_trusted_peer and remove_trusted_peer

* Fix tests

* Refactoring NetworkHandle peer related methods

* Refactoring add_discovered_node in PeersManager

* Change record type from String to NodeRecord

* Adding NetworkHandleMessage::RemovePeer command
2023-01-03 14:02:05 +01:00
Matthias Seitz
debf21d34e feat: add SyncState traits (#693)
* feat: add SyncState traits

* docs: clarify execution stage
2023-01-03 14:56:50 +02:00
Ayush
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
Andrew Kirillov
d4d8a8c882 Moves code walkthrough book chapters to docs (#629)
* replaced template blocks with code blocks in stages chapter

* replaced template blocks with code blocks in network chapter

* moved book sections to docs

* fix indentation in recover_signer codeblock

* remove unnecessary TODO comment in network.md
2022-12-28 10:24:39 +01:00