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

Write genesis into config file when init network #2059

Conversation

buddh0
Copy link
Collaborator

@buddh0 buddh0 commented Dec 12, 2023

Description

Write genesis into config file when init network

Rationale

when we use the cmd init-network to set up a cluster
genesis will not be written into config.toml any more from #1839

it indeed make the config.toml file much more succinct,
but we could not configure hardfork blocks or times in config.toml any more

we don't always can set hardforks in genesis.json, for example:
a cluster have set hertz hardfork is running, then new version of bsc including shanghai hardfork released.
then the cluster may need to upgrade to the latest version and enable shanghai
the only way is to configure shanghaiTime in the config.toml

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@buddh0 buddh0 changed the title Write genesis into config file init network Write genesis into config file when init network Dec 12, 2023
@buddh0 buddh0 force-pushed the write_genesis_into_config_file_initNetwork branch from f242880 to 31226f8 Compare December 12, 2023 09:42
zlacfzy
zlacfzy previously approved these changes Dec 12, 2023
@buddh0 buddh0 marked this pull request as draft December 13, 2023 02:32
@buddh0 buddh0 closed this Dec 13, 2023
@buddh0 buddh0 deleted the write_genesis_into_config_file_initNetwork branch December 22, 2023 07:48
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.

2 participants