sigp / lighthouse

Ethereum consensus client in Rust
https://lighthouse.sigmaprime.io/
Apache License 2.0
2.89k stars 736 forks source link

Selective Blob Archiving #5431

Open optix2000 opened 6 months ago

optix2000 commented 6 months ago

Description

We would like to see if an option can be added to selectively archive blobs that were made by a specific list of addresses.

This allows users to only archive blobs that they need long term (ie rollups only archiving their own blobs) instead of all blobs.

Version

N/A

Present Behaviour

Blob archiving is all or nothing

Expected Behaviour

Support a flag that takes a list of addresses and does not prune any blobs made by those addresses. Effectively a prune blacklist.

Steps to resolve

michaelsproul commented 6 months ago

At first blush this seems hard. Lighthouse doesn't do much introspection of transactions and our database currently maintains simple invariants like "I have all blobs between N and M". We'd need to change both of those to make this work

michaelsproul commented 6 months ago

What's the alternative if we don't do this? Rollups need to maintain an archive of the blobs they're interested in separately. What benefit does having them inside Lighthouse have?