Commit Graph

13 Commits

Author SHA1 Message Date
41d51a109c chore: rm reth_primitives from reth_net_p2p (#14258) 2025-02-06 09:21:09 +00:00
83b2fb9b41 feat: add SealedBlock in reth-primitives-traits (#13735) 2025-01-15 01:12:43 +00:00
001f3899fd primitives: rm alloy Header reexport (#12515) 2024-11-13 16:41:25 +00:00
aece53ae88 feat: make downloaders and clients generic over block parts (#12469)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-11-12 15:13:21 +00:00
170a396903 chore: invert p2p and network types dep (#10390) 2024-08-20 07:47:33 +00:00
f3e79df300 chore(net): move reth_network::BlockDownloaderProvider to reth-network-api (#10003) 2024-08-03 13:42:44 +00:00
e95ec4cbd5 chore(net): Remove dependency reth-network-p2p -> reth-network-types (#9984) 2024-08-01 13:10:10 +00:00
7c17c6e469 add doc_markdown clippy lint (#8552)
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2024-06-03 13:21:45 +00:00
4ee75d57ad chore: move sync to p2p crate (#8389) 2024-05-24 12:14:23 +00:00
df7c9ee310 chore: extract p2p types from interfaces (#8382) 2024-05-24 08:34:09 +00:00
705e6f79dc feat(p2p): remove p2p crate (#397) 2022-12-13 08:28:38 +01:00
230e9ef179 feat(p2p): add anchor file for discovery state (#11)
* feat(p2p): add anchor file for discovery state

* move rustdoc and improve error messages

Co-authored-by: Bjerg <onbjerg@users.noreply.github.com>

* add temp file tests and log drop error

 * fix error due to lack of read option
 * fix empty and nonexistent file error

* remove redundant new

* replace println with tracing

* show underlying error in custom error message

* chore: cargo fmt

* change AsRef<Path> to &Path

* remove ineffective dedups

* chore: cargo fmt

* switch out Vec<Enr<K>> for HashSet<Enr<K>>

* cargo fmt

* use tempdir instead of of std::env::temp_dir

* refactor anchor to contain &Path instead of File

 * change new_from_file to explicitly include logic for opening existing
   files, rather than calling out to from_toml
 * remove from_toml because new_from_file handles existing files
   properly with only a path. It is not possible to obtain a Path from a
   File anyways, its only purpose was to accept a File type

* use PathBuf instead of Path

Co-authored-by: Bjerg <onbjerg@users.noreply.github.com>
2022-10-10 13:02:54 -04:00
6ff7cf5a74 feat: add p2p crate (#4)
* feat: add p2p crate

* move p2p to net subfolder

* add lib.rs and Cargo.toml to net

* remove net crate, use explicit names in workspace
2022-09-30 09:27:52 -07:00