From 92a597785b54098d4b68bb8157f8444b4975b927 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 15 Oct 2021 18:42:33 +0200 Subject: [PATCH 1/4] Fix typos --- runtime/parachains/src/ump.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/parachains/src/ump.rs b/runtime/parachains/src/ump.rs index b7a1c9f508fd..1930ea51651d 100644 --- a/runtime/parachains/src/ump.rs +++ b/runtime/parachains/src/ump.rs @@ -202,20 +202,20 @@ pub mod pallet { /// Upward message executed with the given outcome. /// \[ id, outcome \] ExecutedUpward(MessageId, Outcome), - /// The weight limit for handling downward messages was reached. + /// The weight limit for handling upward messages was reached. /// \[ id, remaining, required \] WeightExhausted(MessageId, Weight, Weight), - /// Some downward messages have been received and will be processed. + /// Some upward messages have been received and will be processed. /// \[ para, count, size \] UpwardMessagesReceived(ParaId, u32, u32), - /// The weight budget was exceeded for an individual downward message. + /// The weight budget was exceeded for an individual upward message. /// /// This message can be later dispatched manually using `service_overweight` dispatchable /// using the assigned `overweight_index`. /// /// \[ para, id, overweight_index, required \] OverweightEnqueued(ParaId, MessageId, OverweightIndex, Weight), - /// Downward message from the overweight queue was executed with the given actual weight + /// Upward message from the overweight queue was executed with the given actual weight /// used. /// /// \[ overweight_index, used \] @@ -754,7 +754,7 @@ pub(crate) mod tests { MockGenesisConfig { configuration: crate::configuration::GenesisConfig { config: crate::configuration::HostConfiguration { - max_downward_message_size: 1024, + max_upward_message_size: 1024, ..Default::default() }, }, From f0f59272f30f1cfd9489aaa6ec616f25857f971b Mon Sep 17 00:00:00 2001 From: Gavin Wood Date: Fri, 15 Oct 2021 18:44:08 +0200 Subject: [PATCH 2/4] Update ump.rs --- runtime/parachains/src/ump.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/parachains/src/ump.rs b/runtime/parachains/src/ump.rs index 1930ea51651d..4c6d74681be0 100644 --- a/runtime/parachains/src/ump.rs +++ b/runtime/parachains/src/ump.rs @@ -31,7 +31,7 @@ pub use pallet::*; /// All upward messages coming from parachains will be funneled into an implementation of this trait. /// /// The message is opaque from the perspective of UMP. The message size can range from 0 to -/// `config.max_upward_message_size`. +/// `config.max_downward_message_size`. /// /// It's up to the implementation of this trait to decide what to do with a message as long as it /// returns the amount of weight consumed in the process of handling. Ignoring a message is a valid From c022545c0b4356b402b61cc88911ab0b31245d9a Mon Sep 17 00:00:00 2001 From: Gavin Wood Date: Fri, 15 Oct 2021 18:45:05 +0200 Subject: [PATCH 3/4] Update ump.rs --- runtime/parachains/src/ump.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/parachains/src/ump.rs b/runtime/parachains/src/ump.rs index 4c6d74681be0..5707c8a4acee 100644 --- a/runtime/parachains/src/ump.rs +++ b/runtime/parachains/src/ump.rs @@ -754,7 +754,7 @@ pub(crate) mod tests { MockGenesisConfig { configuration: crate::configuration::GenesisConfig { config: crate::configuration::HostConfiguration { - max_upward_message_size: 1024, + max_downward_message_size: 1024, ..Default::default() }, }, From bffc1d4de28d85a5d3b777e59c752f5524612745 Mon Sep 17 00:00:00 2001 From: Gavin Wood Date: Fri, 15 Oct 2021 18:45:25 +0200 Subject: [PATCH 4/4] Update ump.rs --- runtime/parachains/src/ump.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/parachains/src/ump.rs b/runtime/parachains/src/ump.rs index 5707c8a4acee..47111e357db9 100644 --- a/runtime/parachains/src/ump.rs +++ b/runtime/parachains/src/ump.rs @@ -31,7 +31,7 @@ pub use pallet::*; /// All upward messages coming from parachains will be funneled into an implementation of this trait. /// /// The message is opaque from the perspective of UMP. The message size can range from 0 to -/// `config.max_downward_message_size`. +/// `config.max_upward_message_size`. /// /// It's up to the implementation of this trait to decide what to do with a message as long as it /// returns the amount of weight consumed in the process of handling. Ignoring a message is a valid