redundant code removed, properties for casper-chain are included in chainspec
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
parent
d9db917f51
commit
9da5baf884
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user