Skip to content
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

MVP impl of import-blobs #6570

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

MVP impl of import-blobs #6570

wants to merge 7 commits into from

Conversation

michaelsproul
Copy link
Member

Issue Addressed

Closes:

This is just a quick interim solution to allow blobs to be imported from an existing Lighthouse DB. We will continue working on a more general solution.

Proposed Changes

New commands:

  • lighthouse db import-blobs --source-db /path/to/blobs_db: import blobs from another node.
  • lighthouse db inspect-blobs: iterate all blobs in the node's DB and look for gaps.
  • lighthouse db set-oldest-blob-slot: manually hack the oldest_blob_slot (shouldn't be necessary if using import-blobs).

@michaelsproul michaelsproul added work-in-progress PR is a work-in-progress database labels Nov 7, 2024
@michaelsproul michaelsproul changed the base branch from stable to unstable November 7, 2024 01:13
@michaelsproul
Copy link
Member Author

Recommended usage:

./lighthouse db import-blobs --datadir ./datadir/ --source-db ./blobs_to_import --debug-level debug

Running as the user with the correct permissions for both ./datadir and ./blobs_to_import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database work-in-progress PR is a work-in-progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant