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

Validator announce signers #2617

Merged
merged 2 commits into from
Aug 8, 2023
Merged

Conversation

mattiekat
Copy link
Contributor

Description

This handles a bug where we did not default the chain signer to the validator signature for EVM chains and also handles the case where we might try to announce without setting a chain signer for other chains.

Drive-by changes

Not really a change but I looked into #2457 and I noticed the validators already check that signers are set for all destination chains so I think the error was just for validators which this PR fixes.

Related issues

Backward compatibility

Yes

Testing

Unit Tests

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (a5e1815) 65.39% compared to head (0d0facf) 65.39%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2617   +/-   ##
=======================================
  Coverage   65.39%   65.39%           
=======================================
  Files          89       89           
  Lines        1358     1358           
  Branches      182      182           
=======================================
  Hits          888      888           
  Misses        463      463           
  Partials        7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@tkporter tkporter left a comment

Choose a reason for hiding this comment

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

Amazing, ty, this has been a huge point of confusion for people

rust/agents/validator/src/validator.rs Show resolved Hide resolved
@mattiekat mattiekat enabled auto-merge (squash) August 8, 2023 16:51
@mattiekat mattiekat merged commit 5d8a2e5 into main Aug 8, 2023
24 checks passed
@mattiekat mattiekat deleted the mattie/self-announce-signer-check branch August 8, 2023 17:23
@nambrot
Copy link
Contributor

nambrot commented Aug 8, 2023

I noticed the validators already check that signers are set for all destination chains so I think the error was just for validators which this PR fixes.

I assume you mean relayer here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

self-Announce assumes that a chain signer is set Agents should indicate when private keys are not configured
3 participants