chore: Move HistoryWriter trait to storage-api and reexport it from old provider crate (#12480)

This commit is contained in:
Panagiotis Ganelis
2024-11-12 19:35:51 +01:00
committed by GitHub
parent 4a8eb7a0c0
commit fa5daef07d
6 changed files with 8 additions and 3 deletions

1
Cargo.lock generated
View File

@ -9120,6 +9120,7 @@ dependencies = [
"alloy-primitives",
"auto_impl",
"reth-chainspec",
"reth-db",
"reth-db-api",
"reth-db-models",
"reth-execution-types",

View File

@ -46,6 +46,9 @@ pub use reth_chain_state::{
CanonStateNotifications, CanonStateSubscriptions,
};
// reexport HistoryWriter trait
pub use reth_storage_api::HistoryWriter;
pub(crate) fn to_range<R: std::ops::RangeBounds<u64>>(bounds: R) -> std::ops::Range<u64> {
let start = match bounds.start_bound() {
std::ops::Bound::Included(&v) => v,

View File

@ -26,9 +26,6 @@ pub use hashing::HashingWriter;
mod trie;
pub use trie::{StorageTrieWriter, TrieWriter};
mod history;
pub use history::HistoryWriter;
mod static_file_provider;
pub use static_file_provider::StaticFileProviderFactory;

View File

@ -22,6 +22,7 @@ reth-prune-types.workspace = true
reth-stages-types.workspace = true
reth-storage-errors.workspace = true
reth-trie.workspace = true
reth-db.workspace = true
# ethereum
alloy-eips.workspace = true

View File

@ -53,3 +53,6 @@ mod database_provider;
pub use database_provider::*;
pub mod noop;
mod history;
pub use history::*;