Skip to content

Commit

Permalink
add TMHeader check for DepositTxCallback (#639)
Browse files Browse the repository at this point in the history
* add TMHeader check for DepositTx

* align with old logic
  • Loading branch information
hoangdv2429 authored Sep 22, 2023
1 parent a1f77f5 commit 3189a5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x/interchainstaking/keeper/callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,12 @@ func DepositTxCallback(k *Keeper, ctx sdk.Context, args []byte, query icqtypes.Q
return nil
}

// check client state validity
err = k.CheckTMHeaderForZone(ctx, &zone, res)
if err != nil {
return err
}

txn, err := txDecoder(k.cdc)(res.Proof.Data)
if err != nil {
return err
Expand Down

0 comments on commit 3189a5a

Please sign in to comment.