ClientState maintains a single field used to track the latest sequence of the state machine i.e. the height of the blockchain.
ClientState is instantiated in the InitGenesis handler of the 02-client submodule in core IBC.
It calls CreateLocalhostClient, declaring a new ClientState and initializing it with its own client prefixed store.
09-localhost entry from the allowed_clients list through governance.
Client updates
The latest height is updated periodically through the ABCIBeginBlock interface of the 02-client submodule in core IBC.
See BeginBlocker in abci.go.
UpdateState method of the ClientState .
It retrieves the current block height from the application context and sets the LatestHeight of the 09-localhost client.
ClientState is not updated through the 02-client interface leveraged by conventional IBC light clients.