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

Separate Devnet and Mainnet #10

Closed
11 tasks done
peterwht opened this issue Jan 31, 2023 · 3 comments
Closed
11 tasks done

Separate Devnet and Mainnet #10

peterwht opened this issue Jan 31, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@peterwht
Copy link
Contributor

peterwht commented Jan 31, 2023

Most parachains will have separate runtimes for Devnet and Mainnet. This template should come prebuilt with this separation to reduce friction for new parachain teams.

  • Create new runtime folder devnet
    • Set spec_name for devnet
    • set impl_name for devnet
    • set Cargo.toml name for devnet
  • Create new runtime folder mainnet
    • Set spec_name for mainnet
    • set impl_name for mainnet
    • set Cargo.toml name for mainnet
  • Create new runtime folder common
  • Update command.rs and chain_spec.rs to include devnet and mainnet
  • Add RuntimeResolver to client to choose between devnet and mainnet
    - Watr-Protocol/watr@b285217
    - Watr-Protocol/watr@ce31560
@peterwht peterwht added the enhancement New feature or request label Jan 31, 2023
@stiiifff stiiifff added this to the EPT M2 milestone Feb 1, 2023
@weezy20 weezy20 self-assigned this Feb 6, 2023
@weezy20
Copy link
Contributor

weezy20 commented Feb 7, 2023

Is a #[cfg(feature)] gated solution out of the question? Has anyone tried it before? I am experimenting with it (having two runtimes as two crates) but I find some annoyances like both runtimes are being compiled even if I pass in feature flags to compile just one of them.

@weezy20
Copy link
Contributor

weezy20 commented Jun 6, 2023

Implemented in #30 #44

@stiiifff
Copy link
Contributor

Closed by #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants