-
Notifications
You must be signed in to change notification settings - Fork 991
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
base: main
Are you sure you want to change the base?
Conversation
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.
} | ||
|
||
var eraseCmd = &cobra.Command{ | ||
Use: "erase <ds_key>", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's TBD
ds.NewKey("sampling_result"), | ||
ds.NewKey("das"), | ||
ds.NewKey("pruner"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Make those importable
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.