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

core: LoadChainConfig return the predefined config for built-in networks firstly #2078

Merged
merged 4 commits into from
Dec 18, 2023

Conversation

buddh0
Copy link
Collaborator

@buddh0 buddh0 commented Dec 18, 2023

Description

core: LoadChainConfig return the predefined config for built-in networks firstly

Rationale

  1. for the built-in networks, the predefined config is the standard
    and they should not be configured in the config.toml
    so return the predefined config
  2. furtherly, for local test or private network, can use geth init to upgrade the chain config,
    so we just stop supporting read chain config from the config.toml.
    by doing this, logic about chain config can be simplified.

Example

add an example CLI or API response...

Changes

Notable changes:

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

zzzckck
zzzckck previously approved these changes Dec 18, 2023
Copy link
Collaborator

@zzzckck zzzckck left a comment

Choose a reason for hiding this comment

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

LGTM

core/genesis.go Outdated Show resolved Hide resolved
params/config.go Outdated Show resolved Hide resolved
galaio
galaio previously approved these changes Dec 18, 2023
zzzckck
zzzckck previously approved these changes Dec 18, 2023
@buddh0 buddh0 dismissed stale reviews from zzzckck and galaio via 849d5a2 December 18, 2023 08:44
@buddh0 buddh0 merged commit e44de3a into bnb-chain:develop Dec 18, 2023
5 checks passed
@NathanBSC
Copy link
Contributor

#2071

@buddh0 buddh0 deleted the LoadChainConfig_builtin_net 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.

None yet

5 participants