Companion to Substrate #11490 (#5603)

* Fix warnings

* Bump
This commit is contained in:
Gavin Wood
2022-05-30 11:21:03 +01:00
committed by GitHub
parent f814695d5d
commit 026848c932
8 changed files with 205 additions and 174 deletions
@@ -638,7 +638,9 @@ impl<T: paras_inherent::Config> BenchBuilder<T> {
pub(crate) fn build(self) -> Bench<T> {
// Make sure relevant storage is cleared. This is just to get the asserts to work when
// running tests because it seems the storage is not cleared in between.
#[allow(deprecated)]
inclusion::PendingAvailabilityCommitments::<T>::remove_all(None);
#[allow(deprecated)]
inclusion::PendingAvailability::<T>::remove_all(None);
// We don't allow a core to have both disputes and be marked fully available at this block.
@@ -852,10 +852,12 @@ impl<T: Config> Pallet<T> {
for to_prune in to_prune {
// This should be small, as disputes are rare, so `None` is fine.
#[allow(deprecated)]
<Disputes<T>>::remove_prefix(to_prune, None);
// This is larger, and will be extracted to the `shared` pallet for more proper pruning.
// TODO: https://github.com/paritytech/polkadot/issues/3469
#[allow(deprecated)]
<Included<T>>::remove_prefix(to_prune, None);
SpamSlots::<T>::remove(to_prune);
}
@@ -516,6 +516,7 @@ fn bitfield_checks() {
);
// clean up
#[allow(deprecated)]
PendingAvailability::<Test>::remove_all(None);
}
@@ -574,6 +575,7 @@ fn bitfield_checks() {
0
);
#[allow(deprecated)]
PendingAvailability::<Test>::remove_all(None);
}