runtime: remove random_seed from BlockBuilder API (#2968)

* runtime: remove random_seed from BlockBuilder API

* update Substrate

* runtime: remove unused imports

* revert Cargo.lock version 3 removal, update sp-io

Co-authored-by: parity-processbot <>
Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
André Silva
2021-05-04 12:01:33 +01:00
committed by GitHub
parent bbf0812994
commit c6df9fcb11
6 changed files with 153 additions and 173 deletions
+1 -5
View File
@@ -82,7 +82,7 @@ use sp_core::OpaqueMetadata;
use sp_staking::SessionIndex;
use frame_support::{
parameter_types, construct_runtime, RuntimeDebug,
traits::{KeyOwnerProofSystem, Randomness, Filter, InstanceFilter, All},
traits::{KeyOwnerProofSystem, Filter, InstanceFilter, All},
weights::Weight,
};
use pallet_im_online::sr25519::AuthorityId as ImOnlineId;
@@ -1061,10 +1061,6 @@ sp_api::impl_runtime_apis! {
) -> inherents::CheckInherentsResult {
data.check_extrinsics(&block)
}
fn random_seed() -> <Block as BlockT>::Hash {
pallet_babe::RandomnessFromOneEpochAgo::<Runtime>::random_seed().0
}
}
impl tx_pool_api::runtime_api::TaggedTransactionQueue<Block> for Runtime {