Skip to content

fix: implement pruning and validation for COL_BLOB_STATUS#30

Open
EFCCWEB3 wants to merge 1 commit into0gfoundation:mainfrom
EFCCWEB3:fix/blob-status-pruning
Open

fix: implement pruning and validation for COL_BLOB_STATUS#30
EFCCWEB3 wants to merge 1 commit into0gfoundation:mainfrom
EFCCWEB3:fix/blob-status-pruning

Conversation

@EFCCWEB3
Copy link

@EFCCWEB3 EFCCWEB3 commented Mar 5, 2026

Description

This PR addresses Issue #29 regarding the unbounded growth of the COL_BLOB_STATUS column family.

Changes

  • Storage Layer: Added a prune() method to the BlobStatusDB trait and implemented it in Storage.
  • Pruning Logic: Updated storage/src/slice_db.rs to ensure that when an epoch is pruned, all corresponding statuses in COL_BLOB_STATUS are also deleted.
  • DA Handler: Added epoch validation in check_data_upload and check_data_verified to prevent the node from processing and storing logs from epochs outside the retention window.
  • gRPC Service: Added a check in check_blob_status to reject incoming sign requests for expired epochs.

Closes #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unbounded Growth in COL_BLOB_STATUS Due to Missing Pruning Logic

2 participants