mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: Move HistoryWriter trait to storage-api and reexport it from old provider crate (#12480)
This commit is contained in:
committed by
GitHub
parent
4a8eb7a0c0
commit
fa5daef07d
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -9120,6 +9120,7 @@ dependencies = [
|
||||
"alloy-primitives",
|
||||
"auto_impl",
|
||||
"reth-chainspec",
|
||||
"reth-db",
|
||||
"reth-db-api",
|
||||
"reth-db-models",
|
||||
"reth-execution-types",
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -53,3 +53,6 @@ mod database_provider;
|
||||
pub use database_provider::*;
|
||||
|
||||
pub mod noop;
|
||||
|
||||
mod history;
|
||||
pub use history::*;
|
||||
|
||||
Reference in New Issue
Block a user