Skip to content

Commit

Permalink
Improve SlotColumn's code comment. (solana-labs#28447)
Browse files Browse the repository at this point in the history
Improve SlotColumn's code comment to include how
LedgerCleanupService manages the clean-up of a SlotColumn.
  • Loading branch information
yhchiang-sol authored Oct 19, 2022
1 parent ca11559 commit 9be7ada
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ledger/src/blockstore_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,11 @@ pub trait ProtobufColumn: Column {

/// SlotColumn is a trait for slot-based column families. Its index is
/// essentially Slot (or more generally speaking, has a 1:1 mapping to Slot).
///
/// The clean-up of any LedgerColumn that implements SlotColumn is managed by
/// [`LedgerCleanupService`], which will periodically deprecate and purge
/// oldest entries that are older than the latest root in order to maintain the
/// configured --limit-ledger-size under the validator argument.
pub trait SlotColumn<Index = u64> {}

impl<T: SlotColumn> Column for T {
Expand Down

0 comments on commit 9be7ada

Please sign in to comment.