Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Update private key #307

Merged
merged 1 commit into from
Aug 31, 2022
Merged

Conversation

JohnGuilding
Copy link
Collaborator

What is this PR doing?

This PR updates the aggregator private key: PRIVATE_KEY_AGG in ./aggregator/.env.example. Previously, this private key belonged to the first account that the hardhat node provides. This has been updated to the private key from the 3rd account in the account list that hardhat provides.

How can these changes be manually tested?

These changes have been tested by running bls wallet locally, attempting to send transactions, and observing there is no nonce too low errors.

Does this PR resolve or contribute to any issues?

A periodic nonce mismatch issue occurs when the aggregator tries to submit a batch. This is because the private key used by the aggregator is the same as the default contract deployer. This change swaps this aggregator private key for another one so there is no longer a clash.

Error:
image

Checklist

  • I have manually tested these changes
  • Post a link to the PR in the group chat

Guidelines

  • If your PR is not ready, mark it as a draft
  • The resolve conversation button is for reviewers, not authors
    • (But add a 'done' comment or similar)

@JohnGuilding
Copy link
Collaborator Author

Tests failing, looking into this now

@JohnGuilding JohnGuilding self-assigned this Aug 18, 2022
@JohnGuilding JohnGuilding added bug Something isn't working aggregator Aggregator backend related devExp 3rd-party user friction labels Aug 18, 2022
Copy link
Contributor

@blakecduncan blakecduncan left a comment

Choose a reason for hiding this comment

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

lgtm! Glad it was a simple fix 💯

@JohnGuilding JohnGuilding merged commit fd6f60d into main Aug 31, 2022
@JohnGuilding JohnGuilding deleted the update-PRIVATE_KEY_AGG-in–env.example branch August 31, 2022 14:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aggregator Aggregator backend related bug Something isn't working devExp 3rd-party user friction
Projects
Development

Successfully merging this pull request may close these issues.

2 participants