Skip to content

Commit

Permalink
chore: move sync to p2p crate (#8389)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored May 24, 2024
1 parent 91f288d commit 4ee75d5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
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.

0 comments on commit 4ee75d5

Please sign in to comment.