From 1f2b68b8eaa73b5946715ce149807ecac97da67c Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 28 May 2024 19:56:03 +0200 Subject: [PATCH] chore: rm reth-interfaces from static file (#8441) --- Cargo.lock | 2 +- crates/static-file/Cargo.toml | 2 +- crates/static-file/src/static_file_producer.rs | 13 +++++-------- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 002e5e397..727d632b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8025,12 +8025,12 @@ dependencies = [ "parking_lot 0.12.3", "rayon", "reth-db", - "reth-interfaces", "reth-nippy-jar", "reth-primitives", "reth-provider", "reth-stages", "reth-storage-errors", + "reth-testing-utils", "reth-tokio-util", "tempfile", "tokio", diff --git a/crates/static-file/Cargo.toml b/crates/static-file/Cargo.toml index f73300841..290ffa4eb 100644 --- a/crates/static-file/Cargo.toml +++ b/crates/static-file/Cargo.toml @@ -30,9 +30,9 @@ rayon.workspace = true parking_lot = { workspace = true, features = ["send_guard", "arc_lock"] } [dev-dependencies] -reth-interfaces.workspace = true reth-db = { workspace = true, features = ["test-utils"] } reth-stages = { workspace = true, features = ["test-utils"] } +reth-testing-utils.workspace = true assert_matches.workspace = true tempfile.workspace = true diff --git a/crates/static-file/src/static_file_producer.rs b/crates/static-file/src/static_file_producer.rs index ef66a12ed..1f9cfd129 100644 --- a/crates/static-file/src/static_file_producer.rs +++ b/crates/static-file/src/static_file_producer.rs @@ -246,21 +246,18 @@ mod tests { }; use assert_matches::assert_matches; use reth_db::{database::Database, test_utils::TempDatabase, transaction::DbTx, DatabaseEnv}; - use reth_interfaces::{ - provider::ProviderError, - test_utils::{ - generators, - generators::{random_block_range, random_receipt}, - }, - }; use reth_primitives::{ static_file::HighestStaticFiles, PruneModes, StaticFileSegment, B256, U256, }; use reth_provider::{ providers::{StaticFileProvider, StaticFileWriter}, - ProviderFactory, StaticFileProviderFactory, + ProviderError, ProviderFactory, StaticFileProviderFactory, }; use reth_stages::test_utils::{StorageKind, TestStageDB}; + use reth_testing_utils::{ + generators, + generators::{random_block_range, random_receipt}, + }; use std::{ sync::{mpsc::channel, Arc}, time::Duration,