From 3ef2240ab2f657bd630f4bd52f037cf40d510ccb Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Tue, 4 May 2021 15:19:46 -0400 Subject: [PATCH] Bump Substrate to `b094edaf` (#958) * Bump Substrate to commit `b094edafd1cd5d26e49ecbf92b0ce7553cfad717` * Remove unsafe random seed method See: https://github.com/paritytech/substrate/pull/8718 * Update Subkey syntax See: https://github.com/paritytech/substrate/pull/8678 --- bin/millau/node/src/cli.rs | 2 +- bin/millau/runtime/src/lib.rs | 6 +----- bin/rialto/node/src/cli.rs | 2 +- bin/rialto/runtime/src/lib.rs | 6 +----- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/bin/millau/node/src/cli.rs b/bin/millau/node/src/cli.rs index 46323ed25c9..12f99b6b95b 100644 --- a/bin/millau/node/src/cli.rs +++ b/bin/millau/node/src/cli.rs @@ -63,7 +63,7 @@ pub enum Subcommand { Revert(sc_cli::RevertCmd), /// Inspect blocks or extrinsics. - Inspect(node_inspect::cli::InspectCmd), + Inspect(node_inspect::cli::InspectKeyCmd), /// Benchmark runtime pallets. Benchmark(frame_benchmarking_cli::BenchmarkCmd), diff --git a/bin/millau/runtime/src/lib.rs b/bin/millau/runtime/src/lib.rs index 7d25eb90c5e..4f5e0836320 100644 --- a/bin/millau/runtime/src/lib.rs +++ b/bin/millau/runtime/src/lib.rs @@ -55,7 +55,7 @@ use sp_version::RuntimeVersion; // A few exports that help ease life for downstream crates. pub use frame_support::{ construct_runtime, parameter_types, - traits::{Currency, ExistenceRequirement, Imbalance, KeyOwnerProofSystem, Randomness}, + traits::{Currency, ExistenceRequirement, Imbalance, KeyOwnerProofSystem}, weights::{constants::WEIGHT_PER_SECOND, DispatchClass, IdentityFee, RuntimeDbWeight, Weight}, StorageValue, }; @@ -477,10 +477,6 @@ impl_runtime_apis! { ) -> sp_inherents::CheckInherentsResult { data.check_extrinsics(&block) } - - fn random_seed() -> ::Hash { - RandomnessCollectiveFlip::random_seed().0 - } } impl frame_system_rpc_runtime_api::AccountNonceApi for Runtime { diff --git a/bin/rialto/node/src/cli.rs b/bin/rialto/node/src/cli.rs index 46323ed25c9..12f99b6b95b 100644 --- a/bin/rialto/node/src/cli.rs +++ b/bin/rialto/node/src/cli.rs @@ -63,7 +63,7 @@ pub enum Subcommand { Revert(sc_cli::RevertCmd), /// Inspect blocks or extrinsics. - Inspect(node_inspect::cli::InspectCmd), + Inspect(node_inspect::cli::InspectKeyCmd), /// Benchmark runtime pallets. Benchmark(frame_benchmarking_cli::BenchmarkCmd), diff --git a/bin/rialto/runtime/src/lib.rs b/bin/rialto/runtime/src/lib.rs index a0627441080..5259a10493a 100644 --- a/bin/rialto/runtime/src/lib.rs +++ b/bin/rialto/runtime/src/lib.rs @@ -61,7 +61,7 @@ use sp_version::RuntimeVersion; // A few exports that help ease life for downstream crates. pub use frame_support::{ construct_runtime, parameter_types, - traits::{Currency, ExistenceRequirement, Imbalance, KeyOwnerProofSystem, Randomness}, + traits::{Currency, ExistenceRequirement, Imbalance, KeyOwnerProofSystem}, weights::{constants::WEIGHT_PER_SECOND, DispatchClass, IdentityFee, RuntimeDbWeight, Weight}, StorageValue, }; @@ -587,10 +587,6 @@ impl_runtime_apis! { ) -> sp_inherents::CheckInherentsResult { data.check_extrinsics(&block) } - - fn random_seed() -> ::Hash { - RandomnessCollectiveFlip::random_seed().0 - } } impl frame_system_rpc_runtime_api::AccountNonceApi for Runtime {