Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add params to helm for relayer #757

Merged
merged 7 commits into from
Nov 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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