Skip to content

Commit ebefb9f

Browse files
authored
Companion: Remove uncles related code (#2126)
* Companion: Remove `uncles` related code paritytech/substrate#13216 * update lockfile for {"polkadot", "substrate"} --------- Co-authored-by: parity-processbot <>
1 parent a462847 commit ebefb9f

File tree

10 files changed

+8
-28
lines changed

10 files changed

+8
-28
lines changed

cumulus/parachain-template/runtime/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,6 @@ impl pallet_timestamp::Config for Runtime {
320320

321321
impl pallet_authorship::Config for Runtime {
322322
type FindAuthor = pallet_session::FindAccountFromAuthorIndex<Self, Aura>;
323-
type UncleGenerations = ConstU32<0>;
324-
type FilterUncle = ();
325323
type EventHandler = (CollatorSelection,);
326324
}
327325

cumulus/parachains/common/src/impls.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ mod tests {
228228

229229
impl pallet_authorship::Config for Test {
230230
type FindAuthor = OneAuthor;
231-
type UncleGenerations = ();
232-
type FilterUncle = ();
233231
type EventHandler = ();
234232
}
235233

cumulus/parachains/runtimes/assets/statemine/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ impl pallet_timestamp::Config for Runtime {
178178

179179
impl pallet_authorship::Config for Runtime {
180180
type FindAuthor = pallet_session::FindAccountFromAuthorIndex<Self, Aura>;
181-
type UncleGenerations = ConstU32<0>;
182-
type FilterUncle = ();
183181
type EventHandler = (CollatorSelection,);
184182
}
185183

@@ -614,7 +612,7 @@ construct_runtime!(
614612
AssetTxPayment: pallet_asset_tx_payment::{Pallet, Event<T>} = 12,
615613

616614
// Collator support. the order of these 5 are important and shall not change.
617-
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
615+
Authorship: pallet_authorship::{Pallet, Storage} = 20,
618616
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
619617
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
620618
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23,

cumulus/parachains/runtimes/assets/statemint/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ impl pallet_timestamp::Config for Runtime {
193193

194194
impl pallet_authorship::Config for Runtime {
195195
type FindAuthor = pallet_session::FindAccountFromAuthorIndex<Self, Aura>;
196-
type UncleGenerations = ConstU32<0>;
197-
type FilterUncle = ();
198196
type EventHandler = (CollatorSelection,);
199197
}
200198

@@ -614,7 +612,7 @@ construct_runtime!(
614612
AssetTxPayment: pallet_asset_tx_payment::{Pallet, Event<T>} = 12,
615613

616614
// Collator support. the order of these 5 are important and shall not change.
617-
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
615+
Authorship: pallet_authorship::{Pallet, Storage} = 20,
618616
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
619617
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
620618
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23,

cumulus/parachains/runtimes/assets/westmint/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ impl pallet_timestamp::Config for Runtime {
163163

164164
impl pallet_authorship::Config for Runtime {
165165
type FindAuthor = pallet_session::FindAccountFromAuthorIndex<Self, Aura>;
166-
type UncleGenerations = ConstU32<0>;
167-
type FilterUncle = ();
168166
type EventHandler = (CollatorSelection,);
169167
}
170168

@@ -624,7 +622,7 @@ construct_runtime!(
624622
AssetTxPayment: pallet_asset_tx_payment::{Pallet, Event<T>} = 12,
625623

626624
// Collator support. the order of these 5 are important and shall not change.
627-
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
625+
Authorship: pallet_authorship::{Pallet, Storage} = 20,
628626
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
629627
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
630628
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23,

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,6 @@ impl pallet_timestamp::Config for Runtime {
231231

232232
impl pallet_authorship::Config for Runtime {
233233
type FindAuthor = pallet_session::FindAccountFromAuthorIndex<Self, Aura>;
234-
type UncleGenerations = ConstU32<0>;
235-
type FilterUncle = ();
236234
type EventHandler = (CollatorSelection,);
237235
}
238236

@@ -407,7 +405,7 @@ construct_runtime!(
407405
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 11,
408406

409407
// Collator support. The order of these 4 are important and shall not change.
410-
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
408+
Authorship: pallet_authorship::{Pallet, Storage} = 20,
411409
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
412410
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
413411
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23,

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,6 @@ impl pallet_timestamp::Config for Runtime {
268268

269269
impl pallet_authorship::Config for Runtime {
270270
type FindAuthor = pallet_session::FindAccountFromAuthorIndex<Self, Aura>;
271-
type UncleGenerations = ConstU32<0>;
272-
type FilterUncle = ();
273271
type EventHandler = (CollatorSelection,);
274272
}
275273

@@ -435,7 +433,7 @@ construct_runtime!(
435433
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 11,
436434

437435
// Collator support. The order of these 4 are important and shall not change.
438-
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
436+
Authorship: pallet_authorship::{Pallet, Storage} = 20,
439437
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
440438
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
441439
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23,

cumulus/parachains/runtimes/collectives/collectives-polkadot/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ impl pallet_timestamp::Config for Runtime {
186186

187187
impl pallet_authorship::Config for Runtime {
188188
type FindAuthor = pallet_session::FindAccountFromAuthorIndex<Self, Aura>;
189-
type UncleGenerations = ConstU32<0>;
190-
type FilterUncle = ();
191189
type EventHandler = (CollatorSelection,);
192190
}
193191

@@ -505,7 +503,7 @@ construct_runtime!(
505503
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 11,
506504

507505
// Collator support. the order of these 5 are important and shall not change.
508-
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
506+
Authorship: pallet_authorship::{Pallet, Storage} = 20,
509507
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
510508
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
511509
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23,

cumulus/parachains/runtimes/contracts/contracts-rococo/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@ impl pallet_timestamp::Config for Runtime {
195195

196196
impl pallet_authorship::Config for Runtime {
197197
type FindAuthor = pallet_session::FindAccountFromAuthorIndex<Self, Aura>;
198-
type UncleGenerations = ConstU32<0>;
199-
type FilterUncle = ();
200198
type EventHandler = (CollatorSelection,);
201199
}
202200

@@ -343,7 +341,7 @@ construct_runtime!(
343341
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 11,
344342

345343
// Collator support. The order of these 5 are important and shall not change.
346-
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
344+
Authorship: pallet_authorship::{Pallet, Storage} = 20,
347345
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
348346
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
349347
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23,

cumulus/parachains/runtimes/testing/penpal/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,6 @@ impl pallet_timestamp::Config for Runtime {
337337

338338
impl pallet_authorship::Config for Runtime {
339339
type FindAuthor = pallet_session::FindAccountFromAuthorIndex<Self, Aura>;
340-
type UncleGenerations = ConstU32<0>;
341-
type FilterUncle = ();
342340
type EventHandler = (CollatorSelection,);
343341
}
344342

@@ -537,7 +535,7 @@ construct_runtime!(
537535
AssetTxPayment: pallet_asset_tx_payment::{Pallet, Event<T>} = 12,
538536

539537
// Collator support. The order of these 4 are important and shall not change.
540-
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
538+
Authorship: pallet_authorship::{Pallet, Storage} = 20,
541539
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
542540
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
543541
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23,

0 commit comments

Comments
 (0)