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

chore(node): move genesis to runtime #2155

Conversation

enddynayn
Copy link
Collaborator

@enddynayn enddynayn commented Sep 11, 2024

Removed the genesis builders for Paseo and Frequency, as these are now referenced directly from the generated spec file.

Consolidated Frequency-local and Frequency-no-relay into a single genesis_builder function for improved clarity and maintainability.

@enddynayn enddynayn marked this pull request as ready for review September 11, 2024 22:23
@enddynayn enddynayn marked this pull request as draft September 11, 2024 22:24
Copy link

codecov bot commented Sep 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Sep 12, 2024
@enddynayn enddynayn force-pushed the chore/move-paseo-genesis-config-to-runtime-issue-2150 branch from d4e057a to d579469 Compare September 12, 2024 15:47
@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Sep 12, 2024
@enddynayn enddynayn force-pushed the chore/move-paseo-genesis-config-to-runtime-issue-2150 branch from d579469 to b32768d Compare September 12, 2024 15:48
@enddynayn enddynayn changed the title Chore/move paseo genesis config to runtime issue 2150 chore(node): move genesis to runtime Sep 12, 2024
@enddynayn enddynayn marked this pull request as ready for review September 12, 2024 16:34
pub fn get_preset(id: &sp_genesis_builder::PresetId) -> Option<sp_std::vec::Vec<u8>> {
let genesis = match id.try_into() {
Ok("development") => development_genesis_config(),
Ok("paseo") => paseo_genesis_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.

Add flags here.


use sp_runtime::traits::AccountIdConversion;

pub mod frequency_mainnet_keys {
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 still need this file for benchmarking? If not we can delete

@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Sep 12, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is frequency-local

Copy link
Collaborator

Choose a reason for hiding this comment

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

Or make it "development-defaults"?

@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Sep 12, 2024
@enddynayn enddynayn force-pushed the chore/move-paseo-genesis-config-to-runtime-issue-2150 branch from 8a78ece to 5c3ee01 Compare September 13, 2024 00:27
Copy link
Collaborator

@JoeCap08055 JoeCap08055 left a comment

Choose a reason for hiding this comment

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

@enddynayn not sure what I'm supposed to be seeing, but I pulled & built this branch and I don't see the schemas that are supposed to be in the genesis block.

@enddynayn enddynayn force-pushed the chore/move-paseo-genesis-config-to-runtime-issue-2150 branch from 5c3ee01 to ddeda53 Compare September 27, 2024 14:48
@enddynayn enddynayn force-pushed the chore/mv-development-genesis-to-runtime-issue-2149 branch 2 times, most recently from 7e6423f to be72197 Compare September 27, 2024 16:14
@enddynayn enddynayn force-pushed the chore/move-paseo-genesis-config-to-runtime-issue-2150 branch from 87df7f8 to 8d8aec5 Compare September 27, 2024 16:17
@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Sep 30, 2024
@enddynayn enddynayn force-pushed the chore/move-paseo-genesis-config-to-runtime-issue-2150 branch from 34e80a4 to 217022c Compare September 30, 2024 14:21
@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Sep 30, 2024
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Sep 30, 2024
Move the Frequency and Paseo genesis configurations to the runtime.
Additionally, refactor the genesis builder for Paseo, Frequency,
and Development into a single genesis_builder function.
@enddynayn enddynayn force-pushed the chore/move-paseo-genesis-config-to-runtime-issue-2150 branch from 4186611 to d542bd1 Compare September 30, 2024 15:33
@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Sep 30, 2024
@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Sep 30, 2024
@enddynayn enddynayn merged commit d47f870 into chore/mv-development-genesis-to-runtime-issue-2149 Sep 30, 2024
27 checks passed
@enddynayn enddynayn deleted the chore/move-paseo-genesis-config-to-runtime-issue-2150 branch September 30, 2024 17:36
@enddynayn enddynayn restored the chore/move-paseo-genesis-config-to-runtime-issue-2150 branch September 30, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metadata-changed Metadata has changed since the latest full release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants