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

Merged
merged 23 commits into from
Jun 18, 2025
Merged

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 645 suites  +5   1h 22m 9s ⏱️ + 2m 34s
  6 542 tests +  4    6 018 ✔️ +  4  524 💤 ±0  0 ±0 
45 386 runs  +30  44 638 ✔️ +30  748 💤 ±0  0 ±0 

Results for commit 3d7c3af. ± Comparison against base commit a8f02a3.

♻️ 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
etan-status and others added 14 commits June 12, 2025 12:52

Verified

This commit was signed with the committer’s verified signature.
joboet Jonas Böttiger
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.

Verified

This commit was signed with the committer’s verified signature.
joboet Jonas Böttiger

Verified

This commit was signed with the committer’s verified signature.
joboet Jonas Böttiger

Verified

This commit was signed with the committer’s verified signature.
joboet Jonas Böttiger
Fix stack usage compilation warnings using `closureScope`.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add tests.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@tersec tersec merged commit fffc01e into unstable Jun 18, 2025
12 checks passed
@tersec tersec deleted the dev/etan/df-bq branch June 18, 2025 15:07
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.

None yet

3 participants