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

add initial details about theta testnet #301

Merged
merged 23 commits into from
Mar 10, 2022

Conversation

uditvira
Copy link
Contributor

No description provided.

@okwme
Copy link
Contributor

okwme commented Mar 2, 2022

still needs public endpoints recorded here

@okwme
Copy link
Contributor

okwme commented Mar 2, 2022

theta testnet repo needs:

  • local test instructions
  • public test instructions

where do devnet instructions go?

v7-theta/README.md Outdated Show resolved Hide resolved
v7-theta/README.md Outdated Show resolved Hide resolved
v7-theta/README.md Show resolved Hide resolved
v7-theta/README.md Outdated Show resolved Hide resolved
uditvira and others added 3 commits March 4, 2022 12:08
Co-authored-by: yaruwangway <69694322+yaruwangway@users.noreply.github.com>
Co-authored-by: yaruwangway <69694322+yaruwangway@users.noreply.github.com>
@uditvira
Copy link
Contributor Author

uditvira commented Mar 7, 2022

Posted in slack but adding for visibility. When I try to do a software upgrade using the theta-prepare branch with an exported and modified genesis state, I'm currently getting the following errors:

Mar 04 17:19:29 local-testnet-test cosmovisor[25898]: 5:19PM INF start to run module migrations...
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]: 5:19PM INF minted coins from module account amount=20421409uatom from=mint module=x/bank
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]: 5:19PM INF executed block height=9035850 module=consensus num_invalid_txs=0 num_valid_txs=0
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]: panic: cannot delete latest saved version (1)
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]: goroutine 1 [running]:
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]: github.com/cosmos/cosmos-sdk/store/rootmulti.(*Store).pruneStores(0xc00012a580)
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]:         github.com/cosmos/cosmos-sdk@v0.45.1/store/rootmulti/store.go:430 +0x1b6
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]: github.com/cosmos/cosmos-sdk/store/rootmulti.(*Store).Commit(0xc00012a580)
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]:         github.com/cosmos/cosmos-sdk@v0.45.1/store/rootmulti/store.go:404 +0x175
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]: github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).Commit(0xc00130a340)
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]:         github.com/cosmos/cosmos-sdk@v0.45.1/baseapp/abci.go:308 +0x231
Mar 04 17:19:29 local-testnet-test cosmovisor[25898]: github.com/tendermint/tendermint/abci/client.(*localClient).CommitSync(0xc0010a2720)

@uditvira
Copy link
Contributor Author

uditvira commented Mar 7, 2022

panic: cannot delete latest saved version (1)

Ok regarding my last message, I've isolated this error to pruning. If I set pruning = "nothing" in my app.toml file, I no longer see any failures.

Testing with or without cosmovisor makes no difference.

Anyone have thoughts about why this could be happening @yaruwangway @okwme?

@dasanchez
Copy link
Contributor

I have some more data after attempting the upgrade on two local testnets:

  1. Using a modified genesis file (from the Hypha testnet repo)
    The upgrade went through OK at block height 9035025, but when it reached 9035030 I got this error:
    Mar 07 20:00:07 dante-local-theta-upgrade cosmovisor[39794]: 8:00PM ERR CONSENSUS FAILURE!!! err="cannot delete latest saved version (6)" module=consensus stack="goroutine 165 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x65\ngit.luolix.top/tendermint/tendermint/consensus
    The full log can be found here.

  2. Using a "fresh" genesis file
    I only modified the voting parameters in genesis.json to make the upgrade process easier.
    The upgrade went through OK at block height 50 and has gone past 750 now.
    The steps I followed can be found here.

So far, it seems like the pruning fails on an upgrade when we have some non-zero block height.

@yaruwangway
Copy link
Contributor

panic: cannot delete latest saved version (1)

Ok regarding my last message, I've isolated this error to pruning. If I set pruning = "nothing" in my app.toml file, I no longer see any failures.

Testing with or without cosmovisor makes no difference.

Anyone have thoughts about why this could be happening @yaruwangway @okwme?

hi, theta upgrade only has one new module, ica, so i removed ica, then there is no panic at and after upgrade.

@yaruwangway
Copy link
Contributor

i reported in ibc repo cosmos/ibc-go#1088

@dasanchez
Copy link
Contributor

I tested the upgrade on a local testnet again:

  • using this commit from theta-prepare
  • modified genesis file (block height starts at 9034670)

The upgrade succeeded, and there is no panic 200 blocks later.
I posted the log here.

@uditvira uditvira merged commit 3ecbf20 into cosmos:master Mar 10, 2022
@dasanchez dasanchez deleted the add-theta-testnet branch July 25, 2023 14:52
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.

5 participants