Skip to content

feat(cel-shed): datastore: erase samples #4146

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Wondertan
Copy link
Member

@Wondertan Wondertan commented Mar 6, 2025

This new cel-shed command allows erasing samples and relevant daser/availability/pruning states. I needed this to resample, but without wasting hours on resyncing headers, and I believe this is gonna be useful for us.

Besides, I added a command to delete a single arbitrary namespace as opposed to a constant group of namespace.

Tested manually.

This new cel-shed command allows erasing samples and relevant daser/availability/pruning states.
I needed this to resample, but without spending hours on resyncing headers and I believe this is gonna be useful
for us.

Besides, I added a command to delete a single arbitary namespace as opposed to a constant group of namespace.
@Wondertan Wondertan added the kind:feat Attached to feature PRs label Mar 6, 2025
@Wondertan Wondertan self-assigned this Mar 6, 2025
}

var eraseCmd = &cobra.Command{
Use: "erase <ds_key>",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why need the discover stopped? Why can't they pass either --node.store or --p2p.network to make it more explicit and versatile cmd?

Copy link
Member Author

@Wondertan Wondertan Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should have both, so you can be lazy by not specifying those, but also can override if use non default path

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally have multiple types of nodes for multiple networks. Would appreciate an option to specify network name + type of the node in this command. And only network for command of erasing samples

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's TBD

Comment on lines +63 to +65
ds.NewKey("sampling_result"),
ds.NewKey("das"),
ds.NewKey("pruner"),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Make those importable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feat Attached to feature PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants