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

IBC client - evidence module route #5305

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
remove frozen comments from demo
  • Loading branch information
fedekunze committed Nov 13, 2019
commit e32f3048b38c8eac101eac012bc24f0b77f7c38f
29 changes: 17 additions & 12 deletions x/ibc/02-client/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ func (k Keeper) VerifyMembership(
path commitment.PathI,
value []byte,
) bool {
// XXX: commented out for demo
/*
if clientState.Frozen {
return false
}
*/
clientState, found := k.GetClientState(ctx, clientID)
if !found {
return false
}

if clientState.Frozen {
return false
}

root, found := k.GetVerifiedRoot(ctx, clientID, height)
if !found {
Expand All @@ -168,12 +170,15 @@ func (k Keeper) VerifyNonMembership(
proof commitment.ProofI,
path commitment.PathI,
) bool {
// XXX: commented out for demo
/*
if clientState.Frozen {
return false
}
*/
clientState, found := k.GetClientState(ctx, clientID)
if !found {
return false
}

if clientState.Frozen {
return false
}

root, found := k.GetVerifiedRoot(ctx, clientID, height)
if !found {
return false
Expand Down