@@ -39,6 +39,7 @@ use frame_system::{
3939 limits:: { BlockLength , BlockWeights } ,
4040 EnsureRoot ,
4141} ;
42+ use sp_consensus_aura:: sr25519:: AuthorityId as AuraId ;
4243pub use marketplace;
4344pub use node_primitives:: { AccountId , Signature } ;
4445use node_primitives:: { AccountIndex , Balance , BlockNumber , Hash , Index , Moment } ;
@@ -108,14 +109,14 @@ pub fn wasm_binary_unwrap() -> &'static [u8] {
108109/// Runtime version.
109110#[ sp_version:: runtime_version]
110111pub const VERSION : RuntimeVersion = RuntimeVersion {
111- spec_name : create_runtime_str ! ( "realis " ) ,
112+ spec_name : create_runtime_str ! ( "node " ) ,
112113 impl_name : create_runtime_str ! ( "realis-node" ) ,
113114 authoring_version : 10 ,
114115 // Per convention: if the runtime behavior changes, increment spec_version
115116 // and set impl_version to 0. If only runtime
116117 // implementation changes and behavior does not, then leave spec_version as
117118 // is and increment impl_version.
118- spec_version : 293 ,
119+ spec_version : 294 ,
119120 impl_version : 4 ,
120121 apis : RUNTIME_API_VERSIONS ,
121122 transaction_version : 8 ,
@@ -333,6 +334,11 @@ impl pallet_scheduler::Config for Runtime {
333334 type WeightInfo = pallet_scheduler:: weights:: SubstrateWeight < Runtime > ;
334335}
335336
337+ impl pallet_aura:: Config for Runtime {
338+ type AuthorityId = AuraId ;
339+ type DisabledValidators = ( ) ;
340+ }
341+
336342parameter_types ! {
337343 // NOTE: Currently it is not possible to change the epoch duration after the chain has started.
338344 // Attempting to do so will brick block production.
@@ -527,7 +533,7 @@ parameter_types! {
527533 pub const SignedDepositByte : Balance = 1 * CENTS ;
528534
529535 // fallback: no on-chain fallback.
530- pub const Fallback : FallbackStrategy = FallbackStrategy :: OnChain ;
536+ pub const Fallback : FallbackStrategy = FallbackStrategy :: Nothing ;
531537
532538 pub SolutionImprovementThreshold : Perbill = Perbill :: from_rational( 1u32 , 10_000 ) ;
533539
@@ -1298,6 +1304,7 @@ construct_runtime!(
12981304 System : frame_system:: { Pallet , Call , Config , Storage , Event <T >} ,
12991305 Utility : pallet_utility:: { Pallet , Call , Event } ,
13001306 Babe : pallet_babe:: { Pallet , Call , Storage , Config , ValidateUnsigned } ,
1307+ Aura : pallet_aura:: { Pallet , Storage , Config <T >} ,
13011308 Timestamp : pallet_timestamp:: { Pallet , Call , Storage , Inherent } ,
13021309 Authorship : pallet_authorship:: { Pallet , Call , Storage , Inherent } ,
13031310 Indices : pallet_indices:: { Pallet , Call , Storage , Config <T >, Event <T >} ,
@@ -1475,6 +1482,16 @@ impl_runtime_apis! {
14751482 }
14761483 }
14771484
1485+ // impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
1486+ // fn slot_duration() -> sp_consensus_aura::SlotDuration {
1487+ // sp_consensus_aura::SlotDuration::from_millis(Aura::slot_duration())
1488+ // }
1489+ //
1490+ // fn authorities() -> Vec<AuraId> {
1491+ // Aura::authorities().into_inner()
1492+ // }
1493+ // }
1494+
14781495 impl fg_primitives:: GrandpaApi <Block > for Runtime {
14791496 fn grandpa_authorities( ) -> GrandpaAuthorityList {
14801497 Grandpa :: grandpa_authorities( )
0 commit comments