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

refactor: separate runtimes #52

Merged
merged 6 commits into from
Mar 27, 2024

Conversation

evilrobot-01
Copy link
Collaborator

Various minor improvements identified during review, along with one fix of a regression in functionality caused by the split.

Enum variants should be sentence-cased rather than capitalised.
Regression from main as result of runtime split
Devnet always used when resolved to default, so just uses devnet and removes the additional default variant.
Comment on lines -145 to -158
vec![
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_account_id_from_seed::<sr25519::Public>("Bob"),
get_account_id_from_seed::<sr25519::Public>("Charlie"),
get_account_id_from_seed::<sr25519::Public>("Dave"),
get_account_id_from_seed::<sr25519::Public>("Eve"),
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
get_account_id_from_seed::<sr25519::Public>("Alice//stash"),
get_account_id_from_seed::<sr25519::Public>("Bob//stash"),
get_account_id_from_seed::<sr25519::Public>("Charlie//stash"),
get_account_id_from_seed::<sr25519::Public>("Dave//stash"),
get_account_id_from_seed::<sr25519::Public>("Eve//stash"),
get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we really don't want to fund these for the development config ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I feel we are only going to find issues by working with it in the proper way from the beginning. I'd rather discover issues early and address them with time than discover them late, potentially once deployed. For example, what is the minimum requirement for collators to actually produce blocks, can we produce blocks without funding to have relay tokens transferred in etc. How do we bootstrap with some limited amount.

There is an additional PR from Peter to automate the onboarding, simulating how it will work in practice. I hope that this will be included in the binary and be triggered by a step in pop up so that we don't have to do anything - our tooling takes care of all of it.

A little additional work, but it proves that we are doing it the right way from the beginning, with the correct checks in place.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess that is fair.

@al3mart al3mart merged commit 6293ce8 into al3mart/feat-separate-runtimes Mar 27, 2024
5 checks passed
@al3mart al3mart deleted the frank/feat-separate-runtimes branch March 27, 2024 17:56
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.

4 participants