mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
remove unused code (#1920)
This commit is contained in:
@@ -59,7 +59,7 @@ use log::info;
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
use futures::Future;
|
||||
use substrate_telemetry::{telemetry, TelemetryEndpoints};
|
||||
use substrate_telemetry::TelemetryEndpoints;
|
||||
|
||||
const MAX_NODE_NAME_LENGTH: usize = 32;
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
impl_name: create_runtime_str!("substrate-node"),
|
||||
authoring_version: 10,
|
||||
spec_version: 31,
|
||||
impl_version: 32,
|
||||
impl_version: 33,
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
};
|
||||
|
||||
|
||||
BIN
Binary file not shown.
@@ -226,11 +226,6 @@ fn decl_store_extra_genesis(
|
||||
let typ = type_infos.typ;
|
||||
if let Some(builder) = opt_build {
|
||||
is_trait_needed = true;
|
||||
let error_message = format!(
|
||||
"Genesis parameters encoding of {} does not match the expected type ({:?}).",
|
||||
name,
|
||||
type_infos.value_type,
|
||||
);
|
||||
builders.extend(match type_infos.kind {
|
||||
DeclStorageTypeInfosKind::Simple => {
|
||||
quote!{{
|
||||
|
||||
@@ -193,7 +193,9 @@ impl From<RawLog<substrate_primitives::H256>> for primitives::testing::DigestIte
|
||||
}
|
||||
}
|
||||
|
||||
// Create a Hash with 69 for each byte
|
||||
// Create a Hash with 69 for each byte,
|
||||
// only used to build genesis config
|
||||
#[cfg(feature = "std")]
|
||||
fn hash69<T: AsMut<[u8]> + Default>() -> T {
|
||||
let mut h = T::default();
|
||||
h.as_mut().iter_mut().for_each(|byte| *byte = 69);
|
||||
|
||||
Reference in New Issue
Block a user