Skip to content

CIP-0034: Set Pruning Window to 7 Days + 1 Hour

FinalStandards Trackby Callum Waters (@cmwaters), Nashqueue (@Nashqueue)Created 17-03-2025
TL;DR

This Celestia Improvement Proposal aims to reduce the minimum data pruning window for DA bridge nodes to 7 days + 1 hour, which complements the 7-day sampling window proposed in CIP-036. By decreasing the pruning window from 30 days to 7 days + 1 hour, this proposal reduces the storage requirements for node operators from 30 TB to 7 TB, making it less costly to serve data to the network. This change is intended to maintain data availability for light clients while reducing storage costs for node operators.

cip34
titleSet Pruning Window to 7 Days + 1 Hour
descriptionSets the minimum data pruning window for DA bridge nodes to 7 days + 1 hour
authorCallum Waters (@cmwaters), Nashqueue (@Nashqueue)
discussions-tohttps://forum.celestia.org/t/cip-lower-data-pruning-window-to-7-days-1-hour/1965
statusFinal
typeStandards Track
categoryData Availability
created2025-03-17
requiresCIP-0036
supercedesCIP-4

Abstract

This CIP proposes to set the minimum MinimumPruningWindow for Celestia nodes to 7 days + 1 hour (169 hours). This change is intended to complement CIP-0036, which is expected to define a 7-day SamplingWindow. A pruning window of 7 days + 1 hour ensures that nodes can serve data for the entire sampling period. This adjustment aims to reduce storage requirements for node operators while maintaining data availability for light clients.

Parameters

ParameterCurrent valueProposed valueDescription
MinimumPruningWindow721 hours169 hoursThe minimum retention period of block data for serving the network (nodes can set higher values)

Rationale

The next pending increase in throughput (32 MB blocks every 6 seconds) would require bridge nodes to store up to 1 TB per day. The current pruning window (30 days) implies that pruned bridge nodes need to have 30 TB of storage. This CIP reduces the pruning window to 7 days + 1 hour to reduce the storage requirement to 7 TB which makes it less costly to serve data to the network.

This CIP focuses solely on the MinimumPruningWindow. The rationale and specification for the 7-day SamplingWindow itself are detailed in CIP-0036.

Backwards Compatibility

This CIP's proposed change to the MinimumPruningWindow should be implemented after the changes specified in CIP-0036 (which defines the 7-day SamplingWindow) are adopted by the network. Nodes must first support the new SamplingWindow before the MinimumPruningWindow is reduced to 7 days + 1 hour to ensure light nodes don't sample correctly pruned data.

Copyright and related rights waived via CC0.