File tree 2 files changed +7
-0
lines changed
light-clients/07-tendermint
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 60
60
61
61
// ErrNotFound defines an error when requested entity doesn't exist in the state.
62
62
ErrNotFound = errorsmod .Register (codespace , 16 , "not found" )
63
+
64
+ // ErrClientStatusNotActive defines an error when an operation expects a client to be active
65
+ ErrClientStatusNotActive = errorsmod .Register (codespace , 17 , "client is not active" )
63
66
)
Original file line number Diff line number Diff line change @@ -219,6 +219,10 @@ func (cs ClientState) VerifyMembership(
219
219
path exported.Path ,
220
220
value []byte ,
221
221
) error {
222
+ if cs .Status (ctx , clientStore , cdc ) == exported .Expired {
223
+ return errorsmod .Wrapf (ibcerrors .ErrClientStatusNotActive , "client status is not active" )
224
+ }
225
+
222
226
if cs .GetLatestHeight ().LT (height ) {
223
227
return errorsmod .Wrapf (
224
228
ibcerrors .ErrInvalidHeight ,
You can’t perform that action at this time.
0 commit comments