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 in-place and genesis migrations #205

Merged
merged 27 commits into from
Jun 17, 2021
Merged

Commits on May 31, 2021

  1. add in-place migrations

    Prunes solomachines and expired tendermint consensus states via an x/upgrade
    colin-axner committed May 31, 2021
    Configuration menu
    Copy the full SHA
    4f874d9 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2021

  1. update migrations

    fix iteration bug
    remove solo machine connections
    remove solo machine channels
    colin-axner committed Jun 2, 2021
    Configuration menu
    Copy the full SHA
    f8ca013 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2021

  1. 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
    colin-axner committed Jun 7, 2021
    Configuration menu
    Copy the full SHA
    29c1c48 View commit details
    Browse the repository at this point in the history
  2. fix build

    colin-axner committed Jun 7, 2021
    Configuration menu
    Copy the full SHA
    db0db21 View commit details
    Browse the repository at this point in the history
  3. add genesis migration

    colin-axner committed Jun 7, 2021
    Configuration menu
    Copy the full SHA
    972ca3c View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2021

  1. code cleanup

    colin-axner committed Jun 8, 2021
    Configuration menu
    Copy the full SHA
    314aaba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40a30fa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    863fdbd View commit details
    Browse the repository at this point in the history
  4. Merge branch 'colin/11-migration-scripts' of github.com:cosmos/ibc-go…

    … into colin/11-migration-scripts
    colin-axner committed Jun 8, 2021
    Configuration menu
    Copy the full SHA
    a36801f View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2021

  1. Configuration menu
    Copy the full SHA
    863b50a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    545056e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    40484bb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a24618d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6d9bcdd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6c6fc52 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a67102f View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2021

  1. Configuration menu
    Copy the full SHA
    7e1f40f View commit details
    Browse the repository at this point in the history
  2. Merge branch 'colin/11-migration-scripts' of github.com:cosmos/ibc-go…

    … into colin/11-migration-scripts
    colin-axner committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    3896a2a View commit details
    Browse the repository at this point in the history
  3. fix tests

    colin-axner committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    7edac1e View commit details
    Browse the repository at this point in the history
  4. 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.
    colin-axner committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    e326f74 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a970700 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2021

  1. Configuration menu
    Copy the full SHA
    7ceca61 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'colin/11-migration-scripts' of github.com:cosmos/ibc-go…

    … into colin/11-migration-scripts
    colin-axner committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    ca070bd View commit details
    Browse the repository at this point in the history
  3. fix docs

    colin-axner committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    0fcd0c4 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2021

  1. 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
    colin-axner committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    900b907 View commit details
    Browse the repository at this point in the history
  2. remove unnecessary code

    colin-axner committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    fed9443 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2021

  1. 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
    colin-axner committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    e595b11 View commit details
    Browse the repository at this point in the history