Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
445ba54
correct rate limiter Cargo.toml
apopiak Jul 12, 2023
cb275b6
Merge branch 'feat/xcm-defer' into feat/xcm-rate-limiter
apopiak Jul 12, 2023
db44625
bump crate versions
apopiak Jul 12, 2023
79a64a1
Revert "remove xcm rate limiter from runtime"
apopiak Jul 24, 2023
144605e
update xcmp queue pallet
apopiak Jul 24, 2023
673f54e
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Jul 24, 2023
33828ce
Merge branch 'master' into feat/xcm-rate-limiter
mrq1911 Jul 27, 2023
4d48737
Merge branch 'master' into feat/xcm-rate-limiter
apopiak Jul 28, 2023
353a6c6
Merge branch 'master' into feat/xcm-rate-limiter
mrq1911 Aug 8, 2023
a6ee5de
bump integration tests
dmoka Aug 8, 2023
8797e19
Merge remote-tracking branch 'origin/feat/xcm-rate-limiter' into feat…
dmoka Aug 8, 2023
a931eb0
bump runtime version
dmoka Aug 8, 2023
21f5866
change function order to follow execution orders
dmoka Aug 8, 2023
b743f77
bump patch versions of touched packages
dmoka Aug 8, 2023
c95d0e5
fix xcm rate limiter non deterministic tests as we use different rela…
dmoka Aug 8, 2023
ce57dbb
merge master to feat/xcm-rate-limiter
dmoka Aug 11, 2023
62ecd90
bump versions
dmoka Aug 11, 2023
b33182c
merge master to feat/xcm-rate-limiter
dmoka Aug 14, 2023
04440f3
bump runtime version
dmoka Aug 14, 2023
0671025
bump patch versions for touched packages
dmoka Aug 14, 2023
658b7be
update lock
dmoka Aug 14, 2023
fed4df2
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Oct 13, 2023
54744fe
bump versions
apopiak Oct 20, 2023
c90e469
remove duplicate assert macro definitions
apopiak Oct 20, 2023
0a0682a
update xcmp queue pallet to new extended version
apopiak Oct 20, 2023
ff7c102
update integration tests
apopiak Oct 20, 2023
7a1eaed
formatting
apopiak Oct 20, 2023
d958f16
configure defer duration
apopiak Dec 8, 2023
6c88813
Merge branch 'feat/xcm-rate-limiter' into apopiak/rate-limiter-polkad…
apopiak Dec 22, 2023
c4f8c5c
fix merge issues and tests
apopiak Dec 22, 2023
c3e7610
formatting
apopiak Dec 22, 2023
f5de0ca
bump crate versions
apopiak Dec 22, 2023
bbbe2d4
make clippy happy
apopiak Dec 22, 2023
20380ce
Merge branch 'polkadot-v1.1.0' into apopiak/rate-limiter-polkadot-v1-1
Roznovjak Dec 24, 2023
c51a163
add previously removed fn
Roznovjak Dec 25, 2023
192a887
Merge branch 'polkadot-v1.1.0' into apopiak/rate-limiter-polkadot-v1-1
Roznovjak Dec 26, 2023
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 xcmp queue pallet to new extended version
  • Loading branch information
apopiak committed Oct 20, 2023
commit 0a0682ac6fcd59eef6c747dad9b6ddf3acf9ee8e
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