mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-19 02:55:43 +00:00
* Increase recusive limit to 512 for macro expansions Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Increase limit to 1024 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust comment Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Increase more limits Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Add QueuePausedQuery * ... on westend Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * update lockfile for {"substrate"} * update lockfile for {"substrate"} * Add QueuePausedQuery * ... on westend Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix test error Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * CI buggy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
f653f4519b
commit
e377e4becd
Generated
+183
-183
File diff suppressed because it is too large
Load Diff
@@ -17,8 +17,8 @@
|
|||||||
//! The Kusama runtime. This can be compiled with `#[no_std]`, ready for Wasm.
|
//! The Kusama runtime. This can be compiled with `#[no_std]`, ready for Wasm.
|
||||||
|
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
|
// `construct_runtime!` does a lot of recursion and requires us to increase the limit.
|
||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "512"]
|
||||||
|
|
||||||
use pallet_nis::WithMaximumOf;
|
use pallet_nis::WithMaximumOf;
|
||||||
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
|
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
|
||||||
@@ -1145,6 +1145,7 @@ impl pallet_message_queue::Config for Runtime {
|
|||||||
type MessageProcessor =
|
type MessageProcessor =
|
||||||
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
|
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
|
||||||
type QueueChangeHandler = ParaInclusion;
|
type QueueChangeHandler = ParaInclusion;
|
||||||
|
type QueuePausedQuery = ();
|
||||||
type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -329,6 +329,7 @@ impl pallet_message_queue::Config for Test {
|
|||||||
type WeightInfo = TestMessageQueueWeight;
|
type WeightInfo = TestMessageQueueWeight;
|
||||||
type MessageProcessor = TestProcessMessage;
|
type MessageProcessor = TestProcessMessage;
|
||||||
type QueueChangeHandler = ParaInclusion;
|
type QueueChangeHandler = ParaInclusion;
|
||||||
|
type QueuePausedQuery = ();
|
||||||
type HeapSize = ConstU32<65536>;
|
type HeapSize = ConstU32<65536>;
|
||||||
type MaxStale = ConstU32<8>;
|
type MaxStale = ConstU32<8>;
|
||||||
type ServiceWeight = MessageQueueServiceWeight;
|
type ServiceWeight = MessageQueueServiceWeight;
|
||||||
|
|||||||
@@ -573,13 +573,21 @@ fn overweight_queue_works() {
|
|||||||
.into(),
|
.into(),
|
||||||
);
|
);
|
||||||
|
|
||||||
// ... and if we try to service a message with index that doesn't exist it will error
|
// But servicing again will not work.
|
||||||
// out.
|
|
||||||
assert_noop!(
|
assert_noop!(
|
||||||
<MessageQueue as ServiceQueues>::execute_overweight(
|
<MessageQueue as ServiceQueues>::execute_overweight(
|
||||||
Weight::from_parts(501, 501),
|
Weight::from_parts(501, 501),
|
||||||
(Ump(UmpQueueId::Para(para_a)), 0, 2)
|
(Ump(UmpQueueId::Para(para_a)), 0, 2)
|
||||||
),
|
),
|
||||||
|
ExecuteOverweightError::AlreadyProcessed,
|
||||||
|
);
|
||||||
|
|
||||||
|
// Using an invalid index does not work.
|
||||||
|
assert_noop!(
|
||||||
|
<MessageQueue as ServiceQueues>::execute_overweight(
|
||||||
|
Weight::from_parts(501, 501),
|
||||||
|
(Ump(UmpQueueId::Para(para_a)), 0, 3)
|
||||||
|
),
|
||||||
ExecuteOverweightError::NotFound,
|
ExecuteOverweightError::NotFound,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
|
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
|
||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "512"]
|
||||||
|
|
||||||
use pallet_transaction_payment::CurrencyAdapter;
|
use pallet_transaction_payment::CurrencyAdapter;
|
||||||
use runtime_common::{
|
use runtime_common::{
|
||||||
@@ -1161,6 +1161,7 @@ impl pallet_message_queue::Config for Runtime {
|
|||||||
type MessageProcessor =
|
type MessageProcessor =
|
||||||
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
|
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
|
||||||
type QueueChangeHandler = ParaInclusion;
|
type QueueChangeHandler = ParaInclusion;
|
||||||
|
type QueuePausedQuery = ();
|
||||||
type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
//! The Rococo runtime for v1 parachains.
|
//! The Rococo runtime for v1 parachains.
|
||||||
|
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
|
// `construct_runtime!` does a lot of recursion and requires us to increase the limit.
|
||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "512"]
|
||||||
|
|
||||||
use pallet_nis::WithMaximumOf;
|
use pallet_nis::WithMaximumOf;
|
||||||
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
|
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
|
||||||
@@ -1076,6 +1076,7 @@ impl pallet_message_queue::Config for Runtime {
|
|||||||
type MessageProcessor =
|
type MessageProcessor =
|
||||||
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
|
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
|
||||||
type QueueChangeHandler = ParaInclusion;
|
type QueueChangeHandler = ParaInclusion;
|
||||||
|
type QueuePausedQuery = ();
|
||||||
type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -974,6 +974,7 @@ impl pallet_message_queue::Config for Runtime {
|
|||||||
type MessageProcessor =
|
type MessageProcessor =
|
||||||
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
|
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
|
||||||
type QueueChangeHandler = ParaInclusion;
|
type QueueChangeHandler = ParaInclusion;
|
||||||
|
type QueuePausedQuery = ();
|
||||||
type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -279,6 +279,7 @@ impl pallet_message_queue::Config for Runtime {
|
|||||||
type ServiceWeight = MessageQueueServiceWeight;
|
type ServiceWeight = MessageQueueServiceWeight;
|
||||||
type MessageProcessor = MessageProcessor;
|
type MessageProcessor = MessageProcessor;
|
||||||
type QueueChangeHandler = ();
|
type QueueChangeHandler = ();
|
||||||
|
type QueuePausedQuery = ();
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -247,6 +247,7 @@ impl pallet_message_queue::Config for Runtime {
|
|||||||
type MessageProcessor =
|
type MessageProcessor =
|
||||||
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
|
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
|
||||||
type QueueChangeHandler = ();
|
type QueueChangeHandler = ();
|
||||||
|
type QueuePausedQuery = ();
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user