You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may not actually update the latest height, if the update came from an old height.
But in the _update_state, it tries to use client_state's latest_height to store the new consensus state -- which may not really correspond to the client latest height. So for an old update height, this overwrites the latest consensus state.
You may be able to reproduce this in your cairo unit tests -- by trying updating the client state at a lower height and then checking if the new consensus state at the update height exists and the latest consensus state hasn't changed.
The text was updated successfully, but these errors were encountered:
ibc-starknet/cairo-contracts/packages/clients/src/cometbft/component.cairo
Lines 334 to 356 in c1608b6
The above code tries to update a consensus state if not present. This tries to conditionally update the
client_state
's latest height hereibc-starknet/cairo-contracts/packages/clients/src/cometbft/component.cairo
Line 348 in c1608b6
This may not actually update the latest height, if the update came from an old height.
But in the
_update_state
, it tries to useclient_state
's latest_height to store the new consensus state -- which may not really correspond to the client latest height. So for an old update height, this overwrites the latest consensus state.ibc-starknet/cairo-contracts/packages/clients/src/cometbft/component.cairo
Lines 439 to 454 in b97e860
You may be able to reproduce this in your cairo unit tests -- by trying updating the client state at a lower height and then checking if the new consensus state at the update height exists and the latest consensus state hasn't changed.
The text was updated successfully, but these errors were encountered: