Type Alias PreviousBundleAndExecutionReceiptVersions

Source
pub type PreviousBundleAndExecutionReceiptVersions<T> = StorageValue<_GeneratedPrefixForStoragePreviousBundleAndExecutionReceiptVersions<T>, BTreeMap<BlockNumberFor<T>, BundleAndExecutionReceiptVersion>, ValueQuery>;
Expand description

Storage that hold a previous versions of Bundle and Execution Receipt. Unfortunately, it adds a new item for every runtime upgrade if the versions change between runtime upgrades. If the versions does not change, then same version is set with higher block number. Pruning this storage is not quiet straight forward since each domain may submit an ER with a gap as well and also introduces the loop to find the correct block number.

Storage type is [StorageValue] with value type BTreeMap < BlockNumberFor < T > , BundleAndExecutionReceiptVersion >.

Aliased Typeยง

pub struct PreviousBundleAndExecutionReceiptVersions<T>(/* private fields */);