Compare commits
2 Commits
d9db917f51
...
d5ffe99c55
Author | SHA1 | Date | |
---|---|---|---|
d5ffe99c55 | |||
9da5baf884 |
@ -28,7 +28,6 @@ use frame_support::{
|
|||||||
|
|
||||||
#[cfg(feature = "runtime-benchmarks")]
|
#[cfg(feature = "runtime-benchmarks")]
|
||||||
use runtime_common::benchmarking::BenchmarkTreasuryHelper;
|
use runtime_common::benchmarking::BenchmarkTreasuryHelper;
|
||||||
// #[cfg(not(feature = "runtime-benchmarks"))]
|
|
||||||
use frame_support::traits::tokens::pay::PayFromAccount;
|
use frame_support::traits::tokens::pay::PayFromAccount;
|
||||||
|
|
||||||
use pallet_transaction_payment::FungibleAdapter;
|
use pallet_transaction_payment::FungibleAdapter;
|
||||||
|
@ -61,19 +61,6 @@ pub fn casper_config() -> Result<CasperChainSpec, String> {
|
|||||||
CasperChainSpec::from_json_bytes(&include_bytes!("../chain-specs/casper.json")[..])
|
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")]
|
#[cfg(feature = "casper-native")]
|
||||||
fn casper_session_keys(
|
fn casper_session_keys(
|
||||||
babe: BabeId,
|
babe: BabeId,
|
||||||
@ -477,6 +464,7 @@ pub fn casper_development_config() -> Result<CasperChainSpec, String> {
|
|||||||
.with_chain_type(ChainType::Development)
|
.with_chain_type(ChainType::Development)
|
||||||
.with_genesis_config_patch(casper_development_config_genesis())
|
.with_genesis_config_patch(casper_development_config_genesis())
|
||||||
.with_protocol_id(DEFAULT_PROTOCOL_ID)
|
.with_protocol_id(DEFAULT_PROTOCOL_ID)
|
||||||
|
.with_properties(casper_chain_spec_properties())
|
||||||
.build())
|
.build())
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -491,6 +479,7 @@ pub fn casper_local_testnet_config() -> Result<CasperChainSpec, String> {
|
|||||||
.with_chain_type(ChainType::Local)
|
.with_chain_type(ChainType::Local)
|
||||||
.with_genesis_config_patch(casper_local_config_genesis())
|
.with_genesis_config_patch(casper_local_config_genesis())
|
||||||
.with_protocol_id(DEFAULT_PROTOCOL_ID)
|
.with_protocol_id(DEFAULT_PROTOCOL_ID)
|
||||||
|
.with_properties(casper_chain_spec_properties())
|
||||||
.build())
|
.build())
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -509,5 +498,6 @@ pub fn casper_staging_testnet_config() -> Result<CasperChainSpec, String> {
|
|||||||
.expect("Casper Staging telemetry url is valid; qed"),
|
.expect("Casper Staging telemetry url is valid; qed"),
|
||||||
)
|
)
|
||||||
.with_protocol_id(DEFAULT_PROTOCOL_ID)
|
.with_protocol_id(DEFAULT_PROTOCOL_ID)
|
||||||
|
.with_properties(casper_chain_spec_properties())
|
||||||
.build())
|
.build())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user