Skip to content

Commit

Permalink
Merge pull request #19 from Cerebellum-Network/fix/dev-flag
Browse files Browse the repository at this point in the history
Variant identifier for chain_spec is fixed
  • Loading branch information
yahortsaryk authored May 17, 2023
2 parents 9040259 + eb45e2e commit 977e8d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,10 @@ impl IdentifyVariant for Box<dyn sc_service::ChainSpec> {
self.id().starts_with("cere_mainnet") || self.id().starts_with("cere_qanet") || self.id().starts_with("cere_testnet")
}
fn is_cere_dev(&self) -> bool {
self.id().starts_with("cere_devnet")
// Works for "cere-devnet" and "dev" arms in the load_spec(...) call.
// If you are specifying a customSpecRaw.json for "path" arm along with the "--force-cere-dev" flag,
// make sure your spec has a compatible "id" field to satisfy this condition
self.id().starts_with("cere_dev")
}
}

Expand Down

0 comments on commit 977e8d3

Please sign in to comment.