Skip to content

Commit

Permalink
chore: remove UpdateLocalhostClient func from 02-client (#6839)
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan authored Jul 16, 2024
1 parent e76a976 commit 45ecd69
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions modules/core/02-client/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@ func (k *Keeper) Route(clientID string) (exported.LightClientModule, bool) {
return k.router.GetRoute(clientID)
}

// UpdateLocalhostClient updates the 09-localhost client to the latest block height and chain ID.
func (k *Keeper) UpdateLocalhostClient(ctx sdk.Context, clientState exported.ClientState) []exported.Height {
clientModule, found := k.router.GetRoute(exported.LocalhostClientID)
if !found {
panic(errorsmod.Wrap(types.ErrRouteNotFound, exported.LocalhostClientID))
}

return clientModule.UpdateState(ctx, exported.LocalhostClientID, nil)
}

// SetConsensusHost sets a custom ConsensusHost for self client state and consensus state validation.
func (k *Keeper) SetConsensusHost(consensusHost types.ConsensusHost) {
if consensusHost == nil {
Expand Down

0 comments on commit 45ecd69

Please sign in to comment.