From e3a98f33bfb3bd0b0b1cbb13aa4c50d081383eea Mon Sep 17 00:00:00 2001 From: Hieu Vu <72878483+hieuvubk@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:47:46 +0700 Subject: [PATCH] no need app.toml config read --- server/v2/cometbft/commands.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/server/v2/cometbft/commands.go b/server/v2/cometbft/commands.go index 144d3baeb2a7..49be1c969adc 100644 --- a/server/v2/cometbft/commands.go +++ b/server/v2/cometbft/commands.go @@ -18,7 +18,6 @@ import ( "google.golang.org/protobuf/encoding/protojson" "sigs.k8s.io/yaml" - serverv2 "cosmossdk.io/server/v2" "cosmossdk.io/server/v2/cometbft/client/rpc" "github.com/cosmos/cosmos-sdk/client" @@ -29,21 +28,6 @@ import ( ) func rpcClient(cmd *cobra.Command) (rpc.CometRPC, error) { - v := client.GetViperFromCmd(cmd) - appTomlConfig := AppTomlConfig{} - if v != nil { - if err := serverv2.UnmarshalSubConfig(v, ServerName, &appTomlConfig); err != nil { - return nil, fmt.Errorf("failed to unmarshal config: %w", err) - } - } - if appTomlConfig.Standalone { - client, err := rpchttp.New(client.GetConfigFromCmd(cmd).RPC.ListenAddress) - if err != nil { - return nil, err - } - return client, nil - } - rpcURI, err := cmd.Flags().GetString(FlagNode) if err != nil { return nil, err