Frame remove_all with size limit. (#9106)

* remove prefixed content with limit.

* test match

* factor comment and factor ext limit removal.

* fix benchmark

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
chemeandShawn Tabrizi authored and GitHub committed 2021-06-15 13:23:58 +00:00
1 parent 5f0257f3b3
commit 693b39f43b
36 files changed
+312 -239

No files matched your search

@@ -142,7 +142,7 @@ fn clean<T: Config>() {
<Members<T>>::kill();
<Candidates<T>>::kill();
<RunnersUp<T>>::kill();
<Voting<T>>::remove_all();
<Voting<T>>::remove_all(None);
}
benchmarks! {