mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 12:21:02 +00:00
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:
@@ -92,8 +92,8 @@ pub fn kill(key: &[u8]) {
|
||||
}
|
||||
|
||||
/// Ensure keys with the given `prefix` have no entries in storage.
|
||||
pub fn kill_prefix(prefix: &[u8]) {
|
||||
sp_io::storage::clear_prefix(prefix);
|
||||
pub fn kill_prefix(prefix: &[u8], limit: Option<u32>) -> sp_io::KillStorageResult {
|
||||
sp_io::storage::clear_prefix(prefix, limit)
|
||||
}
|
||||
|
||||
/// Get a Vec of bytes from storage.
|
||||
|
||||
Reference in New Issue
Block a user