Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

runtime: remove random_seed from BlockBuilder API #2968

Merged
6 commits merged into from
May 4, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1364,10 +1364,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 {
Expand Down
4 changes: 0 additions & 4 deletions runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1103,10 +1103,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 {
Expand Down
4 changes: 0 additions & 4 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,10 +985,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 {
Expand Down
4 changes: 0 additions & 4 deletions runtime/test-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,6 @@ sp_api::impl_runtime_apis! {
) -> inherents::CheckInherentsResult {
data.check_extrinsics(&block)
}

fn random_seed() -> <Block as BlockT>::Hash {
RandomnessCollectiveFlip::random_seed().0
}
}

impl tx_pool_api::runtime_api::TaggedTransactionQueue<Block> for Runtime {
Expand Down
4 changes: 0 additions & 4 deletions runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1085,10 +1085,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 {
Expand Down