Skip to content

Conversation

@Mikelle
Copy link
Contributor

@Mikelle Mikelle commented May 14, 2024

No description provided.

@Mikelle Mikelle requested review from aloknerurkar and mrekucci May 14, 2024 22:08
@Mikelle Mikelle self-assigned this May 14, 2024
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
Contributor 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
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
Contributor 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.

${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
Contributor 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
@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.

4 participants