-
Notifications
You must be signed in to change notification settings - Fork 68
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
Pruning not working on v3.3.1 #427
Comments
Related code in cosmos/iavl iavl/mutable_tree.go iavl/nodedb.go In this case iavl/nodedb.go is the issue.
Our panic says cannot delete latest saved version (190) which is misleading. The actual situation is the store we prune only has version 190 (why?) but we are trying to prune up to current height 4413380. Is getLatestVersion() correct? If we disable the error, we find that latest = 990, 1000, 1010 and so forth. This is probably why rollback is broken as well since the latest height is not the blockheight. Which store keeps heights that are not related to the current height? Pruning store: key=TransientStoreKey{0xc0012dad60, transient_params} Turns out it is icahost haunting us! |
Is there a chance that icahost is stuck on a low height and can't "jump" to the current height due to iavl version restrictions? Maybe when icahost was introduced, we were supposed to force (SetInitialVersion) the current height to avoid a mismatch? Currently icahost starts from height 0 probably even if the other store heights are much higher. Is it better to: |
The text was updated successfully, but these errors were encountered: