feat(prune): headers segment triggered by snapshots (#4936)

This commit is contained in:
Alexey Shekhirin
2023-10-09 15:25:48 +01:00
committed by GitHub
parent 670d459147
commit 9ca0cdcf1e
7 changed files with 307 additions and 40 deletions

View File

@ -10,14 +10,16 @@ pub enum PruneSegment {
SenderRecovery,
/// Prune segment responsible for the `TxHashNumber` table.
TransactionLookup,
/// Prune segment responsible for all `Receipts`.
/// Prune segment responsible for all rows in `Receipts` table.
Receipts,
/// Prune segment responsible for some `Receipts` filtered by logs.
/// Prune segment responsible for some rows in `Receipts` table filtered by logs.
ContractLogs,
/// Prune segment responsible for the `AccountChangeSet` and `AccountHistory` tables.
AccountHistory,
/// Prune segment responsible for the `StorageChangeSet` and `StorageHistory` tables.
StorageHistory,
/// Prune segment responsible for the `CanonicalHeaders`, `Headers` and `HeaderTD` tables.
Headers,
}
/// PruneSegment error type.