cosmos-sdk/store/pruning
2024-01-17 13:52:12 +00:00
..
manager_test.go feat(store/v2): Implement the GetProof for multi store (#18736) 2024-01-17 13:52:12 +00:00
manager.go refactor(store/v2): updates from integration (#18633) 2023-12-06 19:55:27 +00:00
options.go feat(store v2): pruning manager (#18273) 2023-11-01 19:58:13 +00:00
README.md feat(store v2): pruning manager (#18273) 2023-11-01 19:58:13 +00:00

Pruning

Overview

Pruning is the mechanism for deleting old versions data from both state storage and commitment. The pruning operation is triggered periodically.

Pruning Options

Generally, there are three configurable parameters for pruning options:

  • pruning-keep-recent: the number of recent versions to keep.
  • pruning-interval: the interval between two pruning operations.
  • pruning-sync: the flag to sync/async the pruning operation.

Different options will be applied to the state storage and commitment. The pruning option have an effect on the snapshot operation, but it will not manage the conflict resolution in SDK, it is the responsibility of the dedicated backend.