@@ -371,14 +371,6 @@ impl frame_system::Config for Runtime {
371
371
type PostTransactions = ( ) ;
372
372
}
373
373
374
- impl pallet_aura:: Config for Runtime {
375
- type AuthorityId = AuraId ;
376
- type DisabledValidators = ( ) ;
377
- type MaxAuthorities = ConstU32 < 32 > ;
378
- type AllowMultipleBlocksPerSlot = ConstBool < false > ;
379
- type SlotDuration = pallet_aura:: MinimumPeriodTimesTwo < Runtime > ;
380
- }
381
-
382
374
parameter_types ! {
383
375
pub EpochDuration : u64 = prod_or_fast!(
384
376
EPOCH_DURATION_IN_SLOTS as u64 ,
@@ -1541,13 +1533,6 @@ impl pallet_subtensor::Config for Runtime {
1541
1533
1542
1534
use sp_runtime:: BoundedVec ;
1543
1535
1544
- pub struct AuraPalletIntrf ;
1545
- impl pallet_admin_utils:: AuraInterface < AuraId , ConstU32 < 32 > > for AuraPalletIntrf {
1546
- fn change_authorities ( new : BoundedVec < AuraId , ConstU32 < 32 > > ) {
1547
- Aura :: change_authorities ( new) ;
1548
- }
1549
- }
1550
-
1551
1536
pub struct GrandpaInterfaceImpl ;
1552
1537
impl pallet_admin_utils:: GrandpaInterface < Runtime > for GrandpaInterfaceImpl {
1553
1538
fn schedule_change (
@@ -1561,9 +1546,6 @@ impl pallet_admin_utils::GrandpaInterface<Runtime> for GrandpaInterfaceImpl {
1561
1546
1562
1547
impl pallet_admin_utils:: Config for Runtime {
1563
1548
type RuntimeEvent = RuntimeEvent ;
1564
- type AuthorityId = AuraId ;
1565
- type MaxAuthorities = ConstU32 < 32 > ;
1566
- type Aura = AuraPalletIntrf ;
1567
1549
type Grandpa = GrandpaInterfaceImpl ;
1568
1550
type Balance = Balance ;
1569
1551
type WeightInfo = pallet_admin_utils:: weights:: SubstrateWeight < Runtime > ;
@@ -1590,10 +1572,10 @@ impl<F: FindAuthor<u32>> FindAuthor<H160> for FindAuthorTruncated<F> {
1590
1572
I : ' a + IntoIterator < Item = ( ConsensusEngineId , & ' a [ u8 ] ) > ,
1591
1573
{
1592
1574
if let Some ( author_index) = F :: find_author ( digests) {
1593
- pallet_aura :: Authorities :: < Runtime > :: get ( )
1575
+ pallet_babe :: Authorities :: < Runtime > :: get ( )
1594
1576
. get ( author_index as usize )
1595
1577
. and_then ( |authority_id| {
1596
- let raw_vec = authority_id. to_raw_vec ( ) ;
1578
+ let raw_vec = authority_id. 0 . to_raw_vec ( ) ;
1597
1579
raw_vec. get ( 4 ..24 ) . map ( H160 :: from_slice)
1598
1580
} )
1599
1581
} else {
@@ -1672,7 +1654,7 @@ impl pallet_evm::Config for Runtime {
1672
1654
type Runner = pallet_evm:: runner:: stack:: Runner < Self > ;
1673
1655
type OnChargeTransaction = ( ) ;
1674
1656
type OnCreate = ( ) ;
1675
- type FindAuthor = FindAuthorTruncated < Aura > ;
1657
+ type FindAuthor = FindAuthorTruncated < Babe > ;
1676
1658
type GasLimitPovSizeRatio = GasLimitPovSizeRatio ;
1677
1659
type SuicideQuickClearLimit = SuicideQuickClearLimit ;
1678
1660
type Timestamp = Timestamp ;
@@ -1810,7 +1792,7 @@ construct_runtime!(
1810
1792
System : frame_system = 0 ,
1811
1793
RandomnessCollectiveFlip : pallet_insecure_randomness_collective_flip = 1 ,
1812
1794
Timestamp : pallet_timestamp = 2 ,
1813
- Aura : pallet_aura = 3 ,
1795
+ // Aura: pallet_aura = 3,
1814
1796
Grandpa : pallet_grandpa = 4 ,
1815
1797
Balances : pallet_balances = 5 ,
1816
1798
TransactionPayment : pallet_transaction_payment = 6 ,
@@ -2521,11 +2503,13 @@ impl_runtime_apis! {
2521
2503
2522
2504
impl sp_consensus_aura:: AuraApi <Block , AuraId > for Runtime {
2523
2505
fn slot_duration( ) -> sp_consensus_aura:: SlotDuration {
2524
- sp_consensus_aura:: SlotDuration :: from_millis( Aura :: slot_duration( ) )
2506
+ unimplemented!( )
2507
+ // sp_consensus_aura::SlotDuration::from_millis(Aura::slot_duration())
2525
2508
}
2526
2509
2527
2510
fn authorities( ) -> Vec <AuraId > {
2528
- pallet_aura:: Authorities :: <Runtime >:: get( ) . into_inner( )
2511
+ unimplemented!( )
2512
+ // pallet_aura::Authorities::<Runtime>::get().into_inner()
2529
2513
}
2530
2514
}
2531
2515
0 commit comments