Skip to content

Commit

Permalink
Remove deadcode, fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsso committed May 15, 2024
1 parent f2413d7 commit 23a3761
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions runtimes/eden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,27 +511,6 @@ sp_api::impl_runtime_apis! {
}
}

struct CheckInherents;
impl cumulus_pallet_parachain_system::CheckInherents<Block> for CheckInherents {
fn check_inherents(
block: &Block,
relay_state_proof: &cumulus_pallet_parachain_system::RelayChainStateProof,
) -> sp_inherents::CheckInherentsResult {
let relay_chain_slot = relay_state_proof
.read_slot()
.expect("Could not read the relay chain slot from the proof");

let inherent_data = cumulus_primitives_timestamp::InherentDataProvider::from_relay_chain_slot_and_duration(
relay_chain_slot,
sp_std::time::Duration::from_secs(6),
)
.create_inherent_data()
.expect("Could not create the timestamp inherent data");

inherent_data.check_extrinsics(block)
}
}

cumulus_pallet_parachain_system::register_validate_block!(
Runtime = Runtime,
BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
Expand Down

0 comments on commit 23a3761

Please sign in to comment.