Skip to content
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
2 changes: 0 additions & 2 deletions crates/prune/prune/src/segments/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
mod receipts;
mod set;
mod static_file;
mod user;

use crate::{PruneLimiter, PrunerError};
use alloy_primitives::{BlockNumber, TxNumber};
use reth_provider::{errors::provider::ProviderResult, BlockReader, PruneCheckpointWriter};
use reth_prune_types::{PruneCheckpoint, PruneMode, PrunePurpose, PruneSegment, SegmentOutput};
pub use set::SegmentSet;
pub use static_file::Receipts as StaticFileReceipts;
use std::{fmt::Debug, ops::RangeInclusive};
use tracing::error;
pub use user::{
Expand Down
4 changes: 1 addition & 3 deletions crates/prune/prune/src/segments/receipts.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
//! Common receipts pruning logic shared between user and static file pruning segments.
//! Common receipts pruning logic.
//!
//! - [`crate::segments::user::Receipts`] is responsible for pruning receipts according to the
//! user-configured settings (for example, on a full node or with a custom prune config)
//! - [`crate::segments::static_file::Receipts`] is responsible for pruning receipts on an archive
//! node after static file producer has finished

use crate::{db_ext::DbTxPruneExt, segments::PruneInput, PrunerError};
use reth_db_api::{table::Value, tables, transaction::DbTxMut};
Expand Down
6 changes: 1 addition & 5 deletions crates/prune/prune/src/segments/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ use reth_provider::{
};
use reth_prune_types::PruneModes;

use super::StaticFileReceipts;

/// Collection of [`Segment`]. Thread-safe, allocated on the heap.
#[derive(Debug)]
pub struct SegmentSet<Provider> {
Expand Down Expand Up @@ -58,7 +56,7 @@ where
/// Creates a [`SegmentSet`] from an existing components, such as [`StaticFileProvider`] and
/// [`PruneModes`].
pub fn from_components(
static_file_provider: StaticFileProvider<Provider::Primitives>,
_static_file_provider: StaticFileProvider<Provider::Primitives>,
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kept it for #19241

prune_modes: PruneModes,
) -> Self {
#[expect(deprecated)]
Expand All @@ -74,8 +72,6 @@ where
} = prune_modes;

Self::default()
// Static file receipts
.segment(StaticFileReceipts::new(static_file_provider))
// Merkle changesets
.segment(MerkleChangeSets::new(merkle_changesets))
// Account history
Expand Down
3 changes: 0 additions & 3 deletions crates/prune/prune/src/segments/static_file/mod.rs

This file was deleted.

58 changes: 0 additions & 58 deletions crates/prune/prune/src/segments/static_file/receipts.rs

This file was deleted.

Loading