-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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 import/export for client, connection, channel states #5948
Comments
which are the types we need to import and export? |
All of the state in |
so if there are connections are channels open already should we keep them open or recreate the handshakes? |
ok so we should also write simulations for genesis state too |
If we end up doing upgrades at height |
AFAIK you can't export state or not depending on a condition of the importer chain |
I just mean "if we end up supporting those kinds of upgrades" (which are strictly better than our current kind of upgrade & so should replace them completely). As I understand this still requires changes in Tendermint. |
Ref #5935 which might block on this. |
kk, I'll start working on this. @cwgoes just to confirm, we should only export open connections and channels, right? I also assume all clients will need to be exported and then updated with the new chain ID on InitGenesis. |
@AdityaSripal suggested to not export frozen clients 👍 |
Hmm, I'm pretty sure we want to export everything - if we don't export a closed channel, for example, the identifier will be freed up, and previously sent packets could possibly be re-played. We don't yet have a particular mechanism for "recovering" closed channels safely (it will require governance intervention), but in the meantime I think it's safest to export/import the entire state. |
how? the timestamp would timeout, right? |
Possibly, but it depends on the timing of the export & the specific heights/timestamps involved. |
Then chains can be import-export upgraded & retain clients, connections, channels.
For light client verification to work, the import/export will have to retain the height (e.g. start at
n + 1
) and the chain ID.cc @fedekunze
The text was updated successfully, but these errors were encountered: