From 6daef572fb5feb408dd9205e78ca0ef971ca141b Mon Sep 17 00:00:00 2001 From: Gonza Montiel Date: Thu, 26 Sep 2024 12:40:05 +0200 Subject: [PATCH] apply review suggestions --- runtime/moonbase/src/xcm_config.rs | 2 +- runtime/moonbeam/src/xcm_config.rs | 2 +- runtime/moonriver/src/xcm_config.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/moonbase/src/xcm_config.rs b/runtime/moonbase/src/xcm_config.rs index 5ba4642b4a..29ca7879a8 100644 --- a/runtime/moonbase/src/xcm_config.rs +++ b/runtime/moonbase/src/xcm_config.rs @@ -376,7 +376,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime { type PriceForSiblingDelivery = polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery< cumulus_primitives_core::ParaId, >; - type MaxActiveOutboundChannels = ConstU32<128>; + type MaxActiveOutboundChannels = MessageQueueHeapSize; // Most on-chain HRMP channels are configured to use 102400 bytes of max message size, so we // need to set the page size larger than that until we reduce the channel size on-chain. type MaxPageSize = ConstU32<{ 103 * 1024 }>; diff --git a/runtime/moonbeam/src/xcm_config.rs b/runtime/moonbeam/src/xcm_config.rs index a5948d6985..04afa119f9 100644 --- a/runtime/moonbeam/src/xcm_config.rs +++ b/runtime/moonbeam/src/xcm_config.rs @@ -365,7 +365,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime { type PriceForSiblingDelivery = polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery< cumulus_primitives_core::ParaId, >; - type MaxActiveOutboundChannels = ConstU32<128>; + type MaxActiveOutboundChannels = MessageQueueHeapSize; // Most on-chain HRMP channels are configured to use 102400 bytes of max message size, so we // need to set the page size larger than that until we reduce the channel size on-chain. type MaxPageSize = ConstU32<{ 103 * 1024 }>; diff --git a/runtime/moonriver/src/xcm_config.rs b/runtime/moonriver/src/xcm_config.rs index 76b87d12f7..fb78020495 100644 --- a/runtime/moonriver/src/xcm_config.rs +++ b/runtime/moonriver/src/xcm_config.rs @@ -373,7 +373,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime { type PriceForSiblingDelivery = polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery< cumulus_primitives_core::ParaId, >; - type MaxActiveOutboundChannels = ConstU32<128>; + type MaxActiveOutboundChannels = MessageQueueHeapSize; // Most on-chain HRMP channels are configured to use 102400 bytes of max message size, so we // need to set the page size larger than that until we reduce the channel size on-chain. type MaxPageSize = ConstU32<{ 103 * 1024 }>;