Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uplift to v1.5 #1256

Merged
merged 26 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
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
fmt
  • Loading branch information
PierreOssun committed Jun 7, 2024
commit fd61ba40abfab0db24d1b5cf0151ff31d874c75f
2 changes: 1 addition & 1 deletion runtime/astar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pallet-evm-precompile-sha3fips = { workspace = true }
pallet-evm-precompile-simple = { workspace = true }
pallet-identity = { workspace = true }
pallet-membership = { workspace = true }
pallet-message-queue = { workspace = true }
pallet-multisig = { workspace = true }
pallet-proxy = { workspace = true }
pallet-session = { workspace = true, features = ["historical"] }
Expand All @@ -67,7 +68,6 @@ pallet-transaction-payment-rpc-runtime-api = { workspace = true }
pallet-utility = { workspace = true }
pallet-vesting = { workspace = true }
pallet-xcm-benchmarks = { workspace = true, optional = true }
pallet-message-queue = { workspace = true }

# cumulus dependencies
cumulus-pallet-aura-ext = { workspace = true }
Expand Down
14 changes: 7 additions & 7 deletions runtime/astar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,22 +893,22 @@ impl pallet_xc_asset_config::Config for Runtime {
}

parameter_types! {
/// The amount of weight (if any) which should be provided to the message queue for
/// The amount of weight (if any) which should be provided to the message queue for
/// servicing enqueued items.
///
/// This may be legitimately `None` in the case that you will call
/// `ServiceQueues::service_queues` manually.
pub MessageQueueServiceWeight: Weight =
Perbill::from_percent(25) * RuntimeBlockWeights::get().max_block;
/// The maximum number of stale pages (i.e. of overweight messages) allowed before culling
pub MessageQueueServiceWeight: Weight =
Perbill::from_percent(25) * RuntimeBlockWeights::get().max_block;
/// The maximum number of stale pages (i.e. of overweight messages) allowed before culling
/// can happen. Once there are more stale pages than this, then historical pages may be
/// dropped, even if they contain unprocessed overweight messages.
pub const MessageQueueMaxStale: u32 = 8;
/// The size of the page; this implies the maximum message size which can be sent
pub const MessageQueueMaxStale: u32 = 8;
/// The size of the page; this implies the maximum message size which can be sent
/// A good value depends on the expected message sizes, their weights, the weight that is
/// available for processing them and the maximal needed message size. The maximal message
/// size is slightly lower than this as defined by [`MaxMessageLenOf`].
pub const MessageQueueHeapSize: u32 = 128 * 1048;
pub const MessageQueueHeapSize: u32 = 128 * 1048;
}

impl pallet_message_queue::Config for Runtime {
Expand Down
Loading