You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
When calling remove_all, a user should also be able to include Option<u32>, which describes the maximum number of keys that can be removed at once.
At the end of the operation, you can return AllRemoved(u32) or SomeReamining(u32) with the number of items that were actually removed at the end of the operation.
Similar to the
storage_killapi in child tries, theremove_allapi on any maps should also have an optional key limit to enforce weight restrictions.#8166
When calling
remove_all, a user should also be able to includeOption<u32>, which describes the maximum number of keys that can be removed at once.At the end of the operation, you can return
AllRemoved(u32)orSomeReamining(u32)with the number of items that were actually removed at the end of the operation.Should reuse and rename
KillChildStorageResult:https://github.com/paritytech/substrate/blob/master/primitives/io/src/lib.rs#L89