sigp / lighthouse

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

Fix issue where prune blobs can OOM #6571

Open eserilev opened 2 weeks ago

eserilev commented 2 weeks ago

Issue Addressed

6559

Proposed Changes

Add a delete_while db method that iterates through records in the db and removes all records where provided predicate evaluates to false. Use this new method in the blobs try_prune method

TODO remove BlobInfo as it can be totally deprecated. Now we now longer need to worry about atomic transactions across two separate dbs

Blocked by #4718