-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add in-place and genesis migrations (#205)
* add in-place migrations Prunes solomachines and expired tendermint consensus states via an x/upgrade * update migrations fix iteration bug remove solo machine connections remove solo machine channels * migrate solomachine from v1 to v2 during in place migration Regenerate v1 solo machine definition in 02-client legacy Migrate from v1 to v2 solo machine client state Prune v1 solo machine consensus states * fix build * add genesis migration * code cleanup * add store migration test for expired tendermint consensus states * finish adding in place migration store tests * add genesis test for solo machines * fix genesis migration bug, add tendermint tests * test fix, changelog, migration docs * Apply suggestions from code review * Update docs/migrations/ibc-migration-043.md * apply Aditya's review suggestions * fix tests * add genesis json unmarshal test Test that the legacy solo machines can be successfully unmarshalled. This requires registering an implementation for the legacy solo machine. An implemenation which panics has been added. This implementation should only be registered against a clientCtx during a migrate cli cmd. The implementation is only briefly used in order to decode the previous solo machine set in genesis. * add migration support for max expected time per block * fix docs * fix bug found by Aditya The genesis client metadata was being set independently for each unexpired height. It needed to be moved outside the unexpired for loop * remove unnecessary code * apply Aditya review suggestions, fix bug There was a bug in adding consensus metadata since it relied on the iteration key not yet set. This is fixed by using traditional iteration using the consensus state key, setting metadata for all consensus states, and then pruning expired consensus states. The store test has been updated to set create two tendermint clients Co-authored-by: Aditya <[email protected]>
- Loading branch information
1 parent
2548ab5
commit 2e95805
Showing
24 changed files
with
6,148 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.