Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to use ChainSpec::from_genesis to unblock CI #1513

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions standalone/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ fn development_config_genesis() -> RuntimeGenesisConfig {
}

/// Development config (single validator Alice)
#[allow(deprecated)]
pub fn development_config() -> ChainSpec {
ChainSpec::from_genesis(
"Phala Development",
Expand All @@ -184,6 +185,7 @@ pub fn development_config() -> ChainSpec {
}

/// Development config (single validator Alice, custom block duration)
#[allow(deprecated)]
pub fn development_config_custom_block_duration(bd: u64) -> ChainSpec {
ChainSpec::from_genesis(
"Phala Development",
Expand All @@ -204,6 +206,7 @@ pub fn development_config_custom_block_duration(bd: u64) -> ChainSpec {
}

/// Local testnet config (multivalidator Alice + Bob)
#[allow(deprecated)]
pub fn local_config() -> ChainSpec {
let properties = {
let mut p = Properties::new();
Expand Down Expand Up @@ -247,6 +250,7 @@ pub fn testnet_config() -> Result<ChainSpec, String> {
ChainSpec::from_json_bytes(&include_bytes!("../res/phala_testnet.json")[..])
}

#[allow(deprecated)]
pub fn testnet_local_config() -> ChainSpec {
let boot_nodes = vec![];
let protocol_id: &str = "phat";
Expand Down Expand Up @@ -527,6 +531,7 @@ pub(crate) mod tests {
}

/// Local testnet config (single validator - Alice)
#[allow(deprecated)]
pub fn integration_test_config_with_single_authority() -> ChainSpec {
ChainSpec::from_genesis(
"Integration Test",
Expand All @@ -547,6 +552,7 @@ pub(crate) mod tests {
}

/// Local testnet config (multivalidator Alice + Bob)
#[allow(deprecated)]
pub fn integration_test_config_with_two_authorities() -> ChainSpec {
ChainSpec::from_genesis(
"Integration Test",
Expand Down
Loading