diff --git a/relayer/chains/archway/provider.go b/relayer/chains/archway/provider.go index 22e8b210c..5bffc7fa5 100644 --- a/relayer/chains/archway/provider.go +++ b/relayer/chains/archway/provider.go @@ -66,7 +66,7 @@ type ArchwayProviderConfig struct { IbcHandlerAddress string `json:"ibc-handler-address" yaml:"ibc-handler-address"` FirstRetryBlockAfter uint64 `json:"first-retry-block-after" yaml:"first-retry-block-after"` StartHeight uint64 `json:"start-height" yaml:"start-height"` - ChainBlockInterval uint64 `json:"block-interval" yaml:"block-interval"` + BlockInterval uint64 `json:"block-interval" yaml:"block-interval"` } type ArchwayIBCHeader struct { @@ -194,7 +194,7 @@ func (pp *ArchwayProviderConfig) Validate() error { return fmt.Errorf("Ibc handler contract cannot be empty") } - if pp.ChainBlockInterval == 0 { + if pp.BlockInterval == 0 { return fmt.Errorf("Block interval cannot be zero") } @@ -210,7 +210,7 @@ func (pp *ArchwayProviderConfig) BroadcastMode() provider.BroadcastMode { } func (pp *ArchwayProviderConfig) GetBlockInterval() uint64 { - return pp.ChainBlockInterval + return pp.BlockInterval } func (pp *ArchwayProviderConfig) GetFirstRetryBlockAfter() uint64 { diff --git a/relayer/chains/icon/provider.go b/relayer/chains/icon/provider.go index 9571810b2..d8b708474 100644 --- a/relayer/chains/icon/provider.go +++ b/relayer/chains/icon/provider.go @@ -62,7 +62,7 @@ type IconProviderConfig struct { IbcHandlerAddress string `json:"ibc-handler-address" yaml:"ibc-handler-address"` FirstRetryBlockAfter uint64 `json:"first-retry-block-after" yaml:"first-retry-block-after"` StartHeight uint64 `json:"start-height" yaml:"start-height"` - ChainBlockInterval uint64 `json:"block-interval" yaml:"block-interval"` + BlockInterval uint64 `json:"block-interval" yaml:"block-interval"` } func (pp *IconProviderConfig) Validate() error { @@ -74,7 +74,7 @@ func (pp *IconProviderConfig) Validate() error { return fmt.Errorf("Ibc handler Address cannot be empty") } - if pp.ChainBlockInterval == 0 { + if pp.BlockInterval == 0 { return fmt.Errorf("Block interval cannot be zero") } @@ -82,7 +82,7 @@ func (pp *IconProviderConfig) Validate() error { } func (pp *IconProviderConfig) GetBlockInterval() uint64 { - return pp.ChainBlockInterval + return pp.BlockInterval } func (pp *IconProviderConfig) GetFirstRetryBlockAfter() uint64 {