Unverified Commit 1dfc23f6 authored by Qinxuan Chen's avatar Qinxuan Chen Committed by GitHub
Browse files

Companion for #9061 (#3200)



* migrate pallet-randomness-collective-flip to new pallet attr macro
Signed-off-by: default avatarkoushiro <koushiro.cqx@gmail.com>

* fix some nits
Signed-off-by: default avatarkoushiro <koushiro.cqx@gmail.com>

* fix
Signed-off-by: default avatarkoushiro <koushiro.cqx@gmail.com>

* some nits
Signed-off-by: default avatarkoushiro <koushiro.cqx@gmail.com>

* update Substrate

Co-authored-by: parity-processbot <>
parent dd26f19e
Pipeline #142156 passed with stages
in 36 minutes and 1 second
This diff is collapsed.
......@@ -205,6 +205,8 @@ impl frame_system::Config for Runtime {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Runtime {}
impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId;
}
......
......@@ -212,6 +212,8 @@ impl frame_system::Config for Runtime {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Runtime {}
impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId;
}
......
......@@ -484,6 +484,8 @@ mod tests {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Test {}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
}
......
......@@ -192,6 +192,8 @@ impl frame_system::Config for Runtime {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Runtime {}
parameter_types! {
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) *
BlockWeights::get().max_block;
......
......@@ -177,6 +177,8 @@ impl frame_system::Config for Runtime {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Runtime {}
parameter_types! {
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) *
BlockWeights::get().max_block;
......
......@@ -161,6 +161,8 @@ impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime where
type Extrinsic = UncheckedExtrinsic;
}
impl pallet_randomness_collective_flip::Config for Runtime {}
parameter_types! {
pub storage EpochDuration: u64 = EPOCH_DURATION_IN_SLOTS as u64;
pub storage ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
......
......@@ -183,6 +183,8 @@ impl frame_system::Config for Runtime {
type OnSetCode = ();
}
impl pallet_randomness_collective_flip::Config for Runtime {}
parameter_types! {
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) *
BlockWeights::get().max_block;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment