mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Add sudo to template node (#2748)
* Add sudo to template node * Fix * Change as suggest * Update parachain-template/runtime/src/lib.rs Co-authored-by: Squirrel <giles@parity.io> * Change as suggest --------- Co-authored-by: Squirrel <giles@parity.io>
This commit is contained in:
@@ -134,6 +134,7 @@ runtime-benchmarks = [
|
||||
"pallet-collator-selection/runtime-benchmarks",
|
||||
"pallet-parachain-template/runtime-benchmarks",
|
||||
"pallet-timestamp/runtime-benchmarks",
|
||||
"pallet-sudo/runtime-benchmarks",
|
||||
"pallet-xcm/runtime-benchmarks",
|
||||
"sp-runtime/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
|
||||
@@ -360,6 +360,12 @@ impl pallet_transaction_payment::Config for Runtime {
|
||||
type OperationalFeeMultiplier = ConstU8<5>;
|
||||
}
|
||||
|
||||
impl pallet_sudo::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type RuntimeCall = RuntimeCall;
|
||||
type WeightInfo = ();
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
|
||||
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
|
||||
@@ -479,6 +485,9 @@ construct_runtime!(
|
||||
Balances: pallet_balances = 10,
|
||||
TransactionPayment: pallet_transaction_payment = 11,
|
||||
|
||||
// Governance
|
||||
Sudo: pallet_sudo = 15,
|
||||
|
||||
// Collator support. The order of these 4 are important and shall not change.
|
||||
Authorship: pallet_authorship = 20,
|
||||
CollatorSelection: pallet_collator_selection = 21,
|
||||
@@ -493,7 +502,7 @@ construct_runtime!(
|
||||
DmpQueue: cumulus_pallet_dmp_queue = 33,
|
||||
|
||||
// Template
|
||||
TemplatePallet: pallet_parachain_template = 40,
|
||||
TemplatePallet: pallet_parachain_template = 50,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -504,6 +513,7 @@ mod benches {
|
||||
[pallet_balances, Balances]
|
||||
[pallet_session, SessionBench::<Runtime>]
|
||||
[pallet_timestamp, Timestamp]
|
||||
[pallet_sudo, Sudo]
|
||||
[pallet_collator_selection, CollatorSelection]
|
||||
[cumulus_pallet_xcmp_queue, XcmpQueue]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user