-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix: downgrade goleveldb (sims after CometBFT switch) #14952
Conversation
@@ -207,4 +207,5 @@ replace ( | |||
// Fix upstream GHSA-h395-qcrw-5vmq vulnerability. | |||
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 | |||
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.8.1 | |||
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 |
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.
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.
Really good find!
It think we should add that disclaimer in the UPGRADING.md too.
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.
👏
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
This PR fixes two issues: - when running the chain in Docker the REST API was inaccessible - this was due to the default Cosmos app config (app.toml settings) specifying `localhost` in the new version instead of the previous version which specified `0.0.0.0` - when the REST API was accessible, all Msgs and queries threw a 500 internal server error response with the message: ``` failed to load state at height 123; version does not exist (latest height: 123) ``` where the height number was the current block number (which keeps increasing as the chain was still progressing) --- The solution to the "failed to load state" error was found by searching the error which lead to the issue and PR: - cosmos/cosmos-sdk#14949 - cosmos/cosmos-sdk#14952
Description
The package syndtr/goleveldb is known to have issues, I propose we pin it to the version we were previously using (which is also the same that go-ethereum uses, which might make it the most tested version).
Related: ethereum/go-ethereum#25413
Closes: #14949
Other usages of this package:
v1.0.1-0.20200815110645-5c35d600f0ca
v1.0.1-0.20210819022825-2ae1ddf74ef7
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