Skip to content

Commit

Permalink
add params to helm for relayer (#757)
Browse files Browse the repository at this point in the history
* add params to helm for relayer

* fix incorrect template formatting whitespaces

* fix indentation

* stringify numerical values in chart values.yml

* fix varname for listening contracts

* raise logging level when downloading logs
  • Loading branch information
Voxelot authored Nov 5, 2022
1 parent c2b63c2 commit ee90e4f
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
32 changes: 32 additions & 0 deletions deployment/charts/templates/fuel-core-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,38 @@ spec:
{{- end}}
- "--min-gas-price"
- "{{ .Values.app.min_gas_price }}"
{{- if .Values.app.relayer }}
- "--relayer"
- "{{ .Values.app.relayer }}"
{{- end }}
{{- if .Values.app.relayer_v2_listening_contracts }}
- "--relayer-v2-listening-contracts"
- "{{ .Values.app.relayer_v2_listening_contracts }}"
{{- end }}
{{- if .Values.app.relayer_da_finalization }}
- "--relayer-da-finalization"
- "{{ .Values.app.relayer_da_finalization }}"
{{- end }}
{{- if .Values.app.relayer_da_deploy_height }}
- "--relayer-da-deploy-height"
- "{{ .Values.app.relayer_da_deploy_height }}"
{{- end }}
{{- if .Values.app.relayer_log_page_size }}
- "--relayer-log-page-size"
- "{{ .Values.app.relayer_log_page_size }}"
{{- end }}
{{- if .Values.app.relayer_min_duration_s }}
- "--relayer-min-duration-s"
- "{{ .Values.app.relayer_min_duration_s }}"
{{- end }}
{{- if .Values.app.relayer_eth_sync_call_freq_s }}
- "--relayer-eth-sync-call-freq-s"
- "{{ .Values.app.relayer_eth_sync_call_freq_s }}"
{{- end }}
{{- if .Values.app.relayer_eth_sync_log_freq_s }}
- "--relayer-eth-sync-log-freq-s"
- "{{ .Values.app.relayer_eth_sync_log_freq_s }}"
{{- end }}
resources: {}
imagePullPolicy: {{ .Values.app.image.pullPolicy }}
ports:
Expand Down
8 changes: 8 additions & 0 deletions deployment/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ app:
utxo_validation: ${fuel_core_utxo_validation}
vm_backtrace: ${fuel_core_vm_backtrace}
min_gas_price: ${fuel_core_min_gas_price}
relayer: ${fuel_core_relayer}
relayer_v2_listening_contracts: ${fuel_core_relayer_v2_listening_contracts}
relayer_da_finalization: "${fuel_core_relayer_da_finalization}"
relayer_da_deploy_height: "${fuel_core_relayer_da_deploy_height}"
relayer_log_page_size: "${fuel_core_relayer_log_page_size}"
relayer_min_duration_s: "${fuel_core_relayer_min_duration_s}"
relayer_eth_sync_call_freq_s: "${fuel_core_relayer_eth_sync_call_freq_s}"
relayer_eth_sync_log_freq_s: "${fuel_core_relayer_eth_sync_log_freq_s}"
image:
repository: ${fuel_core_image_repository}
tag: ${fuel_core_image_tag}
Expand Down
2 changes: 1 addition & 1 deletion fuel-relayer/src/relayer/get_logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ where
.to_block(page.latest())
.address(ValueOrArray::Array(contracts));

tracing::debug!(
tracing::info!(
"Downloading logs for block range: {}..={}",
page.oldest(),
page.latest()
Expand Down
1 change: 0 additions & 1 deletion fuel-relayer/src/relayer/syncing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ pub async fn wait_if_eth_syncing<P>(
where
P: Middleware<Error = ProviderError> + 'static,
{
tracing::info!("Waiting for the Ethereum endpoint to finish syncing");
let mut start = tokio::time::Instant::now();
let mut loop_time = tokio::time::Instant::now();
while let SyncingStatus::IsSyncing {
Expand Down

0 comments on commit ee90e4f

Please sign in to comment.