Skip to content
Snippets Groups Projects

Refactor node implementation

Merged Benjamin Gallois requested to merge 216-refactor-node into master
1 file
+ 0
21
Compare changes
  • Side-by-side
  • Inline
+ 0
21
@@ -102,27 +102,6 @@ pub enum RuntimeType {
GTest,
}
/*/// Can be called for a `Configuration` to check if it is a configuration for
/// a particular runtime type.
pub trait IdentifyRuntimeType {
/// Returns the runtime type
fn runtime_type(&self) -> RuntimeType;
}*/
/*impl IdentifyRuntimeType for Box<dyn sc_chain_spec::ChainSpec> {
fn runtime_type(&self) -> RuntimeType {
if self.id().starts_with("g1") {
RuntimeType::G1
} else if self.id().starts_with("dev") || self.id().starts_with("gdev") {
RuntimeType::GDev
} else if self.id().starts_with("gtest") {
RuntimeType::GTest
} else {
panic!("unknown runtime")
}
}
}*/
/// Builds a new object suitable for chain operations.
#[allow(clippy::type_complexity)]
pub fn new_chain_ops(
Loading