Skip to content

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

@michaelsproul
Copy link
Member Author

Closing in favour of:

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