Skip to content

Create database table for blob data sidecar quarantine #7108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 22 commits into
base: unstable
Choose a base branch
from

Conversation

etan-status
Copy link
Contributor

@etan-status etan-status commented Apr 25, 2025

Add low-level interface to persist blob data sidecars by block root + index. Also support deleting junk that's been finalized and deletion of all data associated with a block root.

Can pass db.getQuarantineDB() into the quarantine to expose the new DB tables while hiding APIs that deal with trusted data, and then use the new beacon_chain_db_quarantine.nim APIs to store / fetch / delete.

Copy link

github-actions bot commented Apr 25, 2025

Unit Test Results

       15 files  ±       0    2 635 suites  +5   1h 18m 28s ⏱️ - 6m 48s
  6 533 tests +   158    6 009 ✔️ +136  524 💤 +22  0 ±0 
45 346 runs  +1 030  44 598 ✔️ +960  748 💤 +70  0 ±0 

Results for commit d581663. ± Comparison against base commit 7965d40.

♻️ This comment has been updated with latest results.

@etan-status etan-status changed the title Create database tables for block / blob data sidecar quarantine Create database tables for blob data sidecar quarantine May 2, 2025
@etan-status etan-status changed the title Create database tables for blob data sidecar quarantine Create database table for blob data sidecar quarantine May 2, 2025
@etan-status
Copy link
Contributor Author

The quarantine DB works as is for blobs (and also for blocks in earlier commit), but it seems that a custom solution based on SQLite implicit rowid is preferred over explicit rowid through primary key.

@etan-status etan-status closed this May 3, 2025
@etan-status etan-status deleted the dev/etan/df-bq branch May 3, 2025 18:01
@cheatfate cheatfate restored the dev/etan/df-bq branch May 6, 2025 09:39
@cheatfate cheatfate reopened this May 6, 2025
Add low-level interface to persist blocks by block root and sidecars
by block root + index. Also support deleting junk that's been finalized
and deletion of all data associated with a block root.

Can pass `db.getQuarantineDB()` into the quarantine to expose the new DB
tables while hiding APIs that deal with trusted data, and then use the
new `beacon_chain_db_quarantine.nim` APIs to store / fetch / delete.
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.

2 participants