Support overweight messages in XCMP queue (#799)

* Support overweight messages in XCMP queue

* Add storage migration logic to XCMP queue pallet

* Check whether required weight is larger than max individual weight first

* cargo fmt

* Add some unit tests

* Remove review question comment
This commit is contained in:
Keith Yeung
2021-12-08 18:07:08 -08:00
committed by GitHub
parent e543545f03
commit b5a7ab4d12
9 changed files with 283 additions and 18 deletions
+2
View File
@@ -16,6 +16,7 @@
use super::*;
use crate as xcmp_queue;
use frame_support::parameter_types;
use frame_system::EnsureRoot;
use sp_core::H256;
use sp_runtime::{
testing::Header,
@@ -157,6 +158,7 @@ impl Config for Test {
type XcmExecutor = xcm_executor::XcmExecutor<XcmConfig>;
type ChannelInfo = ParachainSystem;
type VersionWrapper = ();
type ExecuteOverweightOrigin = EnsureRoot<AccountId>;
}
pub fn new_test_ext() -> sp_io::TestExternalities {