pub type RelayDispatchQueueSize<T: Config> = StorageMap<_GeneratedPrefixForStorageRelayDispatchQueueSize<T>, Twox64Concat, ParaId, (u32, u32), ValueQuery>;
Expand description

Size of the dispatch queues. Caches sizes of the queues in RelayDispatchQueue.

First item in the tuple is the count of messages and second is the total length (in bytes) of the message payloads.

Note that this is an auxiliary mapping: it’s possible to tell the byte size and the number of messages only looking at RelayDispatchQueues. This mapping is separate to avoid the cost of loading the whole message queue if only the total size and count are required.

Invariant:

  • The set of keys should exactly match the set of keys of RelayDispatchQueues.