mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 19:21:13 +00:00
[FRAME] Use 'ready' pages in XCMP suspend logic (#2393)
Changes: - `QueueFootprint` gets a new field; `ready_pages` that contains the non-overweight and not yet processed pages. - `XCMP` queue pallet is change to use the `ready_pages` instead of `pages` to calculate the channel suspension thresholds. This should give the XCMP queue pallet a more correct view of when to suspend channels. --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
c367ac2488
commit
329c077236
@@ -123,6 +123,8 @@ impl<OverweightAddr> ServiceQueues for NoopServiceQueues<OverweightAddr> {
|
||||
pub struct QueueFootprint {
|
||||
/// The number of pages in the queue (including overweight pages).
|
||||
pub pages: u32,
|
||||
/// The number of pages that are ready (not yet processed and also not overweight).
|
||||
pub ready_pages: u32,
|
||||
/// The storage footprint of the queue (including overweight messages).
|
||||
pub storage: Footprint,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user