Skip to content

Commit

Permalink
skip height bug workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Mar 29, 2023
1 parent c44661f commit 5da31b1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions relayer/chains/penumbra/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,6 @@ func (cc *PenumbraProvider) QueryTendermintProof(ctx context.Context, height int
height--
}

// TODO: fix this at the query layer?
if height == 0 {
height, _ = cc.QueryLatestHeight(ctx)
}

cc.log.Debug("Querying K/V", zap.String("ChainId", cc.ChainId()), zap.Int64("Height", height), zap.String("Key", string(key)))
req := abci.RequestQuery{
Path: "state/key",
Expand All @@ -204,7 +199,7 @@ func (cc *PenumbraProvider) QueryTendermintProof(ctx context.Context, height int
}

revision := clienttypes.ParseChainID(cc.PCfg.ChainID)
return res.Value, proofBz, clienttypes.NewHeight(revision, uint64(res.Height)), nil
return res.Value, proofBz, clienttypes.NewHeight(revision, uint64(res.Height)+1), nil
}

// QueryClientStateResponse retrieves the latest consensus state for a client in state at a given height
Expand Down

0 comments on commit 5da31b1

Please sign in to comment.