File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -925,30 +925,9 @@ impl_runtime_apis! {
925925 }
926926}
927927
928- struct CheckInherents ;
929- impl cumulus_pallet_parachain_system:: CheckInherents < Block > for CheckInherents {
930- fn check_inherents (
931- block : & Block ,
932- relay_state_proof : & cumulus_pallet_parachain_system:: RelayChainStateProof ,
933- ) -> sp_inherents:: CheckInherentsResult {
934- let relay_chain_slot = relay_state_proof
935- . read_slot ( )
936- . expect ( "Could not read the relay chain slot from the proof" ) ;
937- let inherent_data =
938- cumulus_primitives_timestamp:: InherentDataProvider :: from_relay_chain_slot_and_duration (
939- relay_chain_slot,
940- sp_std:: time:: Duration :: from_secs ( 6 ) ,
941- )
942- . create_inherent_data ( )
943- . expect ( "Could not create the timestamp inherent data" ) ;
944- inherent_data. check_extrinsics ( block)
945- }
946- }
947-
948928cumulus_pallet_parachain_system:: register_validate_block! {
949929 Runtime = Runtime ,
950930 BlockExecutor = Executive ,
951- CheckInherents = CheckInherents
952931}
953932
954933parameter_types ! {
You can’t perform that action at this time.
0 commit comments