From 9da5baf88495a7570311e5c3c7bacebcf3b1815a Mon Sep 17 00:00:00 2001 From: Uncle Stinky Date: Thu, 3 Oct 2024 16:44:00 +0300 Subject: [PATCH] redundant code removed, properties for casper-chain are included in chainspec Signed-off-by: Uncle Stinky --- service/src/chain_spec.rs | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/service/src/chain_spec.rs b/service/src/chain_spec.rs index 8ba5981..6900d82 100755 --- a/service/src/chain_spec.rs +++ b/service/src/chain_spec.rs @@ -61,19 +61,6 @@ pub fn casper_config() -> Result { CasperChainSpec::from_json_bytes(&include_bytes!("../chain-specs/casper.json")[..]) } -// #[derive(Encode, Clone)] -// struct PreparedNetworkData { -// chain_name: Vec, -// default_endpoint: Vec, -// finality_delay: Option, -// release_delay: Option, -// network_type: u8, -// gatekeeper: Vec, -// topic_name: Vec, -// incoming_fee: u32, -// outgoing_fee: u32, -// } - #[cfg(feature = "casper-native")] fn casper_session_keys( babe: BabeId, @@ -477,6 +464,7 @@ pub fn casper_development_config() -> Result { .with_chain_type(ChainType::Development) .with_genesis_config_patch(casper_development_config_genesis()) .with_protocol_id(DEFAULT_PROTOCOL_ID) + .with_properties(casper_chain_spec_properties()) .build()) } @@ -491,6 +479,7 @@ pub fn casper_local_testnet_config() -> Result { .with_chain_type(ChainType::Local) .with_genesis_config_patch(casper_local_config_genesis()) .with_protocol_id(DEFAULT_PROTOCOL_ID) + .with_properties(casper_chain_spec_properties()) .build()) } @@ -509,5 +498,6 @@ pub fn casper_staging_testnet_config() -> Result { .expect("Casper Staging telemetry url is valid; qed"), ) .with_protocol_id(DEFAULT_PROTOCOL_ID) + .with_properties(casper_chain_spec_properties()) .build()) }