Skip to content

Commit

Permalink
fix: relayer start (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs authored Nov 28, 2024
1 parent 61e6815 commit 576574e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
6 changes: 1 addition & 5 deletions cmd/relayer/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ Consider using 'services' if you want to run a 'systemd' service instead.
)

fmt.Printf(
`💈 The relayer is running successfully on you local machine!
Channels:
RollApp: %s
<->
Hub: %s`,
"💈 The relayer is running successfully on you local machine!\nChannels:\nRollApp: %s\n<->\nHub: %s\n",
rly.DstChannel,
rly.SrcChannel,
)
Expand Down
30 changes: 15 additions & 15 deletions relayer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ import (
)

type RelayerFileChainConfig struct {
Type string `json:"type"`
Value RelayerFileChainConfigValue `json:"value"`
Type string `yaml:"type" json:"type"`
Value RelayerFileChainConfigValue `yaml:"value" json:"value"`
}

type RelayerFileChainConfigValue struct {
Key string `json:"key"`
ChainID string `json:"chain-id"`
RpcAddr string `json:"rpc-addr"`
ApiAddr string `json:"http-addr"`
AccountPrefix string `json:"account-prefix"`
KeyringBackend string `json:"keyring-backend"`
GasAdjustment float64 `json:"gas-adjustment"`
GasPrices string `json:"gas-prices"`
Debug bool `json:"debug"`
Timeout string `json:"timeout"`
OutputFormat string `json:"output-format"`
SignMode string `json:"sign-mode"`
ExtraCodecs []string `json:"extra-codecs"`
Key string `yaml:"key" json:"key"`
ChainID string `yaml:"chain-id" json:"chain-id"`
RpcAddr string `yaml:"rpc-addr" json:"rpc-addr"`
ApiAddr string `yaml:"http-addr" json:"http-addr"`
AccountPrefix string `yaml:"account-prefix" json:"account-prefix"`
KeyringBackend string `yaml:"keyring-backend" json:"keyring-backend"`
GasAdjustment float64 `yaml:"gas-adjustment" json:"gas-adjustment"`
GasPrices string `yaml:"gas-prices" json:"gas-prices"`
Debug bool `yaml:"debug" json:"debug"`
Timeout string `yaml:"timeout" json:"timeout"`
OutputFormat string `yaml:"output-format" json:"output-format"`
SignMode string `yaml:"sign-mode" json:"sign-mode"`
ExtraCodecs []string `yaml:"extra-codecs" json:"extra-codecs"`
}

type RelayerChainConfig struct {
Expand Down

0 comments on commit 576574e

Please sign in to comment.