-
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
Investigate simulation failing after migration to CometBFT #14949
Labels
Comments
19 tasks
dib542
added a commit
to duality-labs/duality
that referenced
this issue
Jul 4, 2023
teddyknox
pushed a commit
to duality-labs/duality
that referenced
this issue
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
This was referenced Apr 22, 2024
mikluke
added a commit
to scorum/cosmos-network
that referenced
this issue
Jun 10, 2024
mikluke
added a commit
to scorum/cosmos-network
that referenced
this issue
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The migration to CometBFT has happened in the following PRs, in this following order:
store
andapi
to CometBFT #14899 (only import change in api and store)The SDK upgraded from Tendermint v0.37.0-rc2 to CometBFT v0.37.x branch, which contains the following changes: cometbft/cometbft@059798a...v0.37.x
Giving the following error
When running
go test . -run TestFullAppSimulation -Enabled=true -NumBlocks=50 -Genesis= -Verbose=true -Commit=true -Seed=4 -Period=10 -ExportParamsPath /tmp/sim-logs-2102746239/sim_params-4.json -ExportStatePath /tmp/sim-logs-2102746239/sim_state-4.json -v -timeout 24h
.Error: rpc error: code = InvalidArgument desc = failed to load state at height 1; version does not exist (latest height: 1): invalid request
at any height.Updating the store (https://github.com/cosmos/cosmos-sdk/blob/main/store/rootmulti/store.go#L518-L521) to display the error shows the following:
Display error in store
Errors shows
With that changes, only these modules do not work, and the rest of SimApp works just fine.
As the migration has been done in steps, and the import changes needed to happen at the same time (like for gogoproto. I don't think reverting adds any value.
The text was updated successfully, but these errors were encountered: