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

fix: downgrade goleveldb (sims after CometBFT switch) #14952

Merged
merged 5 commits into from
Feb 8, 2023

Conversation

facundomedica
Copy link
Member

@facundomedica facundomedica commented Feb 8, 2023

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...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

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...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@@ -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
Copy link
Member

Choose a reason for hiding this comment

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

@facundomedica facundomedica changed the title fix: sims after CometBFT switch fix: downgrade goleveldb (sims after CometBFT switch) Feb 8, 2023
@facundomedica facundomedica marked this pull request as ready for review February 8, 2023 13:12
@facundomedica facundomedica requested a review from a team as a code owner February 8, 2023 13:12
Copy link
Member

@julienrbrt julienrbrt left a 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.

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

👏

UPGRADING.md Show resolved Hide resolved
@facundomedica facundomedica enabled auto-merge (squash) February 8, 2023 18:10
@facundomedica facundomedica merged commit 0c35d7a into main Feb 8, 2023
@facundomedica facundomedica deleted the facu/fix-simapp branch February 8, 2023 18:46
tsenart pushed a commit to meka-dev/cosmos-sdk that referenced this pull request Apr 12, 2023
siburu added a commit to siburu/yui-relayer that referenced this pull request May 17, 2023
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
teddyknox pushed a commit to duality-labs/duality that referenced this pull request Jul 4, 2023
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
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.

Investigate simulation failing after migration to CometBFT
3 participants