mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +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:
@@ -809,8 +809,8 @@ impl<T: Config> OneSessionHandler<T::AccountId> for Pallet<T> {
|
||||
// Remove all received heartbeats and number of authored blocks from the
|
||||
// current session, they have already been processed and won't be needed
|
||||
// anymore.
|
||||
ReceivedHeartbeats::<T>::remove_prefix(&T::ValidatorSet::session_index());
|
||||
AuthoredBlocks::<T>::remove_prefix(&T::ValidatorSet::session_index());
|
||||
ReceivedHeartbeats::<T>::remove_prefix(&T::ValidatorSet::session_index(), None);
|
||||
AuthoredBlocks::<T>::remove_prefix(&T::ValidatorSet::session_index(), None);
|
||||
|
||||
if offenders.is_empty() {
|
||||
Self::deposit_event(Event::<T>::AllGood);
|
||||
|
||||
Reference in New Issue
Block a user