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

Used preimages not cleared #1322

Open
h4x3rotab opened this issue Jun 25, 2023 · 0 comments
Open

Used preimages not cleared #1322

h4x3rotab opened this issue Jun 25, 2023 · 0 comments
Labels
bounty-s Small-size Bounty

Comments

@h4x3rotab
Copy link
Contributor

Background

There are some used preimages on both Phala and Khala parachains. They were created for democracy proposals and have been consumed by successful execution. However, for some unknown reasons, they are still kept in the storage like shown below:

image

We have tried to call preimage.unnotePreimage() by the preimage owner account. After calling it, the owner of the preimage was removed, but the entry is still kept in the storage, probably because it always shows "Requested / 1", indicating some reference to the preimage was not removed properly.

Besides that, apparently there are also some undecodable preimages on Khala (shown in the screenshot with "Requested / 4,064,592,897"). It could be caused by the poorly executed runtime migration happened when introducing the preimage pallet. However, none of them is still in used. So we should remove them all.

Deliverables

  1. Figure out how to remove the used preimages from the storage and fix the problem causing the problem
  2. A plan to remove the undecodable preimages on Khala

Resources

@h4x3rotab h4x3rotab added the bounty-s Small-size Bounty label Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty-s Small-size Bounty
Projects
None yet
Development

No branches or pull requests

1 participant