-
Notifications
You must be signed in to change notification settings - Fork 19
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
chore(node): move genesis to runtime #2155
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ |
d4e057a
to
d579469
Compare
d579469
to
b32768d
Compare
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(), |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is frequency-local
There was a problem hiding this comment.
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"?
8a78ece
to
5c3ee01
Compare
There was a problem hiding this 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.
5c3ee01
to
ddeda53
Compare
7e6423f
to
be72197
Compare
87df7f8
to
8d8aec5
Compare
34e80a4
to
217022c
Compare
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.
4186611
to
d542bd1
Compare
d47f870
into
chore/mv-development-genesis-to-runtime-issue-2149
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.