feat: add StorageWriter standalone type (#9507)

This commit is contained in:
joshieDo
2024-07-16 16:45:21 +02:00
committed by GitHub
parent bc31f5da58
commit 0a1f652b2f
12 changed files with 278 additions and 51 deletions

View File

@ -63,6 +63,11 @@ impl PruneModes {
}
}
/// Returns whether there is any kind of receipt pruning configuration.
pub fn has_receipts_pruning(&self) -> bool {
self.receipts.is_some() || !self.receipts_log_filter.is_empty()
}
/// Returns true if all prune modes are set to [`None`].
pub fn is_empty(&self) -> bool {
self == &Self::none()