Compare commits

..

2 Commits

Author SHA1 Message Date
d5ffe99c55
remove unused comment
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2024-10-04 13:35:31 +03:00
9da5baf884
redundant code removed, properties for casper-chain are included in chainspec
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2024-10-03 16:44:00 +03:00
2 changed files with 3 additions and 14 deletions

View File

@ -28,7 +28,6 @@ use frame_support::{
#[cfg(feature = "runtime-benchmarks")]
use runtime_common::benchmarking::BenchmarkTreasuryHelper;
// #[cfg(not(feature = "runtime-benchmarks"))]
use frame_support::traits::tokens::pay::PayFromAccount;
use pallet_transaction_payment::FungibleAdapter;

View File

@ -61,19 +61,6 @@ pub fn casper_config() -> Result<CasperChainSpec, String> {
CasperChainSpec::from_json_bytes(&include_bytes!("../chain-specs/casper.json")[..])
}
// #[derive(Encode, Clone)]
// struct PreparedNetworkData {
// chain_name: Vec<u8>,
// default_endpoint: Vec<u8>,
// finality_delay: Option<u64>,
// release_delay: Option<u64>,
// network_type: u8,
// gatekeeper: Vec<u8>,
// topic_name: Vec<u8>,
// 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<CasperChainSpec, String> {
.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<CasperChainSpec, String> {
.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<CasperChainSpec, String> {
.expect("Casper Staging telemetry url is valid; qed"),
)
.with_protocol_id(DEFAULT_PROTOCOL_ID)
.with_properties(casper_chain_spec_properties())
.build())
}