Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update runtime/parachains/src/router/ump.rs
Co-authored-by: Bernhard Schuster <[email protected]>
  • Loading branch information
pepyakin and drahnr authored Oct 29, 2020
commit 5e92fe0500c7d97afcac604759b16374bdcbe02c
9 changes: 2 additions & 7 deletions runtime/parachains/src/router/ump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,8 @@ impl<T: Trait> Module<T> {

// make sure that the queue is not overfilled.
// we do it here only once since returning false invalidates the whole relay-chain block.
if para_queue_count > config.max_upward_queue_count
|| para_queue_size > config.max_upward_queue_size
{
return false;
}

true
para_queue_count <= config.max_upward_queue_count
&& para_queue_size <= config.max_upward_queue_size
}

/// Enacts all the upward messages sent by a candidate.
Expand Down