-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/plmc-377-update-to-polkadot-100 #123
Changes from all commits
e7cf200
b0e0258
01fbe0a
396e1c8
8549be2
3fd4ee0
b272479
4aeb55e
223c4cd
f96b048
5713267
3782ac6
85e817f
f76ad0e
373345e
94f4229
6801c51
25d5919
258746f
483dd10
3c22eda
308b955
f1bae11
154ee8a
79adcc9
88eeb2a
62adc46
85bdfb9
1b4d8bb
7d27c36
26ae34e
5275f2f
41a3465
1888e79
a8e5dff
0095a22
f1c8bfa
a87cff2
a65814a
9c0b29b
bd07a48
901d741
9c627a8
251882b
d0b1827
1d72b75
c10f4d6
c0d2451
899c258
c698ce8
5cb739f
4e0a6c3
ad0bdc0
0780656
8a098bd
90558f0
6b03214
6401c3c
e5a27e2
18ec093
968c6e1
f5c51f3
7c37160
76b36b3
1e90ae1
feb5e89
34f07e0
829bfb7
d833462
2c133b7
236ee43
ba56bef
e1ccda1
bb4165d
8b9312e
e59dbd2
0b62c25
a0b0641
fb1065d
0d70077
6bdb2a6
40dbbad
45e10c1
585944d
0e239db
f44012f
168c9dc
2859f82
283f1fb
5447d8d
7cce090
1b19f86
5712ae4
b7e8320
9deab1c
b7612e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0x00000000000000000000000000000000000000000000000000000000000000000048cf7e50ba3cfb63c155ec38da34bd43ab020b5492f737deed5a9fc96c4b50bd03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400 |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,7 @@ use xcm_executor::XcmExecutor; | |
pub type Balance = u128; | ||
|
||
/// Index of a transaction in the chain. | ||
pub type Index = u32; | ||
pub type Nonce = u32; | ||
|
||
/// A hash of some data used by the chain. | ||
pub type Hash = sp_core::H256; | ||
|
@@ -316,12 +316,12 @@ impl frame_system::Config for Runtime { | |
type AccountId = AccountId; | ||
/// The basic call filter to use in dispatchable. | ||
type BaseCallFilter = Everything; | ||
/// The block type. | ||
type Block = Block; | ||
/// Maximum number of block number to block hash mappings to keep (oldest pruned first). | ||
type BlockHashCount = BlockHashCount; | ||
/// The maximum length of a block (in bytes). | ||
type BlockLength = RuntimeBlockLength; | ||
/// The index type for blocks. | ||
type BlockNumber = BlockNumber; | ||
/// Block & extrinsics weights: base values and limits. | ||
type BlockWeights = RuntimeBlockWeights; | ||
/// The weight of database operations that the runtime can invoke. | ||
|
@@ -330,13 +330,11 @@ impl frame_system::Config for Runtime { | |
type Hash = Hash; | ||
/// The hashing algorithm used. | ||
type Hashing = BlakeTwo256; | ||
/// The header type. | ||
type Header = generic::Header<BlockNumber, BlakeTwo256>; | ||
/// The index type for storing how many extrinsics an account has signed. | ||
type Index = Index; | ||
/// The lookup mechanism to get account ID from whatever is passed in dispatchers. | ||
type Lookup = AccountIdLookup<AccountId, ()>; | ||
type MaxConsumers = frame_support::traits::ConstU32<16>; | ||
/// The index type for storing how many extrinsics an account has signed. | ||
type Nonce = Nonce; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
/// What to do if an account is fully reaped from the system. | ||
type OnKilledAccount = (); | ||
/// What to do if a new account is created. | ||
|
@@ -383,14 +381,14 @@ impl pallet_balances::Config for Runtime { | |
type DustRemoval = (); | ||
type ExistentialDeposit = ExistentialDeposit; | ||
type FreezeIdentifier = (); | ||
type HoldIdentifier = (); | ||
type MaxFreezes = ConstU32<0>; | ||
type MaxHolds = ConstU32<0>; | ||
type MaxLocks = ConstU32<50>; | ||
type MaxReserves = ConstU32<50>; | ||
type ReserveIdentifier = [u8; 8]; | ||
/// The ubiquitous event type. | ||
type RuntimeEvent = RuntimeEvent; | ||
type RuntimeHoldReason = (); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
type WeightInfo = pallet_balances::weights::SubstrateWeight<Runtime>; | ||
} | ||
|
||
|
@@ -503,6 +501,7 @@ impl pallet_session::Config for Runtime { | |
} | ||
|
||
impl pallet_aura::Config for Runtime { | ||
type AllowMultipleBlocksPerSlot = frame_support::traits::ConstBool<false>; | ||
type AuthorityId = AuraId; | ||
type DisabledValidators = (); | ||
type MaxAuthorities = ConstU32<100_000>; | ||
|
@@ -511,7 +510,6 @@ impl pallet_aura::Config for Runtime { | |
parameter_types! { | ||
pub const PotId: PalletId = PalletId(*b"PotStake"); | ||
pub const MaxCandidates: u32 = 1000; | ||
pub const MinCandidates: u32 = 5; | ||
pub const SessionLength: BlockNumber = 6 * HOURS; | ||
pub const MaxInvulnerables: u32 = 100; | ||
pub const ExecutiveBody: BodyId = BodyId::Executive; | ||
|
@@ -526,7 +524,7 @@ impl pallet_collator_selection::Config for Runtime { | |
type KickThreshold = Period; | ||
type MaxCandidates = MaxCandidates; | ||
type MaxInvulnerables = MaxInvulnerables; | ||
type MinCandidates = MinCandidates; | ||
type MinEligibleCollators = frame_support::traits::ConstU32<1>; | ||
type PotId = PotId; | ||
type RuntimeEvent = RuntimeEvent; | ||
type UpdateOrigin = CollatorSelectionUpdateOrigin; | ||
|
@@ -602,18 +600,15 @@ impl polkadot_runtime_parachains::origin::Config for Runtime {} | |
|
||
// Create the runtime by composing the FRAME pallets that were previously configured. | ||
construct_runtime!( | ||
pub enum Runtime where | ||
Block = Block, | ||
NodeBlock = opaque::Block, | ||
UncheckedExtrinsic = UncheckedExtrinsic, | ||
pub enum Runtime | ||
{ | ||
// System support stuff. | ||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>} = 0, | ||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>} = 0, | ||
ParachainSystem: cumulus_pallet_parachain_system::{ | ||
Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned, | ||
Pallet, Call, Config<T>, Storage, Inherent, Event<T>, ValidateUnsigned, | ||
} = 1, | ||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 2, | ||
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 3, | ||
ParachainInfo: parachain_info::{Pallet, Storage, Config<T>} = 3, | ||
ParachainOrigin: polkadot_runtime_parachains::origin = 4, | ||
|
||
// Monetary stuff. | ||
|
@@ -626,11 +621,11 @@ construct_runtime!( | |
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21, | ||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22, | ||
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23, | ||
AuraExt: cumulus_pallet_aura_ext::{Pallet, Storage, Config} = 24, | ||
AuraExt: cumulus_pallet_aura_ext::{Pallet, Storage, Config<T>} = 24, | ||
|
||
// XCM helpers. | ||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30, | ||
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin, Config} = 31, | ||
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin, Config<T>} = 31, | ||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32, | ||
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33, | ||
|
||
|
@@ -748,8 +743,8 @@ impl_runtime_apis! { | |
} | ||
} | ||
|
||
impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime { | ||
fn account_nonce(account: AccountId) -> Index { | ||
impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Nonce> for Runtime { | ||
fn account_nonce(account: AccountId) -> Nonce { | ||
System::account_nonce(account) | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is necessary in order to build an image compatible with Debian 12 that still uses
glibc
2.36 when the latest version is 2.38