gov: add prune wasm codes proposal
Open
spike
- Dominant language
- Go
- Stars
- 416
- Forks
- 538
- PR merge metrics
- No merged PRs in 30d
Description
In order to release storage space for unused contracts a prune proposal makes sense.
When executed wasm codes without an instantiation would be removed from CodeInfo and wasmvm.
The proposal may include a relative height (or fix one in the past?) as a threshold to not delete new uploads.
* Should exclude pinned code ids
Follow up on:
https://github.com/CosmWasm/wasmd/issues/840#issuecomment-1118525916
Contributor guide
Assessment
This issue has not been assessed yet.