Skip to content

Commit

Permalink
feat: add geth zero fee addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Nov 26, 2024
1 parent a6f22d0 commit eca7ead
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,17 @@ job "{{ job.name }}" {
task "contracts" {
driver = "exec"

{% if profile == 'testnet' %}
resources {
cpu = 4000
memory = 2048
}
{% elif profile == 'stressnet' or profile == 'stressnet-wl1' %}
resources {
cpu = 2000
memory = 1024
}
{% endif %}

{% for port_name in job.ports[0] %}
service {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,19 @@ job "{{ job.name }}" {
{% endif %}
{% endif %}

{%- raw %}
{{ with secret "secret/data/mev-commit" }}
GETH_ZERO_FEE_ADDRESSES="$(echo '{{ .Data.data.contract_deployer_keystore_filename }}' | awk -F'--' '{print "0x"$3}')"
{{ end }}
{{ with secret "secret/data/mev-commit" }}
GETH_ZERO_FEE_ADDRESSES+=",$(echo '{{ .Data.data.oracle_keystore_filename }}' | awk -F'--' '{print "0x"$3}')"
{{ end }}
{{ with secret "secret/data/mev-commit" }}
GETH_ZERO_FEE_ADDRESSES+=",$(echo '{{ .Data.data.bridge_relayer_keystore_filename }}' | awk -F'--' '{print "0x"$3}')"
{{ end }}
{% endraw %}

export GETH_ZERO_FEE_ADDRESSES
chmod +x local/mev-commit-geth local/entrypoint.sh
exec local/entrypoint.sh
EOH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,15 @@ job "{{ job.name }}" {
task "geth" {
driver = "exec"

{% if profile == 'stressnet' or profile == 'stressnet-wl1' %}
resources {
memory = 4096
}
{% else %}
resources {
memory = 1024
}
{% endif %}

{% for port_name in job.ports[0] %}
service {
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/nomad/playbooks/variables/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -726,13 +726,13 @@ profiles:
- *mev_commit_geth_signer_node1_job
- *mev_commit_geth_member_node_job
- *contracts_deployer_job
- *mev_commit_bridge_job
- *mev_commit_dashboard_job
- *mev_commit_bootnode1_job
- *mev_commit_provider_node1_job
- *mev_commit_provider_node1_funder_job
- *mev_commit_oracle_job
- *mev_commit_provider_emulator_node1_job
- *mev_commit_faucet_job
- *datadog_agent_metrics_collector_job

stressnet:
Expand Down

0 comments on commit eca7ead

Please sign in to comment.