Skip to content

Commit

Permalink
hotfix: fix hermes config for v1.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Jan 29, 2024
1 parent f14c108 commit f54b134
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions charts/devnet/templates/relayers/hermes/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ data:
clock_drift = "{{ $chainConfig.clock_drift | default "5s" }}"
max_block_time = "{{ $chainConfig.max_block_time | default "30s" }}"
trusting_period = "{{ $chainConfig.trusting_period | default "75s" }}"
client_refresh_rate = "{{ $chainConfig.client_refresh_rate | default "1/3" }}"
trust_threshold = "{{ $chainConfig.trust_threshold | default "2/3" }}"
trust_threshold = { numerator = "{{ ($chainConfig.trust_threshold | default dict).numerator | default "2" }}", denominator = "{{ ($chainConfig.trust_threshold | default dict).denominator | default "3" }}" }
{{- if eq $fullchain.type "evmos" }}
address_type = { derivation = 'ethermint', proto_type = { pk_type = '/ethermint.crypto.v1.ethsecp256k1.PubKey' } }
gas_price = { price = 2500000, denom = "{{ $fullchain.denom }}" }
Expand All @@ -136,7 +135,6 @@ data:
{{- else }}
address_type = { derivation = 'cosmos' }
gas_price = { price = 0.25, denom = "{{ $fullchain.denom }}" }
query_packets_chunk_size = {{ $chainConfig.query_packets_chunk_size | default 50 }}
{{- end }}
{{- end }}
# config-cli.toml is an additional config which is used for performing
Expand Down Expand Up @@ -191,6 +189,14 @@ data:
# Experimental feature. Affects telemetry if set to false.
# [Default: true]
tx_confirmation = {{ $relayer.config.mode.packets.tx_confirmation }}
# Auto register the counterparty payee on a destination chain to
# the relayer's address on the source chain. This can be used
# for simple configuration of the relayer to receive fees for
# relaying RecvPacket on fee-enabled channels.
# For more complex configuration, turn this off and use the CLI
# to manually register the payee addresses.
# [Default: false]
auto_register_counterparty_payee = false
# The REST section defines parameters for Hermes' built-in RESTful API.
# https://hermes.informal.systems/rest.html
[rest]
Expand Down Expand Up @@ -230,15 +236,13 @@ data:
{{- end }}
rpc_addr = "http://{{ $fullchain.hostname }}-genesis.{{ $.Release.Namespace }}.svc.cluster.local:26657"
grpc_addr = "http://{{ $fullchain.hostname }}-genesis.{{ $.Release.Namespace }}.svc.cluster.local:9090"
{{- if le (semver $tag | (semver "1.6.0").Compare) 0 }}
{{- if eq $relayer.config.event_source.mode "pull" }}
event_source = { mode = 'pull', interval = '{{get $relayer.config.event_source "interval" | default "500ms"}}' }
{{- else }}
event_source = { mode = 'push', url = "ws://{{ $fullchain.hostname }}-genesis.{{ $.Release.Namespace }}.svc.cluster.local:26657/websocket", batch_delay = '{{get $relayer.config.event_source "batch_delay" | default "500ms"}}' }
{{- end }}
{{- else }}
websocket_addr = "ws://{{ $fullchain.hostname }}-genesis.{{ $.Release.Namespace }}.svc.cluster.local:26657/websocket"
{{- end }}
# Experimental: Whether or not the full node is trusted.
trusted_node = false
account_prefix = "{{ $chainConfig.account_prefix | default $fullchain.prefix }}"
default_gas = {{ $chainConfig.default_gas | default 500000000 }}
max_gas = {{ $chainConfig.max_gas | default 1000000000 }}
Expand All @@ -250,7 +254,7 @@ data:
clock_drift = "{{ $chainConfig.clock_drift | default "5s" }}"
max_block_time = "{{ $chainConfig.max_block_time | default "30s" }}"
trusting_period = "{{ $chainConfig.trusting_period | default "75s" }}"
trust_threshold = { numerator = "{{ ($chainConfig.trust_threshold | default dict).numerator | default 1 }}", denominator = "{{ ($chainConfig.trust_threshold | default dict).denominator | default 3 }}" }
trust_threshold = { numerator = "{{ ($chainConfig.trust_threshold | default dict).numerator | default "2" }}", denominator = "{{ ($chainConfig.trust_threshold | default dict).denominator | default "3" }}" }
{{- if eq $fullchain.type "evmos" }}
address_type = { derivation = 'ethermint', proto_type = { pk_type = '/ethermint.crypto.v1.ethsecp256k1.PubKey' } }
gas_price = { price = 2500000, denom = "{{ $fullchain.denom }}" }
Expand Down

0 comments on commit f54b134

Please sign in to comment.