Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move sync to p2p crate #8389

Merged
merged 1 commit into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions crates/interfaces/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ reth-primitives.workspace = true
reth-storage-errors.workspace = true

# misc
auto_impl.workspace = true
thiserror.workspace = true


[features]
test-utils = ["reth-consensus/test-utils", "reth-network-p2p/test-utils"]
clap = ["reth-storage-errors/clap"]
2 changes: 1 addition & 1 deletion crates/interfaces/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub use reth_network_p2p as p2p;
pub use reth_execution_errors::trie;

/// Syncing related traits.
pub mod sync;
pub use reth_network_p2p::sync;

/// BlockchainTree related traits.
pub mod blockchain_tree;
Expand Down
3 changes: 3 additions & 0 deletions crates/net/p2p/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ pub mod error;
/// Priority enum for BlockHeader and BlockBody requests
pub mod priority;

/// Syncing related traits.
pub mod sync;

/// Common test helpers for mocking out Consensus, Downloaders and Header Clients.
#[cfg(any(test, feature = "test-utils"))]
pub mod test_utils;
File renamed without changes.
Loading