Skip to content

Commit

Permalink
update xcmp queue pallet to new extended version
Browse files Browse the repository at this point in the history
  • Loading branch information
apopiak committed Oct 20, 2023
1 parent c90e469 commit 0a0682a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 26 deletions.
50 changes: 25 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion runtime/hydradx/src/weights/xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,26 @@ impl<T: frame_system::Config> WeightInfo for HydraWeight<T> {
.saturating_add(T::DbWeight::get().reads(104 as u64))
.saturating_add(T::DbWeight::get().writes(103 as u64))
}
// TODO: update weights
// Storage: XcmpQueue DeferredXcmMessages (r:1 w:1)
// Proof Skipped: XcmpQueue DeferredXcmMessages (max_values: None, max_size: None, mode: Measured)
fn discard_deferred() -> Weight {
fn discard_deferred_bucket() -> Weight {
// Minimum execution time: 62_131_073 nanoseconds.
Weight::from_ref_time(63_092_826_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}

// Storage: XcmpQueue DeferredXcmMessages (r:1 w:1)
// Proof Skipped: XcmpQueue DeferredXcmMessages (max_values: None, max_size: None, mode: Measured)
fn discard_deferred_individual() -> Weight {
// Minimum execution time: 62_131_073 nanoseconds.
Weight::from_ref_time(63_092_826_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}

fn try_place_in_deferred_queue() -> Weight {
// Minimum execution time: 62_131_073 nanoseconds.
Weight::from_ref_time(63_092_826_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
Expand Down
1 change: 1 addition & 0 deletions runtime/hydradx/src/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
type WeightInfo = weights::xcmp_queue::HydraWeight<Runtime>;
type ExecuteDeferredOrigin = EnsureRoot<AccountId>;
type MaxDeferredMessages = ConstU32<100>;
type MaxDeferredBuckets = ConstU32<1000>;
type RelayChainBlockNumberProvider = RelayChainBlockNumberProvider<Runtime>;
type XcmDeferFilter = XcmRateLimiter;
}
Expand Down

0 comments on commit 0a0682a

Please sign in to comment.