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

feat: prepare RILT spec #582

Merged
merged 8 commits into from
Dec 13, 2023
Merged

feat: prepare RILT spec #582

merged 8 commits into from
Dec 13, 2023

Conversation

weichweich
Copy link
Contributor

fixes https://github.com/KILTprotocol/ticket/issues/2522

Metadata Diff to Develop Branch

Peregrine Diff
Spiritnet Diff

Checklist:

  • I have verified that the code works
    • No panics! (checked arithmetic ops, no indexing array[3] use get(3), ...)
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)
    • Either PR or Ticket to update the Docs
    • Link the PR/Ticket here

@weichweich weichweich requested review from Ad96el and ntn-x2 and removed request for Ad96el November 29, 2023 15:33
@@ -79,15 +79,15 @@ fn load_spec(id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, St
log::info!("The following runtime was chosen based on the spec id: {}", runtime);

match (id, runtime) {
("dev", _) => Ok(Box::new(chain_spec::peregrine::make_dev_spec()?)),
("dev", _) => Ok(Box::new(chain_spec::peregrine::get_chain_spec_dev()?)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess adding peregrine somewhere in the name of the function would make it less confusing.

Copy link
Member

@Ad96el Ad96el left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it not make more sense to have a file in the chain_spec folder for each runtime? From my point of view, it would make it cleaner and easier to follow. Just an idea.

@weichweich
Copy link
Contributor Author

for each runtime?

@Ad96el We have a file for each runtime. There are only two runtimes, Spiritnet and Peregrine. You probably mean for each runtime configuration. That would make sense.

@weichweich weichweich enabled auto-merge (squash) December 12, 2023 12:46
@Ad96el
Copy link
Member

Ad96el commented Dec 12, 2023

Ah yes, thank you for pointing that out.

@weichweich weichweich merged commit 0c9d4dc into develop Dec 13, 2023
2 checks passed
@weichweich weichweich deleted the aw-rilt-relaunch2 branch December 13, 2023 09:19
Ad96el pushed a commit that referenced this pull request Feb 7, 2024
Ad96el pushed a commit that referenced this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants