Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

nomination-pools: clear pool metadata after a pool is deleted. #12077

Closed
kianenigma opened this issue Aug 20, 2022 · 2 comments · Fixed by #12154
Closed

nomination-pools: clear pool metadata after a pool is deleted. #12077

kianenigma opened this issue Aug 20, 2022 · 2 comments · Fixed by #12154
Assignees
Labels
I3-bug The node fails to follow expected behavior. Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder

Comments

@kianenigma
Copy link
Contributor

In fn dissolve_pool, the corresponding pool metadata has to be removed as well.

Currently, we forget to do this.

Also requires a small migration: iterate over all metadatas, if one does not have a corresponding bonded_pool, delete it. The migration could also be executed manually with providing the right system::kill_storage.

@kianenigma kianenigma added I3-bug The node fails to follow expected behavior. Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder labels Aug 20, 2022
@tifecool
Copy link
Contributor

Would like to attempt this

@tifecool
Copy link
Contributor

What do you mean by migration?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I3-bug The node fails to follow expected behavior. Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants