-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Pruner: Decouple interface and implementation #18926
Copy link
Copy link
Closed
Labels
A-pruningRelated to pruning or full nodeRelated to pruning or full nodeC-enhancementNew feature or requestNew feature or request
Description
Describe the feature
The goal of this issue is to add a trait like:
trait Prune {
fn prune<P>(provider: P, input: PruneInput): Result<PruneOutput, PrunerError>;
}and the existing database implementation to refactor as an implementation of Prune for Mdbx. We need to isolate these implementations under db-v2 feature flag.
In the end we should end up with a module mdbx that is a feature gated parent for all these implementations.
Update all the usages.
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-pruningRelated to pruning or full nodeRelated to pruning or full nodeC-enhancementNew feature or requestNew feature or request
Type
Projects
Status
Completed