-
Notifications
You must be signed in to change notification settings - Fork 5
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
Revert "fix(server): consensus failure while restart node with wrong chainId #201
Revert "fix(server): consensus failure while restart node with wrong chainId #201
Conversation
…`chainId` in genesis (cosmos#18920)" This reverts commit 67aee75.
I am curious, what's the reason of the revert in your fork? |
Because we are at the final stage of our new release, and I think parsing the cometbft config and opening the cometbft db in SDK seems hacky and error-prone. The original issue is not very so serious, and there's an easy workaround by setting the right genesis file or chain-id in config.
Because the items in chainID := cast.ToString(appOpts.Get(flags.FlagChainID)) It actually reads from both cmd flags and |
Hi @yihuang , there is no And like you said, there is no I understand it's messy to mix ComebFT config in the cosmos-sdk startup code, but CometBFT config was initialized here, without regard to the DBBackend config. I honestly think the best solution is to revert https://github.com/cosmos/cosmos-sdk/pull/18920/files entirely, which has already been done on |
it's just not in the |
we set in the top level of app.toml |
Interesting... I agree it's a workaround, but it's not documented anywhere. I still think the best solution is to revert the |
0f7197f
into
crypto-org-chain:release/v0.47.x
…
chainId
in genesis (cosmos#18920)"This reverts commit 67aee75.
Description
Closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change