Skip to content

Commit 45ecd69

Browse files
authored
chore: remove UpdateLocalhostClient func from 02-client (#6839)
1 parent e76a976 commit 45ecd69

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

modules/core/02-client/keeper/keeper.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,6 @@ func (k *Keeper) Route(clientID string) (exported.LightClientModule, bool) {
7676
return k.router.GetRoute(clientID)
7777
}
7878

79-
// UpdateLocalhostClient updates the 09-localhost client to the latest block height and chain ID.
80-
func (k *Keeper) UpdateLocalhostClient(ctx sdk.Context, clientState exported.ClientState) []exported.Height {
81-
clientModule, found := k.router.GetRoute(exported.LocalhostClientID)
82-
if !found {
83-
panic(errorsmod.Wrap(types.ErrRouteNotFound, exported.LocalhostClientID))
84-
}
85-
86-
return clientModule.UpdateState(ctx, exported.LocalhostClientID, nil)
87-
}
88-
8979
// SetConsensusHost sets a custom ConsensusHost for self client state and consensus state validation.
9080
func (k *Keeper) SetConsensusHost(consensusHost types.ConsensusHost) {
9181
if consensusHost == nil {

0 commit comments

Comments
 (0)