-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
ibc/02-client: import export GenesisState #6073
Conversation
x/ibc/02-client/genesis.go
Outdated
for _, cs := range gs.ClientsConsensus { | ||
for _, consState := range cs.ConsensusStates { | ||
// TODO: double-check if the consState will be invalidated on import at 0 height. | ||
k.SetClientConsensusState(ctx, cs.ClientID, consState.GetHeight(), consState) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cwgoes @AdityaSripal what happens in the case of a zero height export? should I just set one consensus state (the one w/ latest height) at height 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a client of another chain, why would we change the logic on a zero-height export?
In any case, we should stop doing zero-height exports anyways once IBC is operational.
Codecov Report
@@ Coverage Diff @@
## master #6073 +/- ##
==========================================
+ Coverage 54.43% 54.60% +0.16%
==========================================
Files 431 435 +4
Lines 26156 26284 +128
==========================================
+ Hits 14239 14352 +113
- Misses 10930 10940 +10
- Partials 987 992 +5 |
…import-export-ibc-pt-2
@@ -33,10 +33,10 @@ func defaultIdentifierValidator(id string, min, max int) error { | |||
} | |||
|
|||
// DefaultClientIdentifierValidator is the default validator function for Client identifiers | |||
// A valid Identifier must be between 10-20 characters and only contain lowercase | |||
// A valid Identifier must be between 9-20 characters and only contain lowercase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to change this because "localhost" has len 9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
…cosmos-sdk into fedekunze/import-export-ibc-pt-2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
ref: #5948
Description
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)