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

feat: updated infra privacy to support privacy set up #56

Merged
merged 13 commits into from
May 15, 2024
Merged

Conversation

Mikelle
Copy link
Member

@Mikelle Mikelle commented May 14, 2024

No description provided.

@Mikelle Mikelle requested review from mrekucci and aloknerurkar May 14, 2024 22:08
@Mikelle Mikelle self-assigned this May 14, 2024
@@ -7,6 +7,11 @@ server_common_name: "mev-commit_{{ env }}.mev-commit.primev.xyz"
tls_crt_file: "{{ certificates_dir }}/{{ server_common_name }}.crt"
tls_key_file: "{{ private_keys_dir }}/{{ server_common_name }}.key"
tls_ca_crt_file: "{{ ca_certificates_dir }}/ca-{{ server_common_name }}.crt"
preconf_contract_address: "0x2Aff805aBdF1Fe79AfcF8B3a9B4B45ECcD6b6D6e"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid introducing another place that these addresses are hardcoded, and use one or the other. See https://github.com/primevprotocol/monorepo/blob/main/contracts-abi/config/testnet.go

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @shaspitz

We should not hard-code the contract addresses for the testnet setup. We should have this mechanism for the devnet setup as we may deploy new set of contracts and they have to be tested. Not sure how to manage this with nomad though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got rid of hard-code addresses in nomad script

@Mikelle Mikelle requested a review from shaspitz May 15, 2024 12:39
@@ -174,7 +174,7 @@
- name: Deploy | Nomad jobs
ansible.builtin.shell: |
nomad run {{ ansible_env.HOME }}/{{ env }}/{{ job.name }}.nomad
[ "{{ job.name }}" = "deploy-contracts" ] && sleep 180 || true
[ "{{ job.name }}" = "deploy-contracts" ] && sleep 240 || true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why this sleep time needed to be increased?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

180s were not enough, but with 240s it's more reliable; contracts have enough time to be deployed with that timing.

@@ -86,10 +80,8 @@ job "{{ job.name }}" {
${EMULATOR_BINARY} \
-server-addr "${EMULATOR_IP_PORT}" \
{% if job.target_type == 'bidder' %}
-rpc-addr "${EMULATOR_SETTLEMENT_RPC_ENDPOINT}" \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the emulator was previously (incorrectly) querying the mev-commit chain instead of L1?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we found out this with Alok

@Mikelle Mikelle merged commit 4b374d9 into main May 15, 2024
13 checks passed
@Mikelle Mikelle deleted the infra-privacy branch May 15, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants