This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
[pallet_assets] How to destroy an asset with potentially u32::MAX
accounts? #12275
Closed
Description
Hey valuable Substrate maintainers,
I found out, that the witness limits the number of deletions here, but when there are too many accounts for one asset, then a sufficiently high number for the accounts in the witness param would lead to a weight which exceeds the maximum block limit. What could be done, if there are u32::MAX
accounts with non-zero balances? Then, we couldn't destroy the asset right? Or is the consumed weight with u32::MAX
below the maximum block limit? I don't think so.
What can I do to destroy a portion of all accounts? For example one could call an extrinsic multiple times with a small witness to destroy all u32::MAX
accounts.
u32::MAX
should only be an example to get a better understanding of this problem
Metadata
Metadata
Assignees
Type
Projects
Status
Done